summaryrefslogtreecommitdiffstats
path: root/net/base/registry_controlled_domain_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/registry_controlled_domain_unittest.cc')
-rw-r--r--net/base/registry_controlled_domain_unittest.cc48
1 files changed, 24 insertions, 24 deletions
diff --git a/net/base/registry_controlled_domain_unittest.cc b/net/base/registry_controlled_domain_unittest.cc
index 09c173b..8c90c99 100644
--- a/net/base/registry_controlled_domain_unittest.cc
+++ b/net/base/registry_controlled_domain_unittest.cc
@@ -213,30 +213,30 @@ TEST_F(RegistryControlledDomainTest, TestSameDomainOrHost) {
TestRegistryControlledDomainService::UseDomainData(
Perfect_Hash_Test2::FindDomain);
- EXPECT_EQ(true, CompareDomains("http://a.b.bar.jp/file.html",
- "http://a.b.bar.jp/file.html")); // b.bar.jp
- EXPECT_EQ(true, CompareDomains("http://a.b.bar.jp/file.html",
- "http://b.b.bar.jp/file.html")); // b.bar.jp
- EXPECT_EQ(false, CompareDomains("http://a.foo.jp/file.html", // foo.jp
- "http://a.not.jp/file.html")); // not.jp
- EXPECT_EQ(false, CompareDomains("http://a.foo.jp/file.html", // foo.jp
- "http://a.foo.jp./file.html")); // foo.jp.
- EXPECT_EQ(false, CompareDomains("http://a.com/file.html", // a.com
- "http://b.com/file.html")); // b.com
- EXPECT_EQ(true, CompareDomains("http://a.x.com/file.html",
- "http://b.x.com/file.html")); // x.com
- EXPECT_EQ(true, CompareDomains("http://a.x.com/file.html",
- "http://.x.com/file.html")); // x.com
- EXPECT_EQ(true, CompareDomains("http://a.x.com/file.html",
- "http://..b.x.com/file.html")); // x.com
- EXPECT_EQ(true, CompareDomains("http://intranet/file.html",
- "http://intranet/file.html")); // intranet
- EXPECT_EQ(true, CompareDomains("http://127.0.0.1/file.html",
- "http://127.0.0.1/file.html")); // 127.0.0.1
- EXPECT_EQ(false, CompareDomains("http://192.168.0.1/file.html", // 192.168.0.1
- "http://127.0.0.1/file.html")); // 127.0.0.1
- EXPECT_EQ(false, CompareDomains("file:///C:/file.html",
- "file:///C:/file.html")); // no host
+ EXPECT_TRUE(CompareDomains("http://a.b.bar.jp/file.html",
+ "http://a.b.bar.jp/file.html")); // b.bar.jp
+ EXPECT_TRUE(CompareDomains("http://a.b.bar.jp/file.html",
+ "http://b.b.bar.jp/file.html")); // b.bar.jp
+ EXPECT_FALSE(CompareDomains("http://a.foo.jp/file.html", // foo.jp
+ "http://a.not.jp/file.html")); // not.jp
+ EXPECT_FALSE(CompareDomains("http://a.foo.jp/file.html", // foo.jp
+ "http://a.foo.jp./file.html")); // foo.jp.
+ EXPECT_FALSE(CompareDomains("http://a.com/file.html", // a.com
+ "http://b.com/file.html")); // b.com
+ EXPECT_TRUE(CompareDomains("http://a.x.com/file.html",
+ "http://b.x.com/file.html")); // x.com
+ EXPECT_TRUE(CompareDomains("http://a.x.com/file.html",
+ "http://.x.com/file.html")); // x.com
+ EXPECT_TRUE(CompareDomains("http://a.x.com/file.html",
+ "http://..b.x.com/file.html")); // x.com
+ EXPECT_TRUE(CompareDomains("http://intranet/file.html",
+ "http://intranet/file.html")); // intranet
+ EXPECT_TRUE(CompareDomains("http://127.0.0.1/file.html",
+ "http://127.0.0.1/file.html")); // 127.0.0.1
+ EXPECT_FALSE(CompareDomains("http://192.168.0.1/file.html", // 192.168.0.1
+ "http://127.0.0.1/file.html")); // 127.0.0.1
+ EXPECT_FALSE(CompareDomains("file:///C:/file.html",
+ "file:///C:/file.html")); // no host
}
TEST_F(RegistryControlledDomainTest, TestDefaultData) {