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

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

Issue 7015026: Cancel prerenders for pages that call window.print() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_contents.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/memory/scoped_temp_dir.h" 8 #include "base/memory/scoped_temp_dir.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 std::make_pair("REPLACE_WITH_URL", https_url.spec())); 1067 std::make_pair("REPLACE_WITH_URL", https_url.spec()));
1068 std::string replacement_path; 1068 std::string replacement_path;
1069 ASSERT_TRUE(net::TestServer::GetFilePathWithReplacements( 1069 ASSERT_TRUE(net::TestServer::GetFilePathWithReplacements(
1070 "files/prerender/prerender_with_iframe.html", 1070 "files/prerender/prerender_with_iframe.html",
1071 replacement_text, 1071 replacement_text,
1072 &replacement_path)); 1072 &replacement_path));
1073 PrerenderTestURL(replacement_path, FINAL_STATUS_USED, 1); 1073 PrerenderTestURL(replacement_path, FINAL_STATUS_USED, 1);
1074 NavigateToDestURL(); 1074 NavigateToDestURL();
1075 } 1075 }
1076 1076
1077 // Checks that we cancel correctly when window.print() is called.
1078 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderPrint) {
1079 PrerenderTestURL("files/prerender/prerender_print.html",
1080 FINAL_STATUS_WINDOW_PRINT,
1081 1);
1082 }
1083
1077 } // namespace prerender 1084 } // namespace prerender
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698