Lines Matching refs:s1

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
767 EXPECT_TRUE(s1 == s1); in checkUnequal()
769 EXPECT_TRUE(isAddressEqual(s1, s1)); 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
796 sockaddr_in6* addr1 = reinterpret_cast<sockaddr_in6*>(&s1.ss); in TEST_F()
800 checkUnequal(s1, s2); in TEST_F()
801 EXPECT_FALSE(isAddressEqual(s1, s2)); in TEST_F()
803 EXPECT_FALSE(s1.wasExplicitlyConfigured()); in TEST_F()
808 DnsTlsServer s1(V6ADDR1), s2(V6ADDR1); in TEST_F() local
809 sockaddr_in6* addr1 = reinterpret_cast<sockaddr_in6*>(&s1.ss); in TEST_F()
814 EXPECT_EQ(s1, s2); in TEST_F()
815 EXPECT_TRUE(isAddressEqual(s1, s2)); in TEST_F()
817 EXPECT_FALSE(s1.wasExplicitlyConfigured()); in TEST_F()
822 DnsTlsServer s1, s2; in TEST_F() local
823 parseServer("192.0.2.1", 853, &s1.ss); in TEST_F()
825 checkUnequal(s1, s2); in TEST_F()
826 EXPECT_TRUE(isAddressEqual(s1, s2)); in TEST_F()
834 EXPECT_FALSE(s1.wasExplicitlyConfigured()); in TEST_F()
839 DnsTlsServer s1(V4ADDR1), s2(V4ADDR1); in TEST_F() local
840 s1.name = SERVERNAME1; in TEST_F()
841 checkUnequal(s1, s2); in TEST_F()
843 checkUnequal(s1, s2); in TEST_F()
844 EXPECT_TRUE(isAddressEqual(s1, s2)); in TEST_F()
846 EXPECT_TRUE(s1.wasExplicitlyConfigured()); in TEST_F()
851 DnsTlsServer s1(V4ADDR1), s2(V4ADDR1); in TEST_F() local
852 s1.connectTimeout = std::chrono::milliseconds(4000); in TEST_F()
853 checkUnequal(s1, s2); in TEST_F()
855 EXPECT_EQ(s1, s2); in TEST_F()
856 EXPECT_TRUE(isAddressEqual(s1, s2)); in TEST_F()
858 EXPECT_FALSE(s1.wasExplicitlyConfigured()); in TEST_F()