Lines Matching refs:IPSockAddr
456 const std::vector<OperatorExpectation<IPSockAddr>> kExpectations{ in TEST()
457 {EQ, IPSockAddr(), IPSockAddr()}, in TEST()
458 {EQ, IPSockAddr(IPAddress(IPV4_ANY)), IPSockAddr(IPAddress(IPV4_ANY), 0)}, in TEST()
459 {EQ, IPSockAddr(IPAddress(IPV6_ANY)), IPSockAddr(IPAddress(IPV6_ANY), 0)}, in TEST()
460 {EQ, IPSockAddr(IPAddress(FE80_1), 80), IPSockAddr(IPAddress(FE80_1), 80)}, in TEST()
461 {EQ, IPSockAddr(IPAddress(FE80_1, 17)), IPSockAddr(IPAddress(FE80_1, 17), 0)}, in TEST()
462 {LT, IPSockAddr(IPAddress(IPV4_ANY), 0), IPSockAddr(IPAddress(IPV4_ANY), 1)}, in TEST()
463 {LT, IPSockAddr(IPAddress(IPV4_ANY), 53), IPSockAddr(IPAddress(IPV4_ANY), 123)}, in TEST()
464 {LT, IPSockAddr(IPAddress(IPV4_ONES), 123), IPSockAddr(IPAddress(IPV6_ANY), 53)}, in TEST()
465 {LT, IPSockAddr(IPAddress(IPV6_ANY), 0), IPSockAddr(IPAddress(IPV6_ANY), 1)}, in TEST()
466 {LT, IPSockAddr(IPAddress(IPV6_ANY), 53), IPSockAddr(IPAddress(IPV6_ANY), 123)}, in TEST()
467 {LT, IPSockAddr(IPAddress(FE80_1), 80), IPSockAddr(IPAddress(FE80_1, 17), 80)}, in TEST()
468 {LT, IPSockAddr(IPAddress(FE80_1, 17), 80), IPSockAddr(IPAddress(FE80_1, 22), 80)}, in TEST()
481 EXPECT_EQ("<unspecified>:0", IPSockAddr().toString()); in TEST()
482 EXPECT_EQ("0.0.0.0:0", IPSockAddr(IPAddress(IPV4_ANY)).toString()); in TEST()
483 EXPECT_EQ("255.255.255.255:67", IPSockAddr(IPAddress(IPV4_ONES), 67).toString()); in TEST()
484 EXPECT_EQ("[::]:0", IPSockAddr(IPAddress(IPV6_ANY)).toString()); in TEST()
485 EXPECT_EQ("[::1]:53", IPSockAddr(IPAddress(IPV6_LOOPBACK), 53).toString()); in TEST()
486 EXPECT_EQ("[fe80::1]:0", IPSockAddr(IPAddress(FE80_1)).toString()); in TEST()
487 EXPECT_EQ("[fe80::2%17]:123", IPSockAddr(IPAddress(FE80_2, 17), 123).toString()); in TEST()
492 const IPSockAddr linkLocalNtpSockaddr(IPAddress(FE80_2, idx), 123); in TEST()
495 EXPECT_EQ(0, IPSockAddr(linkLocalNtpSockaddr.ip()).port()); in TEST()