Lines Matching refs:host

24   std::string canonical, host, error;  in TEST()  local
28 ParseNetAddress("www.google.com", &host, &port, &canonical, &error)); in TEST()
30 EXPECT_EQ("www.google.com", host); in TEST()
34 ParseNetAddress("www.google.com:666", &host, &port, &canonical, &error)); in TEST()
36 EXPECT_EQ("www.google.com", host); in TEST()
41 std::string canonical, host, error; in TEST() local
44 EXPECT_TRUE(ParseNetAddress("1.2.3.4", &host, &port, &canonical, &error)); in TEST()
46 EXPECT_EQ("1.2.3.4", host); in TEST()
49 EXPECT_TRUE(ParseNetAddress("1.2.3.4:666", &host, &port, &canonical, &error)); in TEST()
51 EXPECT_EQ("1.2.3.4", host); in TEST()
56 std::string canonical, host, error; in TEST() local
59 EXPECT_TRUE(ParseNetAddress("::1", &host, &port, &canonical, &error)); in TEST()
61 EXPECT_EQ("::1", host); in TEST()
64 EXPECT_TRUE(ParseNetAddress("fe80::200:5aee:feaa:20a2", &host, &port, in TEST()
67 EXPECT_EQ("fe80::200:5aee:feaa:20a2", host); in TEST()
70 EXPECT_TRUE(ParseNetAddress("[::1]:666", &host, &port, &canonical, &error)); in TEST()
72 EXPECT_EQ("::1", host); in TEST()
75 EXPECT_TRUE(ParseNetAddress("[fe80::200:5aee:feaa:20a2]:666", &host, &port, in TEST()
78 EXPECT_EQ("fe80::200:5aee:feaa:20a2", host); in TEST()
83 std::string canonical, host; in TEST() local
114 EXPECT_FALSE(ParseNetAddress(address, &host, &port, &canonical, &error)); in TEST()
121 std::string host, error; 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()