Lines Matching refs:dnsServer
7039 : dnsServer(server), dnsAddr(addr) {} in DnsServerPair()
7040 std::shared_ptr<test::DNSResponder> dnsServer; member
7252 void expectDnsQueryCountsFn(std::shared_ptr<test::DNSResponder> dnsServer, in expectDnsQueryCountsFn() argument
7254 EXPECT_EQ(GetNumQueries(*dnsServer, host_name), count); in expectDnsQueryCountsFn()
7256 dnsServer->clearQueries(); in expectDnsQueryCountsFn()
7342 StartDns(*dnsSvPair->dnsServer, in setupDns()
7346 return dnsSvPair->dnsServer; in setupDns()
7451 StartDns(*dnsPair->dnsServer, {{host_name, ns_type::ns_t_a, "192.0.2.0"}, in TEST_F()
7474 EXPECT_EQ(GetNumQueries(*dnsPair->dnsServer, host_name), expectedQueries); in TEST_F()
7490 dnsPair->dnsServer->setResponseProbability(0.0); in TEST_F()
7491 dnsPair->dnsServer->setErrorRcode(static_cast<ns_rcode>(-1)); in TEST_F()
7492 StartDns(*dnsPair->dnsServer, {}); in TEST_F()
7509 const auto condition = [&]() { return GetNumQueries(*dnsPair->dnsServer, host_name) == 1U; }; in TEST_F()
7529 StartDns(*dnsPair1->dnsServer, {{host_name, ns_type::ns_t_a, "192.0.2.0"}}); in TEST_F()
7530 StartDns(*dnsPair2->dnsServer, {{host_name, ns_type::ns_t_a, "192.0.2.1"}}); in TEST_F()
7546 EXPECT_EQ(GetNumQueries(*dnsPair1->dnsServer, host_name), 1U); in TEST_F()
7547 EXPECT_EQ(GetNumQueries(*dnsPair2->dnsServer, host_name), 1U); in TEST_F()
7556 EXPECT_EQ(GetNumQueries(*dnsPair1->dnsServer, host_name), 2U); in TEST_F()
7557 EXPECT_EQ(GetNumQueries(*dnsPair2->dnsServer, host_name), 1U); in TEST_F()
7790 StartDns(*dnsPair->dnsServer, {{host_name, ns_type::ns_t_a, "192.0.2.0"}, in TEST_F()
7800 EXPECT_EQ(GetNumQueriesForType(*dnsPair->dnsServer, ns_type::ns_t_a, host_name), 1U); in TEST_F()
7801 EXPECT_EQ(GetNumQueriesForType(*dnsPair->dnsServer, ns_type::ns_t_aaaa, host_name), 0U); in TEST_F()
7804 dnsPair->dnsServer->clearQueries(); in TEST_F()
7819 EXPECT_EQ(GetNumQueriesForType(*dnsPair->dnsServer, ns_type::ns_t_a, host_name), 1U); in TEST_F()
7820 EXPECT_EQ(GetNumQueriesForType(*dnsPair->dnsServer, ns_type::ns_t_aaaa, host_name), 1U); in TEST_F()
7844 StartDns(*dnsPair->dnsServer, {}); in TEST_F()
7864 EXPECT_EQ(GetNumQueriesForType(*dnsPair->dnsServer, ns_type::ns_t_a, host_name), 0U); in TEST_F()
7865 EXPECT_EQ(GetNumQueriesForType(*dnsPair->dnsServer, ns_type::ns_t_aaaa, host_name), 0U); in TEST_F()