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

Side by Side Diff: chrome/browser/prerender/prerender_browsertest.cc

Issue 12026016: Implement new Task Manager and Edit Bookmark style, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment. Created 7 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/task_manager/task_manager_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 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 "base/stringprintf.h" 10 #include "base/stringprintf.h"
(...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 // and not pending. One and only one of the URLs (the last seen) should be the 1799 // and not pending. One and only one of the URLs (the last seen) should be the
1800 // active entry. 1800 // active entry.
1801 bool url_b_is_active_prerender = UrlIsInPrerenderManager(kHtmlFileB); 1801 bool url_b_is_active_prerender = UrlIsInPrerenderManager(kHtmlFileB);
1802 bool url_c_is_active_prerender = UrlIsInPrerenderManager(kHtmlFileC); 1802 bool url_c_is_active_prerender = UrlIsInPrerenderManager(kHtmlFileC);
1803 EXPECT_TRUE(url_b_is_active_prerender && url_c_is_active_prerender); 1803 EXPECT_TRUE(url_b_is_active_prerender && url_c_is_active_prerender);
1804 } 1804 }
1805 1805
1806 // See crbug.com/131836. 1806 // See crbug.com/131836.
1807 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, DISABLED_PrerenderTaskManager) { 1807 IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, DISABLED_PrerenderTaskManager) {
1808 // Show the task manager. This populates the model. 1808 // Show the task manager. This populates the model.
1809 current_browser()->window()->ShowTaskManager( 1809 current_browser()->window()->ShowTaskManager();
1810 chrome::HOST_DESKTOP_TYPE_NATIVE);
1811 // Wait for the model of task manager to start. 1810 // Wait for the model of task manager to start.
1812 TaskManagerBrowserTestUtil::WaitForWebResourceChange(1); 1811 TaskManagerBrowserTestUtil::WaitForWebResourceChange(1);
1813 1812
1814 // Start with two resources. 1813 // Start with two resources.
1815 PrerenderTestURL("files/prerender/prerender_page.html", FINAL_STATUS_USED, 1); 1814 PrerenderTestURL("files/prerender/prerender_page.html", FINAL_STATUS_USED, 1);
1816 1815
1817 // One of the resources that has a WebContents associated with it should have 1816 // One of the resources that has a WebContents associated with it should have
1818 // the Prerender prefix. 1817 // the Prerender prefix.
1819 const string16 prefix = 1818 const string16 prefix =
1820 l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_PRERENDER_PREFIX, string16()); 1819 l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_PRERENDER_PREFIX, string16());
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
2709 channel_close_watcher.WatchChannel( 2708 channel_close_watcher.WatchChannel(
2710 chrome::GetActiveWebContents(browser())->GetRenderProcessHost()); 2709 chrome::GetActiveWebContents(browser())->GetRenderProcessHost());
2711 NavigateToDestURL(); 2710 NavigateToDestURL();
2712 channel_close_watcher.WaitForChannelClose(); 2711 channel_close_watcher.WaitForChannelClose();
2713 2712
2714 ASSERT_TRUE(IsEmptyPrerenderLinkManager()); 2713 ASSERT_TRUE(IsEmptyPrerenderLinkManager());
2715 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message(); 2714 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message();
2716 } 2715 }
2717 2716
2718 } // namespace prerender 2717 } // namespace prerender
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/task_manager/task_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698