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

Unified Diff: content/test/test_render_frame_host.h

Issue 1151973005: Bring RFH/RVH unit tests closer to reality of how RF/RV are initialized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add workaround to <webview> bug (492830) Created 5 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
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 3b0c9ae13b2ad97987fdc015de6cab85c808db6b..1b28496bef0b05c7f632c22d6c04a9a52224a190 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.

Powered by Google App Engine
This is Rietveld 408576698