Lines Matching refs:dns1
673 test::DNSResponder dns1(listen_addr1, listen_srv, 250, ns_rcode::ns_r_servfail); in TEST_F() local
676 dns1.addMapping(host_name_deferred, ns_type::ns_t_a, "1.2.3.4"); in TEST_F()
679 ASSERT_TRUE(dns1.startServer()); in TEST_F()
689 dns1.setDeferredResp(true); in TEST_F()
696 EXPECT_EQ(1U, GetNumQueries(dns1, host_name_deferred)); in TEST_F()
729 EXPECT_EQ(1U, GetNumQueries(dns1, host_name_deferred)); in TEST_F()
736 dns1.setDeferredResp(false); in TEST_F()
854 test::DNSResponder dns1(listen_addr1); in TEST_F() local
857 StartDns(dns1, {{host_name, ns_type::ns_t_aaaa, "2001:db8::6"}}); in TEST_F()
877 dns1.clearQueries(); in TEST_F()
881 EXPECT_EQ(1U, GetNumQueries(dns1, host_name)); in TEST_F()
902 test::DNSResponder dns1(listen_addr1, listen_srv, 250, static_cast<ns_rcode>(-1)); in TEST_F() local
905 StartDns(dns1, records1); in TEST_F()
915 EXPECT_EQ(1U, GetNumQueries(dns1, host_name1)); in TEST_F()
919 dns1.setResponseProbability(0.0); in TEST_F()
924 EXPECT_EQ(4U, GetNumQueries(dns1, host_name2)); in TEST_F()
934 test::DNSResponder dns1(listen_addr1); in TEST_F() local
937 StartDns(dns1, {{host_name, ns_type::ns_t_aaaa, "2001:db8::6"}}); in TEST_F()
1132 test::DNSResponder dns1(listen_addr1, "53", 250, static_cast<ns_rcode>(-1)); in TEST_F() local
1133 dns1.setResponseProbability(0.0); in TEST_F()
1134 ASSERT_TRUE(dns1.startServer()); in TEST_F()
1473 test::DNSResponder dns1(listen_addr1); in TEST_F() local
1475 StartDns(dns1, records1); in TEST_F()
1513 EXPECT_EQ(2U, dns1.queries().size()); in TEST_F()
2182 test::DNSResponder dns1(listen_addr1); in TEST_F() local
2184 StartDns(dns1, records); in TEST_F()
2188 dns1.clearQueries(); in TEST_F()
2191 dns1.setResponseProbability(0.0); in TEST_F()
2206 EXPECT_EQ(2U, GetNumQueries(dns0, host_name) + GetNumQueries(dns1, host_name)); in TEST_F()
2209 dns1.clearQueries(); in TEST_F()
2223 EXPECT_EQ(4U, GetNumQueries(dns1, host_name)); in TEST_F()