HomeSort by relevance Sort by last modified time
    Searched refs:GetDomainFromHost (Results 1 - 2 of 2) sorted by null

  /external/chromium/net/base/
registry_controlled_domain_unittest.cc 58 std::string GetDomainFromHost(const std::wstring& host) {
116 EXPECT_EQ("baz.jp", GetDomainFromHost(L"a.baz.jp")); // 1
117 EXPECT_EQ("baz.jp.", GetDomainFromHost(L"a.baz.jp.")); // 1
118 EXPECT_EQ("", GetDomainFromHost(L"ac.jp")); // 2
119 EXPECT_EQ("", GetDomainFromHost(L"a.bar.jp")); // 3
120 EXPECT_EQ("", GetDomainFromHost(L"bar.jp")); // 3
121 EXPECT_EQ("", GetDomainFromHost(L"baz.bar.jp")); // 3 4
122 EXPECT_EQ("a.b.baz.bar.jp", GetDomainFromHost(L"a.b.baz.bar.jp")); // 3 4
123 EXPECT_EQ("pref.bar.jp", GetDomainFromHost(L"baz.pref.bar.jp")); // 5
124 EXPECT_EQ("b.bar.baz.com.", GetDomainFromHost(L"a.b.bar.baz.com.")); //
    [all...]
  /external/chromium_org/net/base/registry_controlled_domains/
registry_controlled_domain_unittest.cc 27 std::string GetDomainFromHost(const std::string& host) {
107 EXPECT_EQ("baz.jp", GetDomainFromHost("a.baz.jp")); // 1
108 EXPECT_EQ("baz.jp.", GetDomainFromHost("a.baz.jp.")); // 1
109 EXPECT_EQ("", GetDomainFromHost("ac.jp")); // 2
110 EXPECT_EQ("", GetDomainFromHost("a.bar.jp")); // 3
111 EXPECT_EQ("", GetDomainFromHost("bar.jp")); // 3
112 EXPECT_EQ("", GetDomainFromHost("baz.bar.jp")); // 3 4
113 EXPECT_EQ("a.b.baz.bar.jp", GetDomainFromHost("a.b.baz.bar.jp")); // 3 4
114 EXPECT_EQ("pref.bar.jp", GetDomainFromHost("baz.pref.bar.jp")); // 5
115 EXPECT_EQ("b.bar.baz.com.", GetDomainFromHost("a.b.bar.baz.com.")); //
    [all...]

Completed in 23 milliseconds