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

Unified Diff: content/browser/frame_host/navigation_controller_impl_unittest.cc

Issue 1159043002: Start a renderer-initiated navigation before commit in RendererInitiatedPendingEntries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « 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/frame_host/navigation_controller_impl_unittest.cc
diff --git a/content/browser/frame_host/navigation_controller_impl_unittest.cc b/content/browser/frame_host/navigation_controller_impl_unittest.cc
index e325c91d24e16e66d9f9f29306601f8258786ef8..a59130804752c673996ba8a71f1eaac9019218c5 100644
--- a/content/browser/frame_host/navigation_controller_impl_unittest.cc
+++ b/content/browser/frame_host/navigation_controller_impl_unittest.cc
@@ -3251,6 +3251,8 @@ TEST_F(NavigationControllerTest, RendererInitiatedPendingEntries) {
// We create pending entries for renderer-initiated navigations so that we
// can show them in new tabs when it is safe.
+ main_test_rfh()->SendRendererInitiatedNavigationRequest(url1, false);
+ main_test_rfh()->PrepareForCommit();
Charlie Reis 2015/05/28 17:02:27 These two lines are only needed for PlzNavigate, r
nasko 2015/05/28 17:16:44 While they are fairly PlzNavigate specific, in my
Charlie Reis 2015/05/28 17:40:19 Ok.
navigator->DidStartProvisionalLoad(main_test_rfh(), url1);
// Simulate what happens if a BrowserURLHandler rewrites the URL, causing
« 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