Lines Matching refs:addr2
62 SocketAddress addr2(kTestV6AddrString, 1234);
65 EXPECT_FALSE(addr2.IsUnresolvedIP());
66 EXPECT_EQ(tocheck, addr2.ipaddr());
67 EXPECT_EQ(1234, addr2.port());
68 EXPECT_EQ(kTestV6AddrString, addr2.hostname());
69 EXPECT_EQ("[" + kTestV6AddrString + "]:1234", addr2.ToString());
243 const SocketAddress& addr2) {
244 return addr1 == addr2 && addr2 == addr1 &&
245 !(addr1 != addr2) && !(addr2 != addr1);
249 const SocketAddress& addr2) {
250 return !(addr1 == addr2) && !(addr2 == addr1) &&
251 addr1 != addr2 && addr2 != addr1;
256 SocketAddress addr2("1.2.3.4", 5678);
257 EXPECT_PRED2(AreEqual, addr1, addr2);
259 addr2 = SocketAddress("0.0.0.1", 5678);
260 EXPECT_PRED2(AreUnequal, addr1, addr2);
262 addr2 = SocketAddress("1.2.3.4", 1234);
263 EXPECT_PRED2(AreUnequal, addr1, addr2);
265 addr2 = SocketAddress(kTestV6AddrString, 5678);
266 EXPECT_PRED2(AreUnequal, addr1, addr2);
269 EXPECT_PRED2(AreEqual, addr1, addr2);
271 addr2 = SocketAddress(kTestV6AddrString, 1234);
272 EXPECT_PRED2(AreUnequal, addr1, addr2);
274 addr2 = SocketAddress("fe80::1", 5678);
275 EXPECT_PRED2(AreUnequal, addr1, addr2);
279 const SocketAddress& addr2) {
280 return addr1 < addr2 &&
281 !(addr2 < addr1) &&
282 !(addr1 == addr2);
287 SocketAddress addr2("1.2.3.4", 5678);
289 EXPECT_FALSE(addr1 < addr2);
290 EXPECT_FALSE(addr2 < addr1);
292 addr2 = SocketAddress("1.2.3.4", 5679);
293 EXPECT_PRED2(IsLessThan, addr1, addr2);
295 addr2 = SocketAddress("2.2.3.4", 49152);
296 EXPECT_PRED2(IsLessThan, addr1, addr2);
298 addr2 = SocketAddress(kTestV6AddrString, 5678);
299 EXPECT_PRED2(IsLessThan, addr1, addr2);
302 EXPECT_PRED2(IsLessThan, addr2, addr1);
304 addr2 = SocketAddress("fe80::1", 5679);
305 EXPECT_PRED2(IsLessThan, addr1, addr2);
307 addr2 = SocketAddress("fe80::1", 5678);
308 EXPECT_FALSE(addr1 < addr2);
309 EXPECT_FALSE(addr2 < addr1);