Home
last modified time | relevance | path

Searched refs:IsLocalHostname (Results 1 – 4 of 4) sorted by relevance

/external/cronet/net/base/
Durl_util_unittest.cc893 TEST(UrlUtilTest, IsLocalHostname) { in TEST() argument
894 EXPECT_TRUE(IsLocalHostname("localhost")); in TEST()
895 EXPECT_TRUE(IsLocalHostname("localhost.")); in TEST()
896 EXPECT_TRUE(IsLocalHostname("LOCALhost")); in TEST()
897 EXPECT_TRUE(IsLocalHostname("LOCALhost.")); in TEST()
898 EXPECT_TRUE(IsLocalHostname("abc.localhost")); in TEST()
899 EXPECT_TRUE(IsLocalHostname("abc.localhost.")); in TEST()
900 EXPECT_TRUE(IsLocalHostname("abc.LOCALhost")); in TEST()
901 EXPECT_TRUE(IsLocalHostname("abc.LOCALhost.")); in TEST()
902 EXPECT_TRUE(IsLocalHostname("abc.def.localhost")); in TEST()
[all …]
Durl_util.h246 NET_EXPORT_PRIVATE bool IsLocalHostname(base::StringPiece host);
Durl_util.cc440 return IsLocalHostname(host); in HostStringIsLocalhost()
518 bool IsLocalHostname(base::StringPiece host) { in IsLocalHostname() function
/external/cronet/net/dns/
Dhost_resolver_manager.cc550 if (!IsLocalHostname(host)) in ResolveLocalHostname()