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

Unified Diff: content/test/test_render_frame_host.h

Issue 2296483002: Fix some unit_tests under PlzNavigate (Closed)
Patch Set: not in public interface Created 4 years, 4 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/browser_side_navigation_test_utils.cc ('k') | content/test/test_render_frame_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_frame_host.h
diff --git a/content/test/test_render_frame_host.h b/content/test/test_render_frame_host.h
index cd9b94f0119436202354c9791a5c7c910c5ddf50..de3db0cc73311297106156b558daea0f11fc3939 100644
--- a/content/test/test_render_frame_host.h
+++ b/content/test/test_render_frame_host.h
@@ -132,6 +132,13 @@ class TestRenderFrameHost : public RenderFrameHostImpl,
// redirect step is ignored.
void PrepareForCommitWithServerRedirect(const GURL& redirect_url);
+ // If we are doing a cross-site navigation, this simulates the current
+ // RenderFrameHost notifying that BeforeUnload has executed so the pending
+ // RenderFrameHost is resumed and can navigate.
+ // PlzNavigate: This simulates a BeforeUnload ACK from the renderer, and the
+ // interaction with the IO thread up until the response is ready to commit.
+ void PrepareForCommitIfNecessary();
+
// PlzNavigate
void set_pending_commit(bool pending) { pending_commit_ = pending; }
bool pending_commit() const { return pending_commit_; }
« no previous file with comments | « content/test/browser_side_navigation_test_utils.cc ('k') | content/test/test_render_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698