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

Unified Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 10801011: When simulating a navigation via TestRenderViewHost, first start a provisional load before committin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove web_navigation bits Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/test_render_view_host.cc
diff --git a/content/browser/renderer_host/test_render_view_host.cc b/content/browser/renderer_host/test_render_view_host.cc
index bfd6a0e44bb9ca5aea137a9da0541089e6352923..047b1537c037b768513848f29f8491744d3d2320 100644
--- a/content/browser/renderer_host/test_render_view_host.cc
+++ b/content/browser/renderer_host/test_render_view_host.cc
@@ -261,9 +261,12 @@ void TestRenderViewHost::SendNavigate(int page_id, const GURL& url) {
void TestRenderViewHost::SendNavigateWithTransition(
int page_id, const GURL& url, PageTransition transition) {
+ OnMsgDidStartProvisionalLoadForFrame(0, true, GURL(), url);
+
ViewHostMsg_FrameNavigate_Params params;
params.page_id = page_id;
+ params.frame_id = 0;
params.url = url;
params.referrer = Referrer();
params.transition = transition;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698