Home
last modified time | relevance | path

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

/external/chromium/net/base/
Dregistry_controlled_domain_unittest.cc54 std::string GetDomainFromURL(const std::string& url) { in GetDomainFromURL() function
85 EXPECT_EQ("baz.jp", GetDomainFromURL("http://a.baz.jp/file.html")); // 1 in TEST_F()
86 EXPECT_EQ("baz.jp.", GetDomainFromURL("http://a.baz.jp./file.html")); // 1 in TEST_F()
87 EXPECT_EQ("", GetDomainFromURL("http://ac.jp")); // 2 in TEST_F()
88 EXPECT_EQ("", GetDomainFromURL("http://a.bar.jp")); // 3 in TEST_F()
89 EXPECT_EQ("", GetDomainFromURL("http://bar.jp")); // 3 in TEST_F()
90 EXPECT_EQ("", GetDomainFromURL("http://baz.bar.jp")); // 3 4 in TEST_F()
91 EXPECT_EQ("a.b.baz.bar.jp", GetDomainFromURL("http://a.b.baz.bar.jp")); in TEST_F()
93 EXPECT_EQ("pref.bar.jp", GetDomainFromURL("http://baz.pref.bar.jp")); // 5 in TEST_F()
94 EXPECT_EQ("b.bar.baz.com.", GetDomainFromURL("http://a.b.bar.baz.com.")); in TEST_F()
[all …]