Home
last modified time | relevance | path

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

/system/connectivity/shill/
Dconnection_info_reader_unittest.cc177 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()
Dconnection_info_reader.h51 FRIEND_TEST(ConnectionInfoReaderTest, ParseProtocol);
55 bool ParseProtocol(const std::string& input, int* protocol);
Dconnection_info_reader.cc95 if (!ParseProtocol(tokens[++index], &protocol)) { in ParseConnectionInfo()
159 bool ConnectionInfoReader::ParseProtocol(const string& input, int* protocol) { in ParseProtocol() function in shill::ConnectionInfoReader