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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/prefs/pref_service.h" | 6 #include "base/prefs/pref_service.h" |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
9 #include "chrome/browser/content_settings/host_content_settings_map.h" | 9 #include "chrome/browser/content_settings/host_content_settings_map.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "ui/aura/window.h" | 28 #include "ui/aura/window.h" |
29 #include "ui/aura/window_tree_host.h" | 29 #include "ui/aura/window_tree_host.h" |
30 #endif | 30 #endif |
31 | 31 |
32 using task_manager::browsertest_util::MatchAboutBlankTab; | 32 using task_manager::browsertest_util::MatchAboutBlankTab; |
33 using task_manager::browsertest_util::MatchAnyPrint; | 33 using task_manager::browsertest_util::MatchAnyPrint; |
34 using task_manager::browsertest_util::MatchAnyTab; | 34 using task_manager::browsertest_util::MatchAnyTab; |
35 using task_manager::browsertest_util::MatchPrint; | 35 using task_manager::browsertest_util::MatchPrint; |
36 using task_manager::browsertest_util::WaitForTaskManagerRows; | 36 using task_manager::browsertest_util::WaitForTaskManagerRows; |
37 | 37 |
| 38 // http://crbug.com/375126: these tests fail after pdf plugin was open sourced. |
| 39 // They must not have been running before since these bots didn't have the PDf |
| 40 // plugin. |
| 41 #if !defined(ADDRESS_SANITIZER) |
| 42 |
38 namespace { | 43 namespace { |
39 | 44 |
40 class PrintPreviewTest : public InProcessBrowserTest { | 45 class PrintPreviewTest : public InProcessBrowserTest { |
41 public: | 46 public: |
42 PrintPreviewTest() {} | 47 PrintPreviewTest() {} |
43 | 48 |
44 #if !defined(GOOGLE_CHROME_BUILD) | 49 #if !defined(GOOGLE_CHROME_BUILD) |
45 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { | 50 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
46 command_line->AppendSwitch(switches::kEnablePrintPreview); | 51 command_line->AppendSwitch(switches::kEnablePrintPreview); |
47 } | 52 } |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 browser()->tab_strip_model()->ActivateTabAt(0, true); | 205 browser()->tab_strip_model()->ActivateTabAt(0, true); |
201 | 206 |
202 // Navigate main tab to hide print preview. | 207 // Navigate main tab to hide print preview. |
203 ui_test_utils::NavigateToURL(browser(), GURL("about:blank")); | 208 ui_test_utils::NavigateToURL(browser(), GURL("about:blank")); |
204 | 209 |
205 browser()->tab_strip_model()->ActivateTabAt(1, true); | 210 browser()->tab_strip_model()->ActivateTabAt(1, true); |
206 } | 211 } |
207 #endif | 212 #endif |
208 | 213 |
209 } // namespace | 214 } // namespace |
| 215 |
| 216 #endif |
OLD | NEW |