diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-30 21:52:07 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-30 21:52:07 +0000 |
commit | 7715d63a3b9da9c149cdd0f544dbdf4cb13a8ed7 (patch) | |
tree | c018df57b687d9b3a6c8e0d06d297ca2e6d18c30 /chrome/common/extensions/user_script_unittest.cc | |
parent | f33b82f2e0be4b3c739f3e51f34b680080e0150e (diff) | |
download | chromium_src-7715d63a3b9da9c149cdd0f544dbdf4cb13a8ed7.zip chromium_src-7715d63a3b9da9c149cdd0f544dbdf4cb13a8ed7.tar.gz chromium_src-7715d63a3b9da9c149cdd0f544dbdf4cb13a8ed7.tar.bz2 |
Add a wildcard scheme and a special 'all_urls' pattern to URLPattern.
BUG=47179
Review URL: http://codereview.chromium.org/2884008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51295 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/user_script_unittest.cc')
-rw-r--r-- | chrome/common/extensions/user_script_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/extensions/user_script_unittest.cc b/chrome/common/extensions/user_script_unittest.cc index 7b5cc6d..d177089 100644 --- a/chrome/common/extensions/user_script_unittest.cc +++ b/chrome/common/extensions/user_script_unittest.cc @@ -63,7 +63,7 @@ TEST(UserScriptTest, Match5) { } TEST(UserScriptTest, Match6) { - URLPattern pattern; + URLPattern pattern(URLPattern::SCHEMES_ALL); ASSERT_TRUE(pattern.Parse("http://*/foo*")); UserScript script; @@ -78,7 +78,7 @@ TEST(UserScriptTest, UrlPatternGlobInteraction) { // If there are both, match intersection(union(globs), union(urlpatterns)). UserScript script; - URLPattern pattern; + URLPattern pattern(URLPattern::SCHEMES_ALL); ASSERT_TRUE(pattern.Parse("http://www.google.com/*")); script.add_url_pattern(pattern); @@ -105,8 +105,8 @@ TEST(UserScriptTest, UrlPatternGlobInteraction) { } TEST(UserScriptTest, Pickle) { - URLPattern pattern1; - URLPattern pattern2; + URLPattern pattern1(URLPattern::SCHEMES_ALL); + URLPattern pattern2(URLPattern::SCHEMES_ALL); ASSERT_TRUE(pattern1.Parse("http://*/foo*")); ASSERT_TRUE(pattern2.Parse("http://bar/baz*")); |