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

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc

Issue 1953383002: [Part 6 of 6] Move browsertests and utils to task_management/ directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tm_file_split5
Patch Set: stddef/stdint Created 4 years, 7 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
« no previous file with comments | « chrome/browser/task_manager/task_manager_browsertest_util.cc ('k') | chrome/chrome_tests.gypi » ('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 "base/strings/utf_string_conversions.h" 5 #include "base/strings/utf_string_conversions.h"
6 #include "build/build_config.h" 6 #include "build/build_config.h"
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" 9 #include "chrome/browser/task_management/task_manager_browsertest_util.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/browser_commands.h" 11 #include "chrome/browser/ui/browser_commands.h"
12 #include "chrome/browser/ui/browser_dialogs.h" 12 #include "chrome/browser/ui/browser_dialogs.h"
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" 13 #include "chrome/browser/ui/tabs/tab_strip_model.h"
14 #include "chrome/common/url_constants.h" 14 #include "chrome/common/url_constants.h"
15 #include "chrome/test/base/in_process_browser_test.h" 15 #include "chrome/test/base/in_process_browser_test.h"
16 #include "chrome/test/base/ui_test_utils.h" 16 #include "chrome/test/base/ui_test_utils.h"
17 #include "components/content_settings/core/browser/host_content_settings_map.h" 17 #include "components/content_settings/core/browser/host_content_settings_map.h"
18 #include "components/prefs/pref_service.h" 18 #include "components/prefs/pref_service.h"
19 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
20 #include "content/public/browser/web_contents_observer.h" 20 #include "content/public/browser/web_contents_observer.h"
21 #include "content/public/test/browser_test_utils.h" 21 #include "content/public/test/browser_test_utils.h"
22 #include "content/public/test/test_navigation_observer.h" 22 #include "content/public/test/test_navigation_observer.h"
23 #include "content/public/test/test_utils.h" 23 #include "content/public/test/test_utils.h"
24 #include "url/url_constants.h" 24 #include "url/url_constants.h"
25 25
26 #if defined(OS_WIN) 26 #if defined(OS_WIN)
27 #include "ui/aura/window.h" 27 #include "ui/aura/window.h"
28 #include "ui/aura/window_tree_host.h" 28 #include "ui/aura/window_tree_host.h"
29 #endif 29 #endif
30 30
31 using task_manager::browsertest_util::MatchAboutBlankTab; 31 using task_management::browsertest_util::MatchAboutBlankTab;
32 using task_manager::browsertest_util::MatchAnyPrint; 32 using task_management::browsertest_util::MatchAnyPrint;
33 using task_manager::browsertest_util::MatchAnyTab; 33 using task_management::browsertest_util::MatchAnyTab;
34 using task_manager::browsertest_util::MatchPrint; 34 using task_management::browsertest_util::MatchPrint;
35 using task_manager::browsertest_util::WaitForTaskManagerRows; 35 using task_management::browsertest_util::WaitForTaskManagerRows;
36 36
37 namespace { 37 namespace {
38 38
39 class PrintPreviewTest : public InProcessBrowserTest { 39 class PrintPreviewTest : public InProcessBrowserTest {
40 public: 40 public:
41 PrintPreviewTest() {} 41 PrintPreviewTest() {}
42 42
43 void Print() { 43 void Print() {
44 content::TestNavigationObserver nav_observer(NULL); 44 content::TestNavigationObserver nav_observer(NULL);
45 nav_observer.StartWatchingNewWebContents(); 45 nav_observer.StartWatchingNewWebContents();
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 browser()->tab_strip_model()->ActivateTabAt(0, true); 135 browser()->tab_strip_model()->ActivateTabAt(0, true);
136 136
137 // Navigate main tab to hide print preview. 137 // Navigate main tab to hide print preview.
138 ui_test_utils::NavigateToURL(browser(), GURL("about:blank")); 138 ui_test_utils::NavigateToURL(browser(), GURL("about:blank"));
139 139
140 browser()->tab_strip_model()->ActivateTabAt(1, true); 140 browser()->tab_strip_model()->ActivateTabAt(1, true);
141 } 141 }
142 #endif // defined(OS_WIN) 142 #endif // defined(OS_WIN)
143 143
144 } // namespace 144 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager_browsertest_util.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698