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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/scoped_temp_dir.h" | 13 #include "base/scoped_temp_dir.h" |
14 #include "chrome/browser/extensions/extension_host.h" | 14 #include "chrome/browser/extensions/extension_host.h" |
15 #include "chrome/common/extensions/extension.h" | 15 #include "chrome/common/extensions/extension.h" |
16 #include "chrome/common/extensions/features/feature.h" | 16 #include "chrome/common/extensions/features/feature.h" |
17 #include "chrome/common/extensions/feature_switch.h" | 17 #include "chrome/common/extensions/feature_switch.h" |
18 #include "chrome/test/base/in_process_browser_test.h" | 18 #include "chrome/test/base/in_process_browser_test.h" |
19 #include "content/public/browser/notification_details.h" | 19 #include "content/public/browser/notification_details.h" |
20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
21 #include "content/public/browser/notification_types.h" | 21 #include "content/public/browser/notification_types.h" |
22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
23 | 23 |
| 24 class ExtensionProcessManager; |
| 25 |
24 // Base class for extension browser tests. Provides utilities for loading, | 26 // Base class for extension browser tests. Provides utilities for loading, |
25 // unloading, and installing extensions. | 27 // unloading, and installing extensions. |
26 class ExtensionBrowserTest : virtual public InProcessBrowserTest, | 28 class ExtensionBrowserTest : virtual public InProcessBrowserTest, |
27 public content::NotificationObserver { | 29 public content::NotificationObserver { |
28 protected: | 30 protected: |
29 // Flags used to configure how the tests are run. | 31 // Flags used to configure how the tests are run. |
30 enum Flags { | 32 enum Flags { |
31 kFlagNone = 0, | 33 kFlagNone = 0, |
32 | 34 |
33 // Allow the extension to run in incognito mode. | 35 // Allow the extension to run in incognito mode. |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 252 |
251 // Make the current channel "dev" for the duration of the test. | 253 // Make the current channel "dev" for the duration of the test. |
252 extensions::Feature::ScopedCurrentChannel current_channel_; | 254 extensions::Feature::ScopedCurrentChannel current_channel_; |
253 | 255 |
254 // Disable external install UI. | 256 // Disable external install UI. |
255 extensions::FeatureSwitch::ScopedOverride | 257 extensions::FeatureSwitch::ScopedOverride |
256 override_prompt_for_external_extensions_; | 258 override_prompt_for_external_extensions_; |
257 }; | 259 }; |
258 | 260 |
259 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 261 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
OLD | NEW |