Home
last modified time | relevance | path

Searched refs:ParseConnectionState (Results 1 – 3 of 3) sorted by relevance

/system/connectivity/shill/
Dsocket_info_reader_unittest.cc368 TEST_F(SocketInfoReaderTest, ParseConnectionState) { in TEST_F() argument
372 EXPECT_FALSE(reader_.ParseConnectionState("", &connection_state)); in TEST_F()
373 EXPECT_FALSE(reader_.ParseConnectionState("0", &connection_state)); in TEST_F()
374 EXPECT_FALSE(reader_.ParseConnectionState("X", &connection_state)); in TEST_F()
376 EXPECT_TRUE(reader_.ParseConnectionState("00", &connection_state)); in TEST_F()
378 EXPECT_TRUE(reader_.ParseConnectionState("01", &connection_state)); in TEST_F()
380 EXPECT_TRUE(reader_.ParseConnectionState("02", &connection_state)); in TEST_F()
382 EXPECT_TRUE(reader_.ParseConnectionState("03", &connection_state)); in TEST_F()
384 EXPECT_TRUE(reader_.ParseConnectionState("04", &connection_state)); in TEST_F()
386 EXPECT_TRUE(reader_.ParseConnectionState("05", &connection_state)); in TEST_F()
[all …]
Dsocket_info_reader.h53 FRIEND_TEST(SocketInfoReaderTest, ParseConnectionState);
71 bool ParseConnectionState(const std::string& input,
Dsocket_info_reader.cc112 if (!ParseConnectionState(tokens[3], &connection_state)) { in ParseSocketInfo()
202 bool SocketInfoReader::ParseConnectionState( in ParseConnectionState() function in shill::SocketInfoReader