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

Unified Diff: Source/core/fetch/ResourceFetcherTest.cpp

Issue 980213002: Rename InsecureContentPolicy to InsecureRequestsPolicy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/core/frame/csp/CSPDirectiveList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceFetcherTest.cpp
diff --git a/Source/core/fetch/ResourceFetcherTest.cpp b/Source/core/fetch/ResourceFetcherTest.cpp
index 9f99afa7d141f77737684395f71a017805136f38..f2ed228bcd6191885f06b1231729369f01510fa0 100644
--- a/Source/core/fetch/ResourceFetcherTest.cpp
+++ b/Source/core/fetch/ResourceFetcherTest.cpp
@@ -151,7 +151,7 @@ TEST_F(ResourceFetcherUpgradeTest, UpgradeInsecureResourceRequests)
{ "ftp://example.test:1212/image.png", "ftp://example.test:1212/image.png" },
};
- document->setInsecureContentPolicy(SecurityContext::InsecureContentUpgrade);
+ document->setInsecureRequestsPolicy(SecurityContext::InsecureRequestsUpgrade);
for (auto test : tests) {
// secureOrigin's host is 'secureorigin.test', not 'example.test'
@@ -179,7 +179,7 @@ TEST_F(ResourceFetcherUpgradeTest, UpgradeInsecureResourceRequests)
TEST_F(ResourceFetcherUpgradeTest, DoNotUpgradeInsecureResourceRequests)
{
document->setSecurityOrigin(secureOrigin);
- document->setInsecureContentPolicy(SecurityContext::InsecureContentDoNotUpgrade);
+ document->setInsecureRequestsPolicy(SecurityContext::InsecureRequestsDoNotUpgrade);
expectUpgrade("http://example.test/image.png", "http://example.test/image.png");
expectUpgrade("http://example.test:80/image.png", "http://example.test:80/image.png");
@@ -212,10 +212,10 @@ TEST_F(ResourceFetcherUpgradeTest, SendPreferHeader)
};
for (auto test : tests) {
- document->setInsecureContentPolicy(SecurityContext::InsecureContentDoNotUpgrade);
+ document->setInsecureRequestsPolicy(SecurityContext::InsecureRequestsDoNotUpgrade);
expectPreferHeader(test.toRequest, test.frameType, test.shouldPrefer);
- document->setInsecureContentPolicy(SecurityContext::InsecureContentUpgrade);
+ document->setInsecureRequestsPolicy(SecurityContext::InsecureRequestsUpgrade);
expectPreferHeader(test.toRequest, test.frameType, test.shouldPrefer);
}
}
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/core/frame/csp/CSPDirectiveList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698