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

Unified Diff: content/browser/frame_host/navigation_controller_impl_unittest.cc

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Addressing review comments 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: content/browser/frame_host/navigation_controller_impl_unittest.cc
diff --git a/content/browser/frame_host/navigation_controller_impl_unittest.cc b/content/browser/frame_host/navigation_controller_impl_unittest.cc
index cb9f270f846858b12fcdd45c09e8fa77ac3f1c2e..0f5e0061e1afb7f54e54ad2cde93b8fac5a4c9f4 100644
--- a/content/browser/frame_host/navigation_controller_impl_unittest.cc
+++ b/content/browser/frame_host/navigation_controller_impl_unittest.cc
@@ -2231,7 +2231,7 @@ TEST_F(NavigationControllerTest, NewSubframe) {
main_test_rfh()->OnCreateChildFrame(
process()->GetNextRoutingID(), blink::WebTreeScopeType::kDocument,
std::string(), unique_name, blink::WebSandboxFlags::kNone,
- FrameOwnerProperties());
+ ParsedFeaturePolicyHeader(), FrameOwnerProperties());
TestRenderFrameHost* subframe = static_cast<TestRenderFrameHost*>(
contents()->GetFrameTree()->root()->child_at(0)->current_frame_host());
const GURL subframe_url("http://foo1/subframe");
@@ -2311,7 +2311,7 @@ TEST_F(NavigationControllerTest, AutoSubframe) {
main_test_rfh()->OnCreateChildFrame(
process()->GetNextRoutingID(), blink::WebTreeScopeType::kDocument,
std::string(), unique_name0, blink::WebSandboxFlags::kNone,
- FrameOwnerProperties());
+ ParsedFeaturePolicyHeader(), FrameOwnerProperties());
TestRenderFrameHost* subframe = static_cast<TestRenderFrameHost*>(
contents()->GetFrameTree()->root()->child_at(0)->current_frame_host());
const GURL url2("http://foo/2");
@@ -2355,7 +2355,7 @@ TEST_F(NavigationControllerTest, AutoSubframe) {
main_test_rfh()->OnCreateChildFrame(
process()->GetNextRoutingID(), blink::WebTreeScopeType::kDocument,
std::string(), unique_name1, blink::WebSandboxFlags::kNone,
- FrameOwnerProperties());
+ ParsedFeaturePolicyHeader(), FrameOwnerProperties());
TestRenderFrameHost* subframe2 = static_cast<TestRenderFrameHost*>(
contents()->GetFrameTree()->root()->child_at(1)->current_frame_host());
const GURL url3("http://foo/3");
@@ -2399,7 +2399,7 @@ TEST_F(NavigationControllerTest, AutoSubframe) {
subframe->OnCreateChildFrame(
process()->GetNextRoutingID(), blink::WebTreeScopeType::kDocument,
std::string(), unique_name2, blink::WebSandboxFlags::kNone,
- FrameOwnerProperties());
+ ParsedFeaturePolicyHeader(), FrameOwnerProperties());
TestRenderFrameHost* subframe3 =
static_cast<TestRenderFrameHost*>(contents()
->GetFrameTree()
@@ -2463,7 +2463,7 @@ TEST_F(NavigationControllerTest, BackSubframe) {
main_test_rfh()->OnCreateChildFrame(
process()->GetNextRoutingID(), blink::WebTreeScopeType::kDocument,
std::string(), unique_name, blink::WebSandboxFlags::kNone,
- FrameOwnerProperties());
+ ParsedFeaturePolicyHeader(), FrameOwnerProperties());
TestRenderFrameHost* subframe = static_cast<TestRenderFrameHost*>(
contents()->GetFrameTree()->root()->child_at(0)->current_frame_host());
const GURL subframe_url("http://foo1/subframe");
@@ -3917,7 +3917,7 @@ TEST_F(NavigationControllerTest, SameSubframe) {
main_test_rfh()->OnCreateChildFrame(
process()->GetNextRoutingID(), blink::WebTreeScopeType::kDocument,
std::string(), unique_name, blink::WebSandboxFlags::kNone,
- FrameOwnerProperties());
+ ParsedFeaturePolicyHeader(), FrameOwnerProperties());
TestRenderFrameHost* subframe = static_cast<TestRenderFrameHost*>(
contents()->GetFrameTree()->root()->child_at(0)->current_frame_host());
const GURL subframe_url("http://www.google.com/#");
@@ -4092,7 +4092,7 @@ TEST_F(NavigationControllerTest, SubframeWhilePending) {
main_test_rfh()->OnCreateChildFrame(
process()->GetNextRoutingID(), blink::WebTreeScopeType::kDocument,
std::string(), unique_name, blink::WebSandboxFlags::kNone,
- FrameOwnerProperties());
+ ParsedFeaturePolicyHeader(), FrameOwnerProperties());
TestRenderFrameHost* subframe = static_cast<TestRenderFrameHost*>(
contents()->GetFrameTree()->root()->child_at(0)->current_frame_host());
const GURL url1_sub("http://foo/subframe");
« no previous file with comments | « content/browser/frame_host/frame_tree_unittest.cc ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698