Home | History | Annotate | Download | only in shill

Lines Matching refs:ParsePort

224 TEST_F(ConnectionInfoReaderTest, ParsePort) {
228 EXPECT_FALSE(reader_.ParsePort("", &port, &is_source));
229 EXPECT_FALSE(reader_.ParsePort("a", &port, &is_source));
230 EXPECT_FALSE(reader_.ParsePort("0", &port, &is_source));
231 EXPECT_FALSE(reader_.ParsePort("sport=", &port, &is_source));
232 EXPECT_FALSE(reader_.ParsePort("sport=a", &port, &is_source));
233 EXPECT_FALSE(reader_.ParsePort("sport=-1", &port, &is_source));
234 EXPECT_FALSE(reader_.ParsePort("sport=65536", &port, &is_source));
235 EXPECT_FALSE(reader_.ParsePort("dport=", &port, &is_source));
236 EXPECT_FALSE(reader_.ParsePort("dport=a", &port, &is_source));
237 EXPECT_FALSE(reader_.ParsePort("dport=-1", &port, &is_source));
238 EXPECT_FALSE(reader_.ParsePort("dport=65536", &port, &is_source));
240 EXPECT_TRUE(reader_.ParsePort("sport=53", &port, &is_source));
243 EXPECT_TRUE(reader_.ParsePort("dport=80", &port, &is_source));