summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/user_script_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/user_script_unittest.cc')
-rw-r--r--chrome/common/extensions/user_script_unittest.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/common/extensions/user_script_unittest.cc b/chrome/common/extensions/user_script_unittest.cc
index 949ad1a..297de7b 100644
--- a/chrome/common/extensions/user_script_unittest.cc
+++ b/chrome/common/extensions/user_script_unittest.cc
@@ -15,7 +15,7 @@ static const int kAllSchemes =
URLPattern::SCHEME_FTP |
URLPattern::SCHEME_CHROMEUI;
-TEST(UserScriptTest, Match1) {
+TEST(ExtensionUserScriptTest, Match1) {
UserScript script;
script.add_glob("*mail.google.com*");
script.add_glob("*mail.yahoo.com*");
@@ -34,7 +34,7 @@ TEST(UserScriptTest, Match1) {
EXPECT_FALSE(script.MatchesUrl(GURL("http://mail.google.com/foo")));
}
-TEST(UserScriptTest, Match2) {
+TEST(ExtensionUserScriptTest, Match2) {
UserScript script;
script.add_glob("*mail.google.com/");
// GURL normalizes the URL to have a trailing "/"
@@ -43,7 +43,7 @@ TEST(UserScriptTest, Match2) {
EXPECT_FALSE(script.MatchesUrl(GURL("http://mail.google.com/foo")));
}
-TEST(UserScriptTest, Match3) {
+TEST(ExtensionUserScriptTest, Match3) {
UserScript script;
script.add_glob("http://mail.google.com/*");
// GURL normalizes the URL to have a trailing "/"
@@ -52,7 +52,7 @@ TEST(UserScriptTest, Match3) {
EXPECT_FALSE(script.MatchesUrl(GURL("https://mail.google.com/foo")));
}
-TEST(UserScriptTest, Match4) {
+TEST(ExtensionUserScriptTest, Match4) {
UserScript script;
script.add_glob("*");
EXPECT_TRUE(script.MatchesUrl(GURL("http://foo.com/bar")));
@@ -61,7 +61,7 @@ TEST(UserScriptTest, Match4) {
EXPECT_TRUE(script.MatchesUrl(GURL("file:///foo/bar")));
}
-TEST(UserScriptTest, Match5) {
+TEST(ExtensionUserScriptTest, Match5) {
UserScript script;
script.add_glob("*foo*");
EXPECT_TRUE(script.MatchesUrl(GURL("http://foo.com/bar")));
@@ -69,7 +69,7 @@ TEST(UserScriptTest, Match5) {
EXPECT_FALSE(script.MatchesUrl(GURL("http://baz.org")));
}
-TEST(UserScriptTest, Match6) {
+TEST(ExtensionUserScriptTest, Match6) {
URLPattern pattern(kAllSchemes);
ASSERT_EQ(URLPattern::PARSE_SUCCESS, pattern.Parse("http://*/foo*"));
@@ -81,7 +81,7 @@ TEST(UserScriptTest, Match6) {
// NOTE: URLPattern is tested more extensively in url_pattern_unittest.cc.
}
-TEST(UserScriptTest, UrlPatternGlobInteraction) {
+TEST(ExtensionUserScriptTest, UrlPatternGlobInteraction) {
// If there are both, match intersection(union(globs), union(urlpatterns)).
UserScript script;
@@ -112,7 +112,7 @@ TEST(UserScriptTest, UrlPatternGlobInteraction) {
EXPECT_TRUE(script.MatchesUrl(GURL("http://www.google.com/foo")));
}
-TEST(UserScriptTest, Pickle) {
+TEST(ExtensionUserScriptTest, Pickle) {
URLPattern pattern1(kAllSchemes);
URLPattern pattern2(kAllSchemes);
ASSERT_EQ(URLPattern::PARSE_SUCCESS, pattern1.Parse("http://*/foo*"));
@@ -162,7 +162,7 @@ TEST(UserScriptTest, Pickle) {
}
}
-TEST(UserScriptTest, Defaults) {
+TEST(ExtensionUserScriptTest, Defaults) {
UserScript script;
ASSERT_EQ(UserScript::DOCUMENT_IDLE, script.run_location());
}