Searched refs:ParsePort (Results 1 – 6 of 6) sorted by relevance
/system/connectivity/shill/ |
D | connection_info_reader_unittest.cc | 224 TEST_F(ConnectionInfoReaderTest, ParsePort) { in TEST_F() argument 228 EXPECT_FALSE(reader_.ParsePort("", &port, &is_source)); in TEST_F() 229 EXPECT_FALSE(reader_.ParsePort("a", &port, &is_source)); in TEST_F() 230 EXPECT_FALSE(reader_.ParsePort("0", &port, &is_source)); in TEST_F() 231 EXPECT_FALSE(reader_.ParsePort("sport=", &port, &is_source)); in TEST_F() 232 EXPECT_FALSE(reader_.ParsePort("sport=a", &port, &is_source)); in TEST_F() 233 EXPECT_FALSE(reader_.ParsePort("sport=-1", &port, &is_source)); in TEST_F() 234 EXPECT_FALSE(reader_.ParsePort("sport=65536", &port, &is_source)); in TEST_F() 235 EXPECT_FALSE(reader_.ParsePort("dport=", &port, &is_source)); in TEST_F() 236 EXPECT_FALSE(reader_.ParsePort("dport=a", &port, &is_source)); in TEST_F() [all …]
|
D | connection_info_reader.cc | 122 if (!ParsePort(tokens[++index], &port, &is_source) || !is_source) { in ParseConnectionInfo() 126 if (!ParsePort(tokens[++index], &port, &is_source) || is_source) { in ParseConnectionInfo() 147 if (!ParsePort(tokens[++index], &port, &is_source) || !is_source) { in ParseConnectionInfo() 151 if (!ParsePort(tokens[++index], &port, &is_source) || is_source) { in ParseConnectionInfo() 207 bool ConnectionInfoReader::ParsePort( in ParsePort() function in shill::ConnectionInfoReader
|
D | socket_info_reader_unittest.cc | 324 TEST_F(SocketInfoReaderTest, ParsePort) { in TEST_F() argument 327 EXPECT_FALSE(reader_.ParsePort("", &port)); in TEST_F() 328 EXPECT_FALSE(reader_.ParsePort("0", &port)); in TEST_F() 329 EXPECT_FALSE(reader_.ParsePort("00", &port)); in TEST_F() 330 EXPECT_FALSE(reader_.ParsePort("000", &port)); in TEST_F() 331 EXPECT_FALSE(reader_.ParsePort("000Y", &port)); in TEST_F() 333 EXPECT_TRUE(reader_.ParsePort("0000", &port)); in TEST_F() 336 EXPECT_TRUE(reader_.ParsePort("0050", &port)); in TEST_F() 339 EXPECT_TRUE(reader_.ParsePort("abCD", &port)); in TEST_F() 342 EXPECT_TRUE(reader_.ParsePort("ffff", &port)); in TEST_F()
|
D | connection_info_reader.h | 50 FRIEND_TEST(ConnectionInfoReaderTest, ParsePort); 61 bool ParsePort(const std::string& input, uint16_t* port, bool* is_source);
|
D | socket_info_reader.h | 56 FRIEND_TEST(SocketInfoReaderTest, ParsePort); 67 bool ParsePort(const std::string& input, uint16_t* port);
|
D | socket_info_reader.cc | 140 !ParsePort(tokens[1], port)) { in ParseIPAddressAndPort() 172 bool SocketInfoReader::ParsePort(const string& input, uint16_t* port) { in ParsePort() function in shill::SocketInfoReader
|