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

Unified Diff: Source/core/frame/csp/ContentSecurityPolicyTest.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/frame/csp/ContentSecurityPolicy.cpp ('k') | Source/core/loader/FrameLoader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/csp/ContentSecurityPolicyTest.cpp
diff --git a/Source/core/frame/csp/ContentSecurityPolicyTest.cpp b/Source/core/frame/csp/ContentSecurityPolicyTest.cpp
index 960ec198f9c7c38893ec940dfab9603606a95e22..7a3017f043ddb93632115324fe39de2fb8f16053 100644
--- a/Source/core/frame/csp/ContentSecurityPolicyTest.cpp
+++ b/Source/core/frame/csp/ContentSecurityPolicyTest.cpp
@@ -42,40 +42,40 @@ TEST_F(ContentSecurityPolicyTest, ParseUpgradeInsecureRequestsDisabled)
{
RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled(false);
csp->didReceiveHeader("upgrade-insecure-requests", ContentSecurityPolicyHeaderTypeEnforce, ContentSecurityPolicyHeaderSourceHTTP);
- EXPECT_EQ(SecurityContext::InsecureContentDoNotUpgrade, csp->insecureContentPolicy());
+ EXPECT_EQ(SecurityContext::InsecureRequestsDoNotUpgrade, csp->insecureRequestsPolicy());
csp->bindToExecutionContext(document.get());
- EXPECT_EQ(SecurityContext::InsecureContentDoNotUpgrade, document->insecureContentPolicy());
+ EXPECT_EQ(SecurityContext::InsecureRequestsDoNotUpgrade, document->insecureRequestsPolicy());
}
TEST_F(ContentSecurityPolicyTest, ParseUpgradeInsecureRequestsEnabled)
{
RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled(true);
csp->didReceiveHeader("upgrade-insecure-requests", ContentSecurityPolicyHeaderTypeEnforce, ContentSecurityPolicyHeaderSourceHTTP);
- EXPECT_EQ(SecurityContext::InsecureContentUpgrade, csp->insecureContentPolicy());
+ EXPECT_EQ(SecurityContext::InsecureRequestsUpgrade, csp->insecureRequestsPolicy());
csp->bindToExecutionContext(document.get());
- EXPECT_EQ(SecurityContext::InsecureContentUpgrade, document->insecureContentPolicy());
+ EXPECT_EQ(SecurityContext::InsecureRequestsUpgrade, document->insecureRequestsPolicy());
}
TEST_F(ContentSecurityPolicyTest, ParseMonitorInsecureRequestsDisabled)
{
RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled(false);
csp->didReceiveHeader("upgrade-insecure-requests", ContentSecurityPolicyHeaderTypeReport, ContentSecurityPolicyHeaderSourceHTTP);
- EXPECT_EQ(SecurityContext::InsecureContentDoNotUpgrade, csp->insecureContentPolicy());
+ EXPECT_EQ(SecurityContext::InsecureRequestsDoNotUpgrade, csp->insecureRequestsPolicy());
csp->bindToExecutionContext(document.get());
- EXPECT_EQ(SecurityContext::InsecureContentDoNotUpgrade, document->insecureContentPolicy());
+ EXPECT_EQ(SecurityContext::InsecureRequestsDoNotUpgrade, document->insecureRequestsPolicy());
}
TEST_F(ContentSecurityPolicyTest, ParseMonitorInsecureRequestsEnabled)
{
RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled(true);
csp->didReceiveHeader("upgrade-insecure-requests", ContentSecurityPolicyHeaderTypeReport, ContentSecurityPolicyHeaderSourceHTTP);
- EXPECT_EQ(SecurityContext::InsecureContentDoNotUpgrade, csp->insecureContentPolicy());
+ EXPECT_EQ(SecurityContext::InsecureRequestsDoNotUpgrade, csp->insecureRequestsPolicy());
csp->bindToExecutionContext(document.get());
- EXPECT_EQ(SecurityContext::InsecureContentDoNotUpgrade, document->insecureContentPolicy());
+ EXPECT_EQ(SecurityContext::InsecureRequestsDoNotUpgrade, document->insecureRequestsPolicy());
}
} // namespace
« no previous file with comments | « Source/core/frame/csp/ContentSecurityPolicy.cpp ('k') | Source/core/loader/FrameLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698