Home
last modified time | relevance | path

Searched refs:domain_search (Results 1 – 17 of 17) sorted by relevance

/system/connectivity/shill/
Dresolver_unittest.cc87 vector<string> domain_search; in TEST_F() local
90 domain_search.push_back(kSearchDomain0); in TEST_F()
91 domain_search.push_back(kSearchDomain1); in TEST_F()
93 EXPECT_TRUE(resolver_->SetDNSFromLists(dns_servers, domain_search)); in TEST_F()
105 vector<string> domain_search; in TEST_F() local
107 EXPECT_TRUE(resolver_->SetDNSFromLists(dns_servers, domain_search)); in TEST_F()
117 vector<string> domain_search; in TEST_F() local
120 domain_search.push_back(kSearchDomain0); in TEST_F()
121 domain_search.push_back(kSearchDomain1); in TEST_F()
126 EXPECT_TRUE(resolver_->SetDNSFromLists(dns_servers, domain_search)); in TEST_F()
Dresolver.cc56 const std::vector<std::string>& domain_search) { in SetDNSFromLists() argument
59 if (dns_servers.empty() && domain_search.empty()) { in SetDNSFromLists()
72 for (iter = domain_search.begin(); in SetDNSFromLists()
73 iter != domain_search.end(); ++iter) { in SetDNSFromLists()
Dipconfig_unittest.cc117 EXPECT_EQ(properties.domain_search.size(), in ExpectPropertiesEqual()
118 ipconfig_->properties().domain_search.size()); in ExpectPropertiesEqual()
119 if (properties.domain_search.size() == in ExpectPropertiesEqual()
120 ipconfig_->properties().domain_search.size()) { in ExpectPropertiesEqual()
121 for (size_t i = 0; i < properties.domain_search.size(); ++i) { in ExpectPropertiesEqual()
122 EXPECT_EQ(properties.domain_search[i], in ExpectPropertiesEqual()
123 ipconfig_->properties().domain_search[i]); in ExpectPropertiesEqual()
161 properties.domain_search.push_back("zoo.org"); in TEST_F()
162 properties.domain_search.push_back("zoo.com"); in TEST_F()
Dconnection.cc285 if (!config->properties().domain_search.empty()) { in UpdateFromIPConfig()
286 dns_domain_search_ = config->properties().domain_search; in UpdateFromIPConfig()
360 vector<string> domain_search = dns_domain_search_; in PushDNSConfig() local
361 if (domain_search.empty() && !dns_domain_name_.empty()) { in PushDNSConfig()
364 domain_search.push_back(dns_domain_name_ + "."); in PushDNSConfig()
367 resolver_->SetDNSFromLists(dns_servers_, domain_search); in PushDNSConfig()
Dmock_resolver.h37 const std::vector<std::string>& domain_search));
Dresolver.h54 const std::vector<std::string>& domain_search);
Dconnection_unittest.cc106 properties_.domain_search.push_back(kSearchDomain0); in SetUp()
107 properties_.domain_search.push_back(kSearchDomain1); in SetUp()
331 ipconfig_->properties().domain_search)); in TEST_F()
450 ipconfig_->properties().domain_search)); in TEST_F()
610 ipconfig_->properties().domain_search)); in TEST_F()
621 properties_.domain_search.clear(); in TEST_F()
Dipconfig.h68 std::vector<std::string> domain_search; member
Dipconfig.cc95 &properties_.domain_search); in Init()
/system/connectivity/shill/dhcp/
Ddhcpv6_config_unittest.cc195 vector<string> domain_search; in TEST_F() local
196 domain_search.push_back(kConfigDomainSearch); in TEST_F()
197 conf.SetStrings(DHCPv6Config::kConfigurationKeyDomainSearch, domain_search); in TEST_F()
208 ASSERT_EQ(1, config_->properties_.domain_search.size()); in TEST_F()
209 EXPECT_EQ(kConfigDomainSearch, config_->properties_.domain_search[0]); in TEST_F()
Ddhcpv6_config.cc158 properties_.domain_search = value.Get<vector<string>>(); in ParseConfiguration()
Ddhcpv4_config_unittest.cc337 ASSERT_EQ(2, properties.domain_search.size()); in TEST_F()
338 EXPECT_EQ("foo.com", properties.domain_search[0]); in TEST_F()
339 EXPECT_EQ("bar.com", properties.domain_search[1]); in TEST_F()
Ddhcpv4_config.cc389 properties->domain_search = value.Get<vector<string>>(); in ParseConfiguration()
/system/connectivity/shill/vpn/
Dopenvpn_driver_unittest.cc589 vector<string> domain_search; in TEST_F() local
592 OpenVPNDriver::ParseForeignOption("", &domain_search, &dns_servers); in TEST_F()
594 "dhcp-option DOMAIN", &domain_search, &dns_servers); in TEST_F()
596 "dhcp-option DOMAIN zzz.com foo", &domain_search, &dns_servers); in TEST_F()
598 "dhcp-Option DOmAIN xyz.com", &domain_search, &dns_servers); in TEST_F()
599 ASSERT_EQ(1, domain_search.size()); in TEST_F()
600 EXPECT_EQ("xyz.com", domain_search[0]); in TEST_F()
602 "dhcp-option DnS 1.2.3.4", &domain_search, &dns_servers); in TEST_F()
618 ASSERT_EQ(5, props.domain_search.size()); in TEST_F()
619 EXPECT_EQ("two.com", props.domain_search[0]); in TEST_F()
[all …]
Dopenvpn_driver.cc498 vector<string> domain_search; in ParseForeignOptions() local
501 ParseForeignOption(option_map.second, &domain_search, &dns_servers); in ParseForeignOptions()
503 if (!domain_search.empty()) { in ParseForeignOptions()
504 properties->domain_search.swap(domain_search); in ParseForeignOptions()
506 LOG_IF(WARNING, properties->domain_search.empty()) in ParseForeignOptions()
517 vector<string>* domain_search, in ParseForeignOption() argument
527 domain_search->push_back(tokens[2]); in ParseForeignOption()
Dopenvpn_driver.h188 std::vector<std::string>* domain_search,
Dthird_party_vpn_driver.cc337 kNonIPDelimiter, &ip_properties_.domain_search, in SetParameters()