Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3697)

Unified Diff: chrome/common/extensions/user_script_unittest.cc

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: use system srp and mpi libs, not local copies Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/user_script_unittest.cc
diff --git a/chrome/common/extensions/user_script_unittest.cc b/chrome/common/extensions/user_script_unittest.cc
index 297de7b6047e021f18f1deeead6b401c2a725629..8136c2d0db134607b2d989c10a8bf64c106b84be 100644
--- a/chrome/common/extensions/user_script_unittest.cc
+++ b/chrome/common/extensions/user_script_unittest.cc
@@ -23,6 +23,7 @@ TEST(ExtensionUserScriptTest, Match1) {
EXPECT_TRUE(script.MatchesUrl(GURL("http://mail.google.com")));
EXPECT_TRUE(script.MatchesUrl(GURL("http://mail.google.com/foo")));
EXPECT_TRUE(script.MatchesUrl(GURL("https://mail.google.com/foo")));
+ EXPECT_TRUE(script.MatchesUrl(GURL("httpsv://mail.google.com/foo")));
EXPECT_TRUE(script.MatchesUrl(GURL("ftp://mail.google.com/foo")));
EXPECT_TRUE(script.MatchesUrl(GURL("http://woo.mail.google.com/foo")));
EXPECT_TRUE(script.MatchesUrl(GURL("http://mail.yahoo.com/bar")));
@@ -50,6 +51,7 @@ TEST(ExtensionUserScriptTest, Match3) {
EXPECT_TRUE(script.MatchesUrl(GURL("http://mail.google.com")));
EXPECT_TRUE(script.MatchesUrl(GURL("http://mail.google.com/foo")));
EXPECT_FALSE(script.MatchesUrl(GURL("https://mail.google.com/foo")));
+ EXPECT_FALSE(script.MatchesUrl(GURL("httpsv://mail.google.com/foo")));
}
TEST(ExtensionUserScriptTest, Match4) {
@@ -58,6 +60,7 @@ TEST(ExtensionUserScriptTest, Match4) {
EXPECT_TRUE(script.MatchesUrl(GURL("http://foo.com/bar")));
EXPECT_TRUE(script.MatchesUrl(GURL("http://hot.com/dog")));
EXPECT_TRUE(script.MatchesUrl(GURL("https://hot.com/dog")));
+ EXPECT_TRUE(script.MatchesUrl(GURL("httpsv://hot.com/dog")));
EXPECT_TRUE(script.MatchesUrl(GURL("file:///foo/bar")));
}

Powered by Google App Engine
This is Rietveld 408576698