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

Side by Side Diff: chrome/browser/prerender/prerender_browsertest.cc

Issue 8785004: Change NavigationController::LoadURL to take a Referrer class instead of a GURL as referrer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <deque> 5 #include <deque>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 // Checks that prerenderers will terminate when the RenderView crashes. 1307 // Checks that prerenderers will terminate when the RenderView crashes.
1308 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderRendererCrash) { 1308 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderRendererCrash) {
1309 PrerenderTestURL("files/prerender/prerender_page.html", 1309 PrerenderTestURL("files/prerender/prerender_page.html",
1310 FINAL_STATUS_RENDERER_CRASHED, 1310 FINAL_STATUS_RENDERER_CRASHED,
1311 1); 1311 1);
1312 1312
1313 // Navigate to about:crash and then wait for the renderer to crash. 1313 // Navigate to about:crash and then wait for the renderer to crash.
1314 ASSERT_TRUE(GetPrerenderContents()); 1314 ASSERT_TRUE(GetPrerenderContents());
1315 ASSERT_TRUE(GetPrerenderContents()->prerender_contents()); 1315 ASSERT_TRUE(GetPrerenderContents()->prerender_contents());
1316 GetPrerenderContents()->prerender_contents()->controller().LoadURL( 1316 GetPrerenderContents()->prerender_contents()->controller().LoadURL(
1317 GURL(chrome::kAboutCrashURL), GURL(), content::PAGE_TRANSITION_TYPED, 1317 GURL(chrome::kAboutCrashURL), content::Referrer(),
1318 std::string()); 1318 content::PAGE_TRANSITION_TYPED, std::string());
1319 ui_test_utils::RunMessageLoop(); 1319 ui_test_utils::RunMessageLoop();
1320 } 1320 }
1321 1321
1322 // Checks that we correctly use a prerendered page when navigating to a 1322 // Checks that we correctly use a prerendered page when navigating to a
1323 // fragment. 1323 // fragment.
1324 // DISABLED: http://crbug.com/84154 1324 // DISABLED: http://crbug.com/84154
1325 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, 1325 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest,
1326 DISABLED_PrerenderPageNavigateFragment) { 1326 DISABLED_PrerenderPageNavigateFragment) {
1327 PrerenderTestURL("files/prerender/prerender_fragment.html", 1327 PrerenderTestURL("files/prerender/prerender_fragment.html",
1328 FINAL_STATUS_FRAGMENT_MISMATCH, 1328 FINAL_STATUS_FRAGMENT_MISMATCH,
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
1856 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, DISABLED_PrerenderSessionStorage) { 1856 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, DISABLED_PrerenderSessionStorage) {
1857 set_loader_path("files/prerender/prerender_loader_with_session_storage.html"); 1857 set_loader_path("files/prerender/prerender_loader_with_session_storage.html");
1858 PrerenderTestURL(GetCrossDomainTestUrl("files/prerender/prerender_page.html"), 1858 PrerenderTestURL(GetCrossDomainTestUrl("files/prerender/prerender_page.html"),
1859 FINAL_STATUS_USED, 1859 FINAL_STATUS_USED,
1860 1); 1860 1);
1861 NavigateToDestURL(); 1861 NavigateToDestURL();
1862 GoBackToPageBeforePrerender(browser()); 1862 GoBackToPageBeforePrerender(browser());
1863 } 1863 }
1864 1864
1865 } // namespace prerender 1865 } // namespace prerender
OLDNEW
« no previous file with comments | « chrome/browser/notifications/balloon_host.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698