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

Unified Diff: content/public/test/mock_render_thread.cc

Issue 16032007: Create RenderFrame/RenderFrameHost for the main frame of a page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing routing ID expectations. Created 7 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/public/test/mock_render_thread.h ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_render_thread.cc
diff --git a/content/public/test/mock_render_thread.cc b/content/public/test/mock_render_thread.cc
index c6807600abf4d9aeca089c70defc3dd6a0bc7ed5..0de0ce6385601408c499060548956c2cb0cb12c5 100644
--- a/content/public/test/mock_render_thread.cc
+++ b/content/public/test/mock_render_thread.cc
@@ -14,7 +14,11 @@
namespace content {
MockRenderThread::MockRenderThread()
- : routing_id_(0), surface_id_(0), opener_id_(0), new_window_routing_id_(0) {
+ : routing_id_(0),
+ surface_id_(0),
+ opener_id_(0),
+ new_window_routing_id_(0),
+ new_window_main_frame_routing_id_(0) {
}
MockRenderThread::~MockRenderThread() {
@@ -208,9 +212,11 @@ void MockRenderThread::OnCreateWidget(int opener_id,
void MockRenderThread::OnCreateWindow(
const ViewHostMsg_CreateWindow_Params& params,
int* route_id,
+ int* main_frame_route_id,
int* surface_id,
int64* cloned_session_storage_namespace_id) {
*route_id = new_window_routing_id_;
+ *main_frame_route_id = new_window_main_frame_routing_id_;
*surface_id = surface_id_;
*cloned_session_storage_namespace_id = 0;
}
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698