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

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: Missed a data file. 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
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/string_util.h" 9 #include "base/string_util.h"
10 #include "chrome/browser/prerender/prerender_contents.h" 10 #include "chrome/browser/prerender/prerender_contents.h"
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 std::make_pair("REPLACE_WITH_IMAGE_URL", https_url.spec())); 946 std::make_pair("REPLACE_WITH_IMAGE_URL", https_url.spec()));
947 std::string replacement_path; 947 std::string replacement_path;
948 ASSERT_TRUE(net::TestServer::GetFilePathWithReplacements( 948 ASSERT_TRUE(net::TestServer::GetFilePathWithReplacements(
949 "files/prerender/prerender_with_image.html", 949 "files/prerender/prerender_with_image.html",
950 replacement_text, 950 replacement_text,
951 &replacement_path)); 951 &replacement_path));
952 PrerenderTestURL(replacement_path, FINAL_STATUS_USED, 1); 952 PrerenderTestURL(replacement_path, FINAL_STATUS_USED, 1);
953 NavigateToDestURL(); 953 NavigateToDestURL();
954 } 954 }
955 955
956 // Checks that we cancel correctly when window.print() is called.
957 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderPrint) {
958 PrerenderTestURL("files/prerender/prerender_print.html",
959 FINAL_STATUS_WINDOW_PRINT,
960 1);
961 }
962
956 } // namespace prerender 963 } // namespace prerender
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698