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_; } |