Index: chrome/common/extensions/url_pattern_unittest.cc |
diff --git a/chrome/common/extensions/url_pattern_unittest.cc b/chrome/common/extensions/url_pattern_unittest.cc |
index 3db623f0012fcab8bd14597047ba77abe2b0f4bd..f3fec47ed6e39e211236f2c1de94ce4aa5444979 100644 |
--- a/chrome/common/extensions/url_pattern_unittest.cc |
+++ b/chrome/common/extensions/url_pattern_unittest.cc |
@@ -16,6 +16,7 @@ TEST(URLPatternTest, ParseInvalid) { |
"http://foo.*.bar/baz", // must be first component |
"http:/bar", // scheme separator not found |
"foo://*", // invalid scheme |
+ "chrome://*/*", // we don't support internal chrome URLs |
}; |
for (size_t i = 0; i < arraysize(kInvalidPatterns); ++i) { |
@@ -67,19 +68,6 @@ TEST(URLPatternTest, Match3) { |
EXPECT_FALSE(pattern.MatchesUrl(GURL("http://yahoo.com/foobar"))); |
} |
-// odd schemes and normalization |
-TEST(URLPatternTest, Match4) { |
- URLPattern pattern; |
- EXPECT_TRUE(pattern.Parse("chrome://thinger/*")); |
- EXPECT_EQ("chrome", pattern.scheme()); |
- EXPECT_EQ("thinger", pattern.host()); |
- EXPECT_FALSE(pattern.match_subdomains()); |
- EXPECT_EQ("/*", pattern.path()); |
- EXPECT_TRUE(pattern.MatchesUrl(GURL("chrome://thinger/foobar"))); |
- EXPECT_TRUE(pattern.MatchesUrl(GURL("CHROME://thinger/"))); |
- EXPECT_FALSE(pattern.MatchesUrl(GURL("http://thinger/"))); |
-} |
- |
// glob escaping |
TEST(URLPatternTest, Match5) { |
URLPattern pattern; |