Lines Matching refs:ParsePort
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()
237 EXPECT_FALSE(reader_.ParsePort("dport=-1", &port, &is_source)); in TEST_F()
238 EXPECT_FALSE(reader_.ParsePort("dport=65536", &port, &is_source)); in TEST_F()
240 EXPECT_TRUE(reader_.ParsePort("sport=53", &port, &is_source)); in TEST_F()
243 EXPECT_TRUE(reader_.ParsePort("dport=80", &port, &is_source)); in TEST_F()