summaryrefslogtreecommitdiffstats
path: root/content/test/test_render_frame_host.h
diff options
context:
space:
mode:
authornasko <nasko@chromium.org>2015-05-28 17:38:23 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-29 00:38:44 +0000
commitc88002d1c4dc328fbe519dac9a88ba00396836b4 (patch)
tree4aceeebb235409d98da04da47bbe8c85428e2d8e /content/test/test_render_frame_host.h
parentc439a45e62c1e35e29b36ccf90dc84f81d01337d (diff)
downloadchromium_src-c88002d1c4dc328fbe519dac9a88ba00396836b4.zip
chromium_src-c88002d1c4dc328fbe519dac9a88ba00396836b4.tar.gz
chromium_src-c88002d1c4dc328fbe519dac9a88ba00396836b4.tar.bz2
Bring RFH/RVH unit tests closer to reality of how RF/RV are initialized
BUG=357747 TEST=all unit tests continue passing TBR=sky@chromium.org Review URL: https://codereview.chromium.org/1151973005 Cr-Commit-Position: refs/heads/master@{#331894}
Diffstat (limited to 'content/test/test_render_frame_host.h')
-rw-r--r--content/test/test_render_frame_host.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/test/test_render_frame_host.h b/content/test/test_render_frame_host.h
index 3b0c9ae..1b28496 100644
--- a/content/test/test_render_frame_host.h
+++ b/content/test/test_render_frame_host.h
@@ -123,6 +123,11 @@ class TestRenderFrameHost : public RenderFrameHostImpl,
simulate_history_list_was_cleared_ = cleared;
}
+ // Simulates initialization of the RenderFrame object in the renderer process
+ // and ensures internal state of RenderFrameHost is ready for simulating
+ // RenderFrame originated IPCs.
+ void InitializeRenderFrameIfNeeded();
+
// 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.