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

Unified Diff: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicyTest.cpp

Issue 2075053003: Add basic Referrer-Policy support for Documents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update test expectation for tweaked console message Created 4 years, 6 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: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicyTest.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicyTest.cpp b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicyTest.cpp
index 717a640d6e0212f5bd69cd7f0400c027747b969f..1034f8b5c002b283b7b5cfe476a99c6ed57fe964 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicyTest.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicyTest.cpp
@@ -164,7 +164,7 @@ TEST_F(ContentSecurityPolicyTest, MultipleReferrerPolicies)
csp->didReceiveHeader("referrer unsafe-url;", ContentSecurityPolicyHeaderTypeEnforce, ContentSecurityPolicyHeaderSourceHTTP);
csp->bindToExecutionContext(document.get());
EXPECT_EQ(ReferrerPolicyAlways, document->getReferrerPolicy());
- document->processReferrerPolicy("origin");
+ document->parseAndSetReferrerPolicy("origin");
EXPECT_EQ(ReferrerPolicyOrigin, document->getReferrerPolicy());
}
@@ -173,8 +173,8 @@ TEST_F(ContentSecurityPolicyTest, UnknownReferrerDirective)
csp->didReceiveHeader("referrer unsafe-url; referrer blahblahblah", ContentSecurityPolicyHeaderTypeEnforce, ContentSecurityPolicyHeaderSourceHTTP);
csp->bindToExecutionContext(document.get());
EXPECT_EQ(ReferrerPolicyAlways, document->getReferrerPolicy());
- document->processReferrerPolicy("origin");
- document->processReferrerPolicy("blahblahblah");
+ document->parseAndSetReferrerPolicy("origin");
+ document->parseAndSetReferrerPolicy("blahblahblah");
EXPECT_EQ(ReferrerPolicyOrigin, document->getReferrerPolicy());
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContext.cpp ('k') | third_party/WebKit/Source/core/html/HTMLMetaElement-in.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698