+ // Navigating to a blank page is considered the same site.
+ EXPECT_TRUE(SiteInstance::IsSameWebSite(NULL, url_foo, url_blank));
+ EXPECT_TRUE(SiteInstance::IsSameWebSite(NULL, url_foo_https, url_blank));
+ EXPECT_TRUE(SiteInstance::IsSameWebSite(NULL, url_foo_port, url_blank));
+
+ // Navigating from a blank site is not considered to be the same site.
+ EXPECT_FALSE(SiteInstance::IsSameWebSite(NULL, url_blank, url_foo));
+ EXPECT_FALSE(SiteInstance::IsSameWebSite(NULL, url_blank, url_foo_https));
+ EXPECT_FALSE(SiteInstance::IsSameWebSite(NULL, url_blank, url_foo_port));
+