Index: chrome/common/extensions/extension_extent_unittest.cc |
diff --git a/chrome/common/extensions/extension_extent_unittest.cc b/chrome/common/extensions/extension_extent_unittest.cc |
index 8297eca48007a8d0d6299667685700c40ab5cd6d..bc2ef681f22f29b3fb34263a7be5e0173517ff56 100644 |
--- a/chrome/common/extensions/extension_extent_unittest.cc |
+++ b/chrome/common/extensions/extension_extent_unittest.cc |
@@ -29,6 +29,7 @@ TEST(ExtensionExtentTest, One) { |
EXPECT_TRUE(extent.ContainsURL(GURL("http://www.google.com/monkey"))); |
EXPECT_FALSE(extent.ContainsURL(GURL("https://www.google.com/"))); |
EXPECT_FALSE(extent.ContainsURL(GURL("https://www.microsoft.com/"))); |
+ EXPECT_FALSE(extent.ContainsURL(GURL("httpsv://www.microsoft.com/"))); |
} |
TEST(ExtensionExtentTest, Two) { |
@@ -39,6 +40,14 @@ TEST(ExtensionExtentTest, Two) { |
EXPECT_TRUE(extent.ContainsURL(GURL("http://www.google.com/monkey"))); |
EXPECT_TRUE(extent.ContainsURL(GURL("http://www.yahoo.com/monkey"))); |
EXPECT_FALSE(extent.ContainsURL(GURL("https://www.apple.com/monkey"))); |
+ EXPECT_FALSE(extent.ContainsURL(GURL("httpsv://www.apple.com/monkey"))); |
+} |
+ |
+TEST(ExtensionExtentTest, SeparateHTTPSAndHTTPSV) { |
+ ExtensionExtent extent; |
+ extent.AddPattern(URLPattern(kAllSchemes, "https://www.google.com/*")); |
+ |
+ EXPECT_FALSE(extent.ContainsURL(GURL("httpsv://www.google.com/"))); |
} |
TEST(ExtensionExtentTest, OverlapsWith) { |