Lines Matching refs:port
25 int port = 123; in TEST() local
28 ParseNetAddress("www.google.com", &host, &port, &canonical, &error)); in TEST()
31 EXPECT_EQ(123, port); in TEST()
34 ParseNetAddress("www.google.com:666", &host, &port, &canonical, &error)); in TEST()
37 EXPECT_EQ(666, port); in TEST()
42 int port = 123; in TEST() local
44 EXPECT_TRUE(ParseNetAddress("1.2.3.4", &host, &port, &canonical, &error)); in TEST()
47 EXPECT_EQ(123, port); in TEST()
49 EXPECT_TRUE(ParseNetAddress("1.2.3.4:666", &host, &port, &canonical, &error)); in TEST()
52 EXPECT_EQ(666, port); in TEST()
57 int port = 123; in TEST() local
59 EXPECT_TRUE(ParseNetAddress("::1", &host, &port, &canonical, &error)); in TEST()
62 EXPECT_EQ(123, port); in TEST()
64 EXPECT_TRUE(ParseNetAddress("fe80::200:5aee:feaa:20a2", &host, &port, in TEST()
68 EXPECT_EQ(123, port); in TEST()
70 EXPECT_TRUE(ParseNetAddress("[::1]:666", &host, &port, &canonical, &error)); in TEST()
73 EXPECT_EQ(666, port); in TEST()
75 EXPECT_TRUE(ParseNetAddress("[fe80::200:5aee:feaa:20a2]:666", &host, &port, in TEST()
79 EXPECT_EQ(666, port); in TEST()
84 int port; in TEST() local
114 EXPECT_FALSE(ParseNetAddress(address, &host, &port, &canonical, &error)); in TEST()
122 int port = 42; in TEST() local
124 EXPECT_TRUE(ParseNetAddress("www.google.com", &host, &port, nullptr, &error)); in TEST()
125 EXPECT_TRUE(ParseNetAddress("1.2.3.4", &host, &port, nullptr, &error)); in TEST()
126 EXPECT_TRUE(ParseNetAddress("::1", &host, &port, nullptr, &error)); in TEST()