| 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 "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 Loading... |
| 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 Loading... |
| 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 | |
| OLD | NEW |