Lines Matching refs:s2

759 bool isAddressEqual(const DnsTlsServer& s1, const DnsTlsServer& s2) {  in isAddressEqual()  argument
760 bool cmp1 = ADDRESS_COMPARATOR(s1, s2); in isAddressEqual()
761 bool cmp2 = ADDRESS_COMPARATOR(s2, s1); in isAddressEqual()
766 void checkUnequal(const DnsTlsServer& s1, const DnsTlsServer& s2) { in checkUnequal() argument
768 EXPECT_TRUE(s2 == s2); in checkUnequal()
770 EXPECT_TRUE(isAddressEqual(s2, s2)); in checkUnequal()
772 EXPECT_TRUE(s1 < s2 ^ s2 < s1); in checkUnequal()
773 EXPECT_FALSE(s1 == s2); in checkUnequal()
774 EXPECT_FALSE(s2 == s1); in checkUnequal()
795 DnsTlsServer s1(V6ADDR1), s2(V6ADDR1); in TEST_F() local
798 sockaddr_in6* addr2 = reinterpret_cast<sockaddr_in6*>(&s2.ss); in TEST_F()
800 checkUnequal(s1, s2); in TEST_F()
801 EXPECT_FALSE(isAddressEqual(s1, s2)); in TEST_F()
804 EXPECT_FALSE(s2.wasExplicitlyConfigured()); in TEST_F()
808 DnsTlsServer s1(V6ADDR1), s2(V6ADDR1); in TEST_F() local
811 sockaddr_in6* addr2 = reinterpret_cast<sockaddr_in6*>(&s2.ss); in TEST_F()
814 EXPECT_EQ(s1, s2); in TEST_F()
815 EXPECT_TRUE(isAddressEqual(s1, s2)); in TEST_F()
818 EXPECT_FALSE(s2.wasExplicitlyConfigured()); in TEST_F()
822 DnsTlsServer s1, s2; in TEST_F() local
824 parseServer("192.0.2.1", 854, &s2.ss); in TEST_F()
825 checkUnequal(s1, s2); in TEST_F()
826 EXPECT_TRUE(isAddressEqual(s1, s2)); in TEST_F()
835 EXPECT_FALSE(s2.wasExplicitlyConfigured()); in TEST_F()
839 DnsTlsServer s1(V4ADDR1), s2(V4ADDR1); in TEST_F() local
841 checkUnequal(s1, s2); in TEST_F()
842 s2.name = SERVERNAME2; in TEST_F()
843 checkUnequal(s1, s2); in TEST_F()
844 EXPECT_TRUE(isAddressEqual(s1, s2)); in TEST_F()
847 EXPECT_TRUE(s2.wasExplicitlyConfigured()); in TEST_F()
851 DnsTlsServer s1(V4ADDR1), s2(V4ADDR1); in TEST_F() local
853 checkUnequal(s1, s2); in TEST_F()
854 s2.connectTimeout = std::chrono::milliseconds(4000); in TEST_F()
855 EXPECT_EQ(s1, s2); in TEST_F()
856 EXPECT_TRUE(isAddressEqual(s1, s2)); in TEST_F()
859 EXPECT_FALSE(s2.wasExplicitlyConfigured()); in TEST_F()