GetDomainFromHost 107 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("baz.jp", GetDomainFromHost("a.baz.jp")); // 1 GetDomainFromHost 108 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("baz.jp.", GetDomainFromHost("a.baz.jp.")); // 1 GetDomainFromHost 109 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("", GetDomainFromHost("ac.jp")); // 2 GetDomainFromHost 110 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("", GetDomainFromHost("a.bar.jp")); // 3 GetDomainFromHost 111 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("", GetDomainFromHost("bar.jp")); // 3 GetDomainFromHost 112 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("", GetDomainFromHost("baz.bar.jp")); // 3 4 GetDomainFromHost 113 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("a.b.baz.bar.jp", GetDomainFromHost("a.b.baz.bar.jp")); // 3 4 GetDomainFromHost 114 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("pref.bar.jp", GetDomainFromHost("baz.pref.bar.jp")); // 5 GetDomainFromHost 115 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("b.bar.baz.com.", GetDomainFromHost("a.b.bar.baz.com.")); // 6 GetDomainFromHost 116 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("a.d.c", GetDomainFromHost("a.d.c")); // 7 GetDomainFromHost 117 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("a.d.c", GetDomainFromHost(".a.d.c")); // 7 GetDomainFromHost 118 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("a.d.c", GetDomainFromHost("..a.d.c")); // 7 GetDomainFromHost 119 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("b.c", GetDomainFromHost("a.b.c")); // 7 8 GetDomainFromHost 120 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("baz.com", GetDomainFromHost("baz.com")); // none GetDomainFromHost 121 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("baz.com.", GetDomainFromHost("baz.com.")); // none GetDomainFromHost 123 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("", GetDomainFromHost(std::string())); GetDomainFromHost 124 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("", GetDomainFromHost("foo.com..")); GetDomainFromHost 125 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("", GetDomainFromHost("...")); GetDomainFromHost 126 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("", GetDomainFromHost("192.168.0.1")); GetDomainFromHost 127 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("", GetDomainFromHost("localhost.")); GetDomainFromHost 128 net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc EXPECT_EQ("", GetDomainFromHost(".localhost."));