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