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

Unified Diff: content/test/test_render_view_host.cc

Issue 1156023006: 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: Move InitializeRenderFrameIfNeeded to RenderFrameHostTester and fix RlzLibTest code. 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
« no previous file with comments | « content/test/test_render_frame_host.cc ('k') | content/test/test_web_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_view_host.cc
diff --git a/content/test/test_render_view_host.cc b/content/test/test_render_view_host.cc
index 0b7b8c105ad3dce383aabe8cdce92949d0a00922..d729fb6ef01dc20118149e978fe2e42c5b4109ab 100644
--- a/content/test/test_render_view_host.cc
+++ b/content/test/test_render_view_host.cc
@@ -246,6 +246,10 @@ bool TestRenderViewHost::CreateRenderView(
set_renderer_initialized(true);
DCHECK(IsRenderViewLive());
opener_route_id_ = opener_route_id;
+ RenderFrameHost* main_frame = GetMainFrame();
+ if (main_frame)
+ static_cast<RenderFrameHostImpl*>(main_frame)->SetRenderFrameCreated(true);
+
return true;
}
« no previous file with comments | « content/test/test_render_frame_host.cc ('k') | content/test/test_web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698