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/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 1866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1877 // and not pending. One and only one of the URLs (the last seen) should be the | 1877 // and not pending. One and only one of the URLs (the last seen) should be the |
1878 // active entry. | 1878 // active entry. |
1879 bool url_b_is_active_prerender = UrlIsInPrerenderManager(kHtmlFileB); | 1879 bool url_b_is_active_prerender = UrlIsInPrerenderManager(kHtmlFileB); |
1880 bool url_c_is_active_prerender = UrlIsInPrerenderManager(kHtmlFileC); | 1880 bool url_c_is_active_prerender = UrlIsInPrerenderManager(kHtmlFileC); |
1881 EXPECT_TRUE(url_b_is_active_prerender && url_c_is_active_prerender); | 1881 EXPECT_TRUE(url_b_is_active_prerender && url_c_is_active_prerender); |
1882 } | 1882 } |
1883 | 1883 |
1884 // See crbug.com/131836. | 1884 // See crbug.com/131836. |
1885 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, DISABLED_PrerenderTaskManager) { | 1885 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, DISABLED_PrerenderTaskManager) { |
1886 // Show the task manager. This populates the model. | 1886 // Show the task manager. This populates the model. |
1887 chrome::OpenTaskManager(current_browser(), false); | 1887 chrome::OpenTaskManager(current_browser()); |
1888 // Wait for the model of task manager to start. | 1888 // Wait for the model of task manager to start. |
1889 TaskManagerBrowserTestUtil::WaitForWebResourceChange(1); | 1889 TaskManagerBrowserTestUtil::WaitForWebResourceChange(1); |
1890 | 1890 |
1891 // Start with two resources. | 1891 // Start with two resources. |
1892 PrerenderTestURL("files/prerender/prerender_page.html", FINAL_STATUS_USED, 1); | 1892 PrerenderTestURL("files/prerender/prerender_page.html", FINAL_STATUS_USED, 1); |
1893 | 1893 |
1894 // One of the resources that has a WebContents associated with it should have | 1894 // One of the resources that has a WebContents associated with it should have |
1895 // the Prerender prefix. | 1895 // the Prerender prefix. |
1896 const string16 prefix = | 1896 const string16 prefix = |
1897 l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_PRERENDER_PREFIX, string16()); | 1897 l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_PRERENDER_PREFIX, string16()); |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2898 | 2898 |
2899 // Checks that media source video loads are deferred on prerendering. | 2899 // Checks that media source video loads are deferred on prerendering. |
2900 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderHTML5MediaSourceVideo) { | 2900 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, PrerenderHTML5MediaSourceVideo) { |
2901 PrerenderTestURL("files/prerender/prerender_html5_video_media_source.html", | 2901 PrerenderTestURL("files/prerender/prerender_html5_video_media_source.html", |
2902 FINAL_STATUS_USED, | 2902 FINAL_STATUS_USED, |
2903 1); | 2903 1); |
2904 NavigateToDestUrlAndWaitForPassTitle(); | 2904 NavigateToDestUrlAndWaitForPassTitle(); |
2905 } | 2905 } |
2906 | 2906 |
2907 } // namespace prerender | 2907 } // namespace prerender |
OLD | NEW |