Searched refs:ParseIPAddress (Results 1 – 6 of 6) sorted by relevance
/system/connectivity/shill/ |
D | connection_info_reader_unittest.cc | 203 TEST_F(ConnectionInfoReaderTest, ParseIPAddress) { in TEST_F() argument 207 EXPECT_FALSE(reader_.ParseIPAddress("", &ip_address, &is_source)); in TEST_F() 208 EXPECT_FALSE(reader_.ParseIPAddress("abc", &ip_address, &is_source)); in TEST_F() 209 EXPECT_FALSE(reader_.ParseIPAddress("src=", &ip_address, &is_source)); in TEST_F() 210 EXPECT_FALSE(reader_.ParseIPAddress("src=abc", &ip_address, &is_source)); in TEST_F() 211 EXPECT_FALSE(reader_.ParseIPAddress("dst=", &ip_address, &is_source)); in TEST_F() 212 EXPECT_FALSE(reader_.ParseIPAddress("dst=abc", &ip_address, &is_source)); in TEST_F() 214 EXPECT_TRUE(reader_.ParseIPAddress("src=192.168.1.1", in TEST_F() 218 EXPECT_TRUE(reader_.ParseIPAddress("dst=192.168.1.2", in TEST_F()
|
D | socket_info_reader_unittest.cc | 287 TEST_F(SocketInfoReaderTest, ParseIPAddress) { in TEST_F() argument 290 EXPECT_FALSE(reader_.ParseIPAddress("", &ip_address)); in TEST_F() 291 EXPECT_FALSE(reader_.ParseIPAddress("0", &ip_address)); in TEST_F() 292 EXPECT_FALSE(reader_.ParseIPAddress("00", &ip_address)); in TEST_F() 293 EXPECT_FALSE(reader_.ParseIPAddress("0000000Y", &ip_address)); in TEST_F() 294 EXPECT_FALSE(reader_.ParseIPAddress("0000000000000000000000000000000Y", in TEST_F() 297 EXPECT_TRUE(reader_.ParseIPAddress("00000000", &ip_address)); in TEST_F() 300 EXPECT_TRUE(reader_.ParseIPAddress("0100007F", &ip_address)); in TEST_F() 303 EXPECT_TRUE(reader_.ParseIPAddress("0a01A8c0", &ip_address)); in TEST_F() 307 EXPECT_TRUE(reader_.ParseIPAddress("ffffffff", &ip_address)); in TEST_F() [all …]
|
D | connection_info_reader.cc | 113 if (!ParseIPAddress(tokens[++index], &ip_address, &is_source) || !is_source) { in ParseConnectionInfo() 117 if (!ParseIPAddress(tokens[++index], &ip_address, &is_source) || is_source) { in ParseConnectionInfo() 138 if (!ParseIPAddress(tokens[++index], &ip_address, &is_source) || !is_source) { in ParseConnectionInfo() 142 if (!ParseIPAddress(tokens[++index], &ip_address, &is_source) || is_source) { in ParseConnectionInfo() 176 bool ConnectionInfoReader::ParseIPAddress( in ParseIPAddress() function in shill::ConnectionInfoReader
|
D | connection_info_reader.h | 48 FRIEND_TEST(ConnectionInfoReaderTest, ParseIPAddress); 59 bool ParseIPAddress(const std::string& input,
|
D | socket_info_reader.h | 54 FRIEND_TEST(SocketInfoReaderTest, ParseIPAddress); 66 bool ParseIPAddress(const std::string& input, IPAddress* ip_address);
|
D | socket_info_reader.cc | 139 !ParseIPAddress(tokens[0], ip_address) || in ParseIPAddressAndPort() 147 bool SocketInfoReader::ParseIPAddress(const string& input, in ParseIPAddress() function in shill::SocketInfoReader
|