Home | History | Annotate | Download | only in shill

Lines Matching refs:ParsePort

324 TEST_F(SocketInfoReaderTest, ParsePort) {
327 EXPECT_FALSE(reader_.ParsePort("", &port));
328 EXPECT_FALSE(reader_.ParsePort("0", &port));
329 EXPECT_FALSE(reader_.ParsePort("00", &port));
330 EXPECT_FALSE(reader_.ParsePort("000", &port));
331 EXPECT_FALSE(reader_.ParsePort("000Y", &port));
333 EXPECT_TRUE(reader_.ParsePort("0000", &port));
336 EXPECT_TRUE(reader_.ParsePort("0050", &port));
339 EXPECT_TRUE(reader_.ParsePort("abCD", &port));
342 EXPECT_TRUE(reader_.ParsePort("ffff", &port));