| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |