Lines Matching refs:servers
585 std::vector<std::string> servers; in TEST_F() local
588 ASSERT_NO_FATAL_FAILURE(mDnsClient.SetupDNSServers(4, mappings, &dns, &servers)); in TEST_F()
592 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers, domains, kDefaultParams)); in TEST_F()
616 EXPECT_EQ(servers.size(), res_servers.size()); in TEST_F()
628 EXPECT_EQ(servers.size(), res_stats.size()); in TEST_F()
630 EXPECT_THAT(res_servers, testing::UnorderedElementsAreArray(servers)); in TEST_F()
944 std::vector<std::string> servers = {listen_addr0, listen_addr1}; in TEST_F() local
948 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers, kDefaultSearchDomains, params)); in TEST_F()
1039 const std::vector<std::string> servers = {listen_addr0, listen_addr1, listen_addr2}; in TEST_F() local
1042 thread = std::thread([this, &servers]() { in TEST_F()
1046 for (const auto& server : servers) { in TEST_F()
1051 if (serverSubset.empty()) serverSubset = servers; in TEST_F()
1089 setupParams.servers = {listen_addr1, listen_addr2, listen_addr3}; in TEST_F()
1093 cleanupParams.servers.clear(); in TEST_F()
1134 setupParams.servers = {listen_addr1, listen_addr2}; in TEST_F()
1138 cleanupParams.servers.clear(); in TEST_F()
1320 std::vector<std::string> servers; in TEST_F() local
1322 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers, domains)); in TEST_F()
1351 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
1360 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers, domains)); in TEST_F()
1371 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers, domains)); in TEST_F()
1406 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
1432 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers, testDomains1)); in TEST_F()
1450 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers, testDomains2)); in TEST_F()
1470 static void setupTlsServers(const std::vector<std::string>& servers, in setupTlsServers() argument
1475 for (const auto& server : servers) { in setupTlsServers()
1487 std::vector<std::string> servers; in TEST_F() local
1494 ASSERT_NO_FATAL_FAILURE(mDnsClient.SetupDNSServers(MAXNS + 1, mappings, &dns, &servers)); in TEST_F()
1495 ASSERT_NO_FATAL_FAILURE(setupTlsServers(servers, &tls)); in TEST_F()
1497 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, domains, kDefaultParams, in TEST_F()
1524 EXPECT_TRUE(std::equal(servers.begin(), servers.begin() + MAXNS, res_servers.begin())); in TEST_F()
1525 EXPECT_TRUE(std::equal(servers.begin(), servers.begin() + MAXNS, res_tls_servers.begin())); in TEST_F()
1549 std::vector<std::string> servers = {listen_addr1, listen_addr2, listen_addr3}; in TEST_F() local
1550 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
1584 parcel.servers = {listen_addr1, listen_addr2}; in TEST_F()
1611 parcel.servers = {listen_addr3, listen_addr1, listen_addr2}; in TEST_F()
1633 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
1637 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, kDefaultParams, "")); in TEST_F()
1661 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
1677 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, kDefaultParams, "")); in TEST_F()
1723 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
1727 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, kDefaultParams, "")); in TEST_F()
1780 std::vector<std::string> servers = {listen_addr1, listen_addr2}; in TEST_F() local
1786 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, kDefaultParams, in TEST_F()
1814 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
1825 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
1829 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, kDefaultParams, in TEST_F()
1855 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
1859 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, kDefaultParams, in TEST_F()
1896 const std::vector<std::string> servers = {cleartext_addr}; in TEST_F() local
1956 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers, kDefaultSearchDomains, in TEST_F()
1960 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, in TEST_F()
2019 const std::vector<std::string> servers = {cleartext_addr}; in TEST_F() local
2029 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, kDefaultParams, in TEST_F()
2128 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
2129 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
2176 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
2177 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
2219 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
2220 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
2286 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
2287 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
2351 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
2352 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
2487 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
2488 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
2592 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
2593 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
2683 const std::vector<std::string> servers = {CLEARTEXT_ADDR}; in TEST_F() local
2685 paramsForCleanup.servers.clear(); in TEST_F()
2777 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
2782 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, in TEST_F()
2789 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, in TEST_F()
2801 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, in TEST_F()
2861 const std::vector<std::string> servers = {CLEARTEXT_ADDR}; in TEST_F() local
2868 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, kDefaultParams, "")); in TEST_F()
2893 const std::vector<std::string> servers = {CLEARTEXT_ADDR}; in TEST_F() local
2899 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, kDefaultParams, "")); in TEST_F()
2929 std::vector<std::string> servers = {listen_addr}; in TEST_F() local
2930 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
2975 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
2976 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3012 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3013 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3043 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3044 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3078 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3079 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3143 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3144 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3184 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3185 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3266 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3267 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3310 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3311 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3356 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3357 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3430 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3431 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3511 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3512 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3584 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3585 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3652 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3653 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3679 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3680 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3720 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3721 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
3767 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3775 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, kDefaultParams, "")); in TEST_F()
3794 ASSERT_TRUE(mDnsClient.SetResolversWithTls(servers, kDefaultSearchDomains, kDefaultParams, in TEST_F()
3820 const std::vector<std::string> servers = {listen_addr}; in TEST_F() local
3821 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
4110 std::vector<std::string> servers = {listen_addr1, listen_addr2}; in TEST_F() local
4111 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
4154 parcel.servers = {listen_addr1, listen_addr2}; in TEST_F()
4427 parcel.servers = {listen_addr, listen_addr2}; in TEST_F()
4449 parcel.servers.clear(); in TEST_F()
4472 parcel.servers = {unusable_listen_addr, listen_addr}; in TEST_F()
4490 std::vector<std::string> servers; in TEST_F() member
4508 SCOPED_TRACE(fmt::format("testConfig: [{}] [{}] [{}]", fmt::join(config.servers, ","), in TEST_F()
4511 parcel.servers = config.servers; in TEST_F()
4564 parcel.servers = {addr1, addr2, unusable_addr}; in TEST_F()
4587 parcel.servers = config.tlsServers; in TEST_F()
4710 parcel.servers = {config.tlsServer}; in TEST_F()
5160 std::vector<std::string> servers = {listen_addr1, listen_addr2}; in TEST_F() local
5161 ASSERT_TRUE(mDnsClient.SetResolversForNetwork(servers)); in TEST_F()
5395 parcel.servers = {dnsPair->dnsAddr}; in TEST_F()
5445 parcel.servers = {dnsPair->dnsAddr}; in TEST_F()
5487 parcel.servers = {dnsPair1->dnsAddr}; in TEST_F()
5493 parcel.servers = {dnsPair2->dnsAddr}; in TEST_F()