| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 3911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3922 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderWindowClose) { | 3922 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderWindowClose) { |
| 3923 DisableLoadEventCheck(); | 3923 DisableLoadEventCheck(); |
| 3924 PrerenderTestURL("files/prerender/prerender_window_close.html", | 3924 PrerenderTestURL("files/prerender/prerender_window_close.html", |
| 3925 FINAL_STATUS_CLOSED, 0); | 3925 FINAL_STATUS_CLOSED, 0); |
| 3926 } | 3926 } |
| 3927 | 3927 |
| 3928 class PrerenderIncognitoBrowserTest : public PrerenderBrowserTest { | 3928 class PrerenderIncognitoBrowserTest : public PrerenderBrowserTest { |
| 3929 public: | 3929 public: |
| 3930 void SetUpOnMainThread() override { | 3930 void SetUpOnMainThread() override { |
| 3931 Profile* normal_profile = current_browser()->profile(); | 3931 Profile* normal_profile = current_browser()->profile(); |
| 3932 set_browser(ui_test_utils::OpenURLOffTheRecord( | 3932 set_browser(OpenURLOffTheRecord(normal_profile, GURL("about:blank"))); |
| 3933 normal_profile, GURL("about:blank"))); | |
| 3934 PrerenderBrowserTest::SetUpOnMainThread(); | 3933 PrerenderBrowserTest::SetUpOnMainThread(); |
| 3935 } | 3934 } |
| 3936 }; | 3935 }; |
| 3937 | 3936 |
| 3938 // Checks that prerendering works in incognito mode. | 3937 // Checks that prerendering works in incognito mode. |
| 3939 IN_PROC_BROWSER_TEST_F(PrerenderIncognitoBrowserTest, PrerenderIncognito) { | 3938 IN_PROC_BROWSER_TEST_F(PrerenderIncognitoBrowserTest, PrerenderIncognito) { |
| 3940 PrerenderTestURL("files/prerender/prerender_page.html", FINAL_STATUS_USED, 1); | 3939 PrerenderTestURL("files/prerender/prerender_page.html", FINAL_STATUS_USED, 1); |
| 3941 NavigateToDestURL(); | 3940 NavigateToDestURL(); |
| 3942 } | 3941 } |
| 3943 | 3942 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4139 | 4138 |
| 4140 NavigateToDestURL(); | 4139 NavigateToDestURL(); |
| 4141 EXPECT_EQ(1U, task_manager.tasks().size()); | 4140 EXPECT_EQ(1U, task_manager.tasks().size()); |
| 4142 } | 4141 } |
| 4143 | 4142 |
| 4144 } // namespace | 4143 } // namespace |
| 4145 | 4144 |
| 4146 #endif // defined(ENABLE_TASK_MANAGER) | 4145 #endif // defined(ENABLE_TASK_MANAGER) |
| 4147 | 4146 |
| 4148 } // namespace prerender | 4147 } // namespace prerender |
| OLD | NEW |