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

Unified Diff: chrome/common/extensions/extension_extent_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/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) {

Powered by Google App Engine
This is Rietveld 408576698