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

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

Issue 298803010: Print Preview: Enable PrintPreviewTest on Linux ASAN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | pdf/control.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 "base/prefs/pref_service.h" 5 #include "base/prefs/pref_service.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/content_settings/host_content_settings_map.h" 8 #include "chrome/browser/content_settings/host_content_settings_map.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" 10 #include "chrome/browser/task_manager/task_manager_browsertest_util.h"
(...skipping 15 matching lines...) Expand all
26 #include "ui/aura/window.h" 26 #include "ui/aura/window.h"
27 #include "ui/aura/window_tree_host.h" 27 #include "ui/aura/window_tree_host.h"
28 #endif 28 #endif
29 29
30 using task_manager::browsertest_util::MatchAboutBlankTab; 30 using task_manager::browsertest_util::MatchAboutBlankTab;
31 using task_manager::browsertest_util::MatchAnyPrint; 31 using task_manager::browsertest_util::MatchAnyPrint;
32 using task_manager::browsertest_util::MatchAnyTab; 32 using task_manager::browsertest_util::MatchAnyTab;
33 using task_manager::browsertest_util::MatchPrint; 33 using task_manager::browsertest_util::MatchPrint;
34 using task_manager::browsertest_util::WaitForTaskManagerRows; 34 using task_manager::browsertest_util::WaitForTaskManagerRows;
35 35
36 // http://crbug.com/375126: these tests fail after pdf plugin was open sourced.
37 // They must not have been running before since these bots didn't have the PDf
38 // plugin.
39 #if !defined(ADDRESS_SANITIZER)
40
41 namespace { 36 namespace {
42 37
43 class PrintPreviewTest : public InProcessBrowserTest { 38 class PrintPreviewTest : public InProcessBrowserTest {
44 public: 39 public:
45 PrintPreviewTest() {} 40 PrintPreviewTest() {}
46 41
47 void Print() { 42 void Print() {
48 content::TestNavigationObserver nav_observer(NULL); 43 content::TestNavigationObserver nav_observer(NULL);
49 nav_observer.StartWatchingNewWebContents(); 44 nav_observer.StartWatchingNewWebContents();
50 chrome::ExecuteCommand(browser(), IDC_PRINT); 45 chrome::ExecuteCommand(browser(), IDC_PRINT);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 browser()->tab_strip_model()->ActivateTabAt(0, true); 192 browser()->tab_strip_model()->ActivateTabAt(0, true);
198 193
199 // Navigate main tab to hide print preview. 194 // Navigate main tab to hide print preview.
200 ui_test_utils::NavigateToURL(browser(), GURL("about:blank")); 195 ui_test_utils::NavigateToURL(browser(), GURL("about:blank"));
201 196
202 browser()->tab_strip_model()->ActivateTabAt(1, true); 197 browser()->tab_strip_model()->ActivateTabAt(1, true);
203 } 198 }
204 #endif 199 #endif
205 200
206 } // namespace 201 } // namespace
207
208 #endif
OLDNEW
« no previous file with comments | « no previous file | pdf/control.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698