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

Unified Diff: third_party/WebKit/Source/platform/weborigin/SchemeRegistryTest.cpp

Issue 2545443002: Cleanup multiple URLSchemesSet static variables (Closed)
Patch Set: remove a test that expects lower() Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/weborigin/SchemeRegistryTest.cpp
diff --git a/third_party/WebKit/Source/platform/weborigin/SchemeRegistryTest.cpp b/third_party/WebKit/Source/platform/weborigin/SchemeRegistryTest.cpp
index ce2e87a73c07d973f665845898eceddf21ec6749..dfa1f55bdb6ba855e14f3aa7daf81d6caa9d3941 100644
--- a/third_party/WebKit/Source/platform/weborigin/SchemeRegistryTest.cpp
+++ b/third_party/WebKit/Source/platform/weborigin/SchemeRegistryTest.cpp
@@ -56,19 +56,16 @@ TEST_F(SchemeRegistryTest, BypassSecureContextCheck) {
const char* scheme1 = "http";
const char* scheme2 = "https";
const char* scheme3 = "random-scheme";
- const char* scheme4 = "RANDOM-SCHEME";
EXPECT_FALSE(SchemeRegistry::schemeShouldBypassSecureContextCheck(scheme1));
EXPECT_FALSE(SchemeRegistry::schemeShouldBypassSecureContextCheck(scheme2));
EXPECT_FALSE(SchemeRegistry::schemeShouldBypassSecureContextCheck(scheme3));
- EXPECT_FALSE(SchemeRegistry::schemeShouldBypassSecureContextCheck(scheme4));
SchemeRegistry::registerURLSchemeBypassingSecureContextCheck("random-scheme");
EXPECT_FALSE(SchemeRegistry::schemeShouldBypassSecureContextCheck(scheme1));
EXPECT_FALSE(SchemeRegistry::schemeShouldBypassSecureContextCheck(scheme2));
EXPECT_TRUE(SchemeRegistry::schemeShouldBypassSecureContextCheck(scheme3));
- EXPECT_TRUE(SchemeRegistry::schemeShouldBypassSecureContextCheck(scheme4));
}
} // namespace
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698