Searched refs:ParseProtocol (Results 1 – 3 of 3) sorted by relevance
/system/connectivity/shill/ |
D | connection_info_reader_unittest.cc | 177 TEST_F(ConnectionInfoReaderTest, ParseProtocol) { in TEST_F() argument 180 EXPECT_FALSE(reader_.ParseProtocol("", &protocol)); in TEST_F() 181 EXPECT_FALSE(reader_.ParseProtocol("a", &protocol)); in TEST_F() 182 EXPECT_FALSE(reader_.ParseProtocol("-1", &protocol)); in TEST_F() 183 EXPECT_FALSE(reader_.ParseProtocol(StringPrintf("%d", IPPROTO_MAX), in TEST_F() 187 EXPECT_TRUE(reader_.ParseProtocol(StringPrintf("%d", i), &protocol)); in TEST_F()
|
D | connection_info_reader.h | 51 FRIEND_TEST(ConnectionInfoReaderTest, ParseProtocol); 55 bool ParseProtocol(const std::string& input, int* protocol);
|
D | connection_info_reader.cc | 95 if (!ParseProtocol(tokens[++index], &protocol)) { in ParseConnectionInfo() 159 bool ConnectionInfoReader::ParseProtocol(const string& input, int* protocol) { in ParseProtocol() function in shill::ConnectionInfoReader
|