Lines Matching refs:addr2
79 SocketAddress addr2(kTestV6AddrString, 1234);
82 EXPECT_FALSE(addr2.IsUnresolvedIP());
83 EXPECT_EQ(tocheck, addr2.ipaddr());
84 EXPECT_EQ(1234, addr2.port());
85 EXPECT_EQ(kTestV6AddrString, addr2.hostname());
86 EXPECT_EQ("[" + kTestV6AddrString + "]:1234", addr2.ToString());
260 const SocketAddress& addr2) {
261 return addr1 == addr2 && addr2 == addr1 &&
262 !(addr1 != addr2) && !(addr2 != addr1);
266 const SocketAddress& addr2) {
267 return !(addr1 == addr2) && !(addr2 == addr1) &&
268 addr1 != addr2 && addr2 != addr1;
273 SocketAddress addr2("1.2.3.4", 5678);
274 EXPECT_PRED2(AreEqual, addr1, addr2);
276 addr2 = SocketAddress("0.0.0.1", 5678);
277 EXPECT_PRED2(AreUnequal, addr1, addr2);
279 addr2 = SocketAddress("1.2.3.4", 1234);
280 EXPECT_PRED2(AreUnequal, addr1, addr2);
282 addr2 = SocketAddress(kTestV6AddrString, 5678);
283 EXPECT_PRED2(AreUnequal, addr1, addr2);
286 EXPECT_PRED2(AreEqual, addr1, addr2);
288 addr2 = SocketAddress(kTestV6AddrString, 1234);
289 EXPECT_PRED2(AreUnequal, addr1, addr2);
291 addr2 = SocketAddress("fe80::1", 5678);
292 EXPECT_PRED2(AreUnequal, addr1, addr2);
296 const SocketAddress& addr2) {
297 return addr1 < addr2 &&
298 !(addr2 < addr1) &&
299 !(addr1 == addr2);
304 SocketAddress addr2("1.2.3.4", 5678);
306 EXPECT_FALSE(addr1 < addr2);
307 EXPECT_FALSE(addr2 < addr1);
309 addr2 = SocketAddress("1.2.3.4", 5679);
310 EXPECT_PRED2(IsLessThan, addr1, addr2);
312 addr2 = SocketAddress("2.2.3.4", 49152);
313 EXPECT_PRED2(IsLessThan, addr1, addr2);
315 addr2 = SocketAddress(kTestV6AddrString, 5678);
316 EXPECT_PRED2(IsLessThan, addr1, addr2);
319 EXPECT_PRED2(IsLessThan, addr2, addr1);
321 addr2 = SocketAddress("fe80::1", 5679);
322 EXPECT_PRED2(IsLessThan, addr1, addr2);
324 addr2 = SocketAddress("fe80::1", 5678);
325 EXPECT_FALSE(addr1 < addr2);
326 EXPECT_FALSE(addr2 < addr1);