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

Side by Side Diff: content/test/test_render_frame_host.cc

Issue 367653002: Add a FrameHostMsg_BeginNavigation IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit test + fixed bug in parent_is_render_frame_computation Created 6 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/test/test_render_frame_host.h" 5 #include "content/test/test_render_frame_host.h"
6 6
7 #include "content/browser/frame_host/frame_tree.h" 7 #include "content/browser/frame_host/frame_tree.h"
8 #include "content/browser/frame_host/render_frame_host_delegate.h" 8 #include "content/browser/frame_host/render_frame_host_delegate.h"
9 #include "content/common/frame_messages.h" 9 #include "content/common/frame_messages.h"
10 #include "content/test/test_render_view_host.h" 10 #include "content/test/test_render_view_host.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 params.page_state = PageState::CreateForTesting( 150 params.page_state = PageState::CreateForTesting(
151 url, 151 url,
152 false, 152 false,
153 file_path_for_history_item ? "data" : NULL, 153 file_path_for_history_item ? "data" : NULL,
154 file_path_for_history_item); 154 file_path_for_history_item);
155 155
156 FrameHostMsg_DidCommitProvisionalLoad msg(GetRoutingID(), params); 156 FrameHostMsg_DidCommitProvisionalLoad msg(GetRoutingID(), params);
157 OnNavigate(msg); 157 OnNavigate(msg);
158 } 158 }
159 159
160 void TestRenderFrameHost::SendBeginNavigationWithURL(const GURL& url) {
161 FrameHostMsg_BeginNavigation_Params params;
162 params.url = url;
nasko 2014/07/07 11:35:10 Why not fill in the rest of the params with some s
clamy 2014/07/07 13:36:23 Done.
163 OnBeginNavigation(params);
164 }
160 } // namespace content 165 } // namespace content
OLDNEW
« content/common/resource_request_body.h ('K') | « content/test/test_render_frame_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698