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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Update pending container policy more often; add test Created 3 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: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index 5b9d629d9adf077fe53f5860197a1f8c0d8472a1..511b326786ce4cb86a23b0c452769b304a3e9da6 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -7246,6 +7246,7 @@ class TestCachePolicyWebFrameClient
const WebString&,
const WebString&,
WebSandboxFlags,
+ const WebParsedFeaturePolicy&,
const WebFrameOwnerProperties& frame_owner_properties) override {
DCHECK(child_client_);
child_frame_creation_count_++;
@@ -7656,6 +7657,7 @@ class FailCreateChildFrame : public FrameTestHelpers::TestWebFrameClient {
const WebString& name,
const WebString& fallback_name,
WebSandboxFlags sandbox_flags,
+ const WebParsedFeaturePolicy& container_policy,
const WebFrameOwnerProperties& frame_owner_properties) override {
++call_count_;
return nullptr;
@@ -11692,12 +11694,14 @@ TEST_F(WebFrameTest, NoLoadingCompletionCallbacksInDetach) {
class MainFrameClient : public FrameTestHelpers::TestWebFrameClient {
public:
- WebLocalFrame* CreateChildFrame(WebLocalFrame* parent,
- WebTreeScopeType scope,
- const WebString& name,
- const WebString& fallback_name,
- WebSandboxFlags sandbox_flags,
- const WebFrameOwnerProperties&) override {
+ WebLocalFrame* CreateChildFrame(
+ WebLocalFrame* parent,
+ WebTreeScopeType scope,
+ const WebString& name,
+ const WebString& fallback_name,
+ WebSandboxFlags sandbox_flags,
+ const WebParsedFeaturePolicy& container_policy,
+ const WebFrameOwnerProperties&) override {
WebLocalFrame* frame =
WebLocalFrame::Create(scope, &child_client_, nullptr, nullptr);
parent->AppendChild(frame);

Powered by Google App Engine
This is Rietveld 408576698