Lines Matching refs:dns2
644 test::DNSResponder dns2(listen_addr2); in TEST_F() local
646 StartDns(dns2, records); in TEST_F()
650 dns2.clearQueries(); in TEST_F()
674 dns2.clearQueries(); in TEST_F()
679 size_t found2 = GetNumQueries(dns2, host_name); in TEST_F()
758 test::DNSResponder dns2(listen_addr2, listen_srv, ns_rcode::ns_r_servfail); in TEST_F() local
761 dns2.addMapping(host_name_deferred, ns_type::ns_t_a, "1.2.3.4"); in TEST_F()
764 ASSERT_TRUE(dns2.startServer()); in TEST_F()
792 EXPECT_EQ(0U, GetNumQueries(dns2, host_name_deferred)); in TEST_F()
815 EXPECT_EQ(0U, GetNumQueries(dns2, host_name_deferred)); in TEST_F()
1034 test::DNSResponder dns2(listen_addr2); in TEST_F() local
1037 StartDns(dns2, {{host_name, ns_type::ns_t_aaaa, "2001:db8::7"}}); in TEST_F()
1143 test::DNSResponder dns2(listen_addr2); in TEST_F() local
1146 ASSERT_TRUE(dns2.startServer()); in TEST_F()
1158 dns2.addMapping(hostName, ns_type::ns_t_a, "1.2.3.5"); in TEST_F()
1173 EXPECT_EQ(dns2.queries().size(), 100U); in TEST_F()
1178 dns2.clearQueries(); in TEST_F()
1540 test::DNSResponder dns2(listen_addr2); in TEST_F() local
1541 dns2.setResponseProbability(0.0); in TEST_F()
1542 ASSERT_TRUE(dns2.startServer()); in TEST_F()
1776 test::DNSResponder dns2(listen_addr2); in TEST_F() local
1778 StartDns(dns2, records2); in TEST_F()
1811 EXPECT_EQ(2U, dns2.queries().size()); in TEST_F()
4106 test::DNSResponder dns2(listen_addr2); in TEST_F() local
4108 StartDns(dns2, records); in TEST_F()
4113 dns2.clearQueries(); in TEST_F()
4148 test::DNSResponder dns2(listen_addr2); in TEST_F() local
4150 StartDns(dns2, records); in TEST_F()
4310 test::DNSResponder dns2(listen_addr2); in TEST_F() local
4312 StartDns(dns2, {{kHelloExampleCom, ns_type::ns_t_a, kHelloExampleComAddrV4}}); in TEST_F()
4331 std::thread t2([&listen_addr2, &hints, &dns2, this]() { in TEST_F()
4338 EXPECT_EQ(1U, GetNumQueriesForType(dns2, ns_type::ns_t_a, kHelloExampleCom)); in TEST_F()
4352 dns2.clearQueries(); in TEST_F()
4354 EXPECT_EQ(0U, GetNumQueries(dns2, kHelloExampleCom)); in TEST_F()
4400 test::DNSResponder dns2(listen_addr2, listen_srv, static_cast<ns_rcode>(-1)); in TEST_F() local
4404 StartDns(dns2, kLargeCnameChainRecords); in TEST_F()
4441 ASSERT_EQ(GetNumQueriesForProtocol(dns2, IPPROTO_UDP, kHelloExampleCom), config.numQueries); in TEST_F()
4442 ASSERT_EQ(GetNumQueriesForProtocol(dns2, IPPROTO_TCP, kHelloExampleCom), 1U); in TEST_F()
4445 dns2.clearQueries(); in TEST_F()
4553 test::DNSResponder dns2(addr2); in TEST_F() local
4555 StartDns(dns2, {}); in TEST_F()
4657 test::DNSResponder dns2(addr2); in TEST_F() local
4659 StartDns(dns2, {}); in TEST_F()
5156 test::DNSResponder dns2(listen_addr2); in TEST_F() local
5158 StartDns(dns2, {}); in TEST_F()
5163 dns2.clearQueries(); in TEST_F()
5180 EXPECT_EQ(dns2.queries().size(), 0U); in TEST_F()