Lines Matching refs:IPEndpoint
261 IPEndpoint endpoint; in TEST()
263 ASSERT_TRUE((IPEndpoint{{192, 168, 0, 1}, 80})); in TEST()
264 ASSERT_TRUE((IPEndpoint{{192, 168, 0, 1}, 0})); in TEST()
265 ASSERT_TRUE((IPEndpoint{{}, 80})); in TEST()
269 IPEndpoint expected{IPAddress(std::array<uint8_t, 4>{{1, 2, 3, 4}}), 5678}; in TEST()
270 ErrorOr<IPEndpoint> result = IPEndpoint::Parse("1.2.3.4:5678"); in TEST()
274 expected = IPEndpoint{ in TEST()
276 result = IPEndpoint::Parse("[abcd::1]:99"); in TEST()
280 expected = IPEndpoint{ in TEST()
282 result = IPEndpoint::Parse("[::]:5791"); in TEST()
286 EXPECT_FALSE(IPEndpoint::Parse("")); // Empty string. in TEST()
287 EXPECT_FALSE(IPEndpoint::Parse("beef")); // Random word. in TEST()
288 EXPECT_FALSE(IPEndpoint::Parse("localhost:99")); // We don't do DNS. in TEST()
289 EXPECT_FALSE(IPEndpoint::Parse(":80")); // Missing address. in TEST()
290 EXPECT_FALSE(IPEndpoint::Parse("[]:22")); // Missing address. in TEST()
291 EXPECT_FALSE(IPEndpoint::Parse("1.2.3.4")); // Missing port after IPv4. in TEST()
292 EXPECT_FALSE(IPEndpoint::Parse("[abcd::1]")); // Missing port after IPv6. in TEST()
293 EXPECT_FALSE(IPEndpoint::Parse("abcd::1:8080")); // Missing square brackets. in TEST()
296 EXPECT_FALSE(IPEndpoint::Parse(" 1.2.3.4:5678")); in TEST()
297 EXPECT_FALSE(IPEndpoint::Parse("1.2.3.4 :5678")); in TEST()
298 EXPECT_FALSE(IPEndpoint::Parse("1.2.3.4: 5678")); in TEST()
299 EXPECT_FALSE(IPEndpoint::Parse("1.2.3.4:5678 ")); in TEST()
300 EXPECT_FALSE(IPEndpoint::Parse(" [abcd::1]:99")); in TEST()
301 EXPECT_FALSE(IPEndpoint::Parse("[abcd::1] :99")); in TEST()
302 EXPECT_FALSE(IPEndpoint::Parse("[abcd::1]: 99")); in TEST()
303 EXPECT_FALSE(IPEndpoint::Parse("[abcd::1]:99 ")); in TEST()
368 const IPEndpoint kV4LowHighPort{{192, 168, 0, 1}, 1000}; in TEST()
369 const IPEndpoint kV4LowLowPort{{192, 168, 0, 1}, 1}; in TEST()
370 const IPEndpoint kV4High{{192, 168, 0, 2}, 22}; in TEST()
371 const IPEndpoint kV6Low{{0, 0, 0, 0, 0, 0, 0, 1}, 22}; in TEST()
372 const IPEndpoint kV6High{{0, 0, 1, 0, 0, 0, 0, 0}, 22}; in TEST()