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

Unified Diff: content/test/test_render_frame_host.cc

Issue 2898663002: Implement feature policy checks in the browser process (Closed)
Patch Set: Implement feature policy checks in the browser process Created 3 years, 7 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 | « content/test/test_render_frame_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_frame_host.cc
diff --git a/content/test/test_render_frame_host.cc b/content/test/test_render_frame_host.cc
index 8924bc215fd8dff1ef073bf55b4aa804ce596b93..f18014f720c1d71b23a80af2507b2098f0895361 100644
--- a/content/test/test_render_frame_host.cc
+++ b/content/test/test_render_frame_host.cc
@@ -267,6 +267,16 @@ void TestRenderFrameHost::NavigateAndCommitRendererInitiated(
SendNavigate(0, did_create_new_entry, url);
}
+void TestRenderFrameHost::SimulateFeaturePolicyHeader(
+ blink::WebFeaturePolicyFeature feature,
+ const std::vector<url::Origin>& whitelist) {
+ content::ParsedFeaturePolicyHeader header(1);
+ header[0].feature = feature;
+ header[0].matches_all_origins = false;
+ header[0].origins = whitelist;
+ OnDidSetFeaturePolicyHeader(header);
+}
+
void TestRenderFrameHost::SendNavigate(int nav_entry_id,
bool did_create_new_entry,
const GURL& url) {
« no previous file with comments | « content/test/test_render_frame_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698