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 a828bd56a09fcbdf73ff57527d5967ae4bdae0b7..38226a7346a2555565ef176475f6e6c6b3c1cc91 100644 |
--- a/content/test/test_render_frame_host.h |
+++ b/content/test/test_render_frame_host.h |
@@ -87,6 +87,8 @@ class TestRenderFrameHost : public RenderFrameHostImpl, |
void DidDisownOpener(); |
+ void SendRendererResponseToNavigation(bool proceed, const GURL& url); |
+ |
// If set, navigations will appear to have cleared the history list in the |
// RenderFrame |
// (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). |
@@ -95,6 +97,13 @@ class TestRenderFrameHost : public RenderFrameHostImpl, |
simulate_history_list_was_cleared_ = cleared; |
} |
+ // Advances the RenderFrameHost (and through it the RenderFrameHostManager) to |
+ // a state where a new navigation can be committed by a renderer. Currently, |
+ // this simulates a BeforeUnload ACK from the renderer. |
+ // 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 PrepareForCommit(const GURL& url); |
+ |
private: |
TestRenderFrameHostCreationObserver child_creation_observer_; |