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

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

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Fix rebase 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 e9ddd44f636e4afa2506e35ae356f157b7af3a97..ffe660026b014d8f18a6461187f1e503b31f2c88 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -7303,6 +7303,7 @@ class TestCachePolicyWebFrameClient
const WebString&,
const WebString&,
WebSandboxFlags,
+ const WebParsedFeaturePolicy&,
const WebFrameOwnerProperties& frame_owner_properties) override {
DCHECK(child_client_);
child_frame_creation_count_++;
@@ -7713,6 +7714,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;
@@ -11749,12 +11751,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);
@@ -11956,6 +11960,7 @@ class TestFallbackWebFrameClient : public FrameTestHelpers::TestWebFrameClient {
const WebString&,
const WebString&,
WebSandboxFlags,
+ const WebParsedFeaturePolicy& container_policy,
const WebFrameOwnerProperties& frameOwnerProperties) override {
DCHECK(child_client_);
WebLocalFrame* frame =

Powered by Google App Engine
This is Rietveld 408576698