| 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/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "chrome/browser/extensions/extension_host.h" | 14 #include "chrome/browser/extensions/extension_host.h" |
| 15 #include "chrome/browser/extensions/extension_system.h" | 15 #include "chrome/browser/extensions/extension_system.h" |
| 16 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
| 17 #include "chrome/common/extensions/extension.h" | 17 #include "chrome/common/extensions/extension.h" |
| 18 #include "chrome/common/extensions/feature_switch.h" | 18 #include "chrome/common/extensions/feature_switch.h" |
| 19 #include "chrome/common/extensions/features/feature_channel.h" | 19 #include "chrome/common/extensions/features/feature_channel.h" |
| 20 #include "chrome/common/extensions/manifest.h" | |
| 21 #include "chrome/test/base/in_process_browser_test.h" | 20 #include "chrome/test/base/in_process_browser_test.h" |
| 22 #include "content/public/browser/notification_details.h" | 21 #include "content/public/browser/notification_details.h" |
| 23 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
| 24 #include "content/public/browser/notification_types.h" | 23 #include "content/public/browser/notification_types.h" |
| 25 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
| 25 #include "extensions/common/manifest.h" |
| 26 | 26 |
| 27 class ExtensionProcessManager; | 27 class ExtensionProcessManager; |
| 28 class ExtensionService; | 28 class ExtensionService; |
| 29 class ExtensionSet; | 29 class ExtensionSet; |
| 30 class Profile; | 30 class Profile; |
| 31 | 31 |
| 32 // Base class for extension browser tests. Provides utilities for loading, | 32 // Base class for extension browser tests. Provides utilities for loading, |
| 33 // unloading, and installing extensions. | 33 // unloading, and installing extensions. |
| 34 class ExtensionBrowserTest : virtual public InProcessBrowserTest, | 34 class ExtensionBrowserTest : virtual public InProcessBrowserTest, |
| 35 public content::NotificationObserver { | 35 public content::NotificationObserver { |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 | 301 |
| 302 // Disable external install UI. | 302 // Disable external install UI. |
| 303 extensions::FeatureSwitch::ScopedOverride | 303 extensions::FeatureSwitch::ScopedOverride |
| 304 override_prompt_for_external_extensions_; | 304 override_prompt_for_external_extensions_; |
| 305 | 305 |
| 306 // The default profile to be used. | 306 // The default profile to be used. |
| 307 Profile* profile_; | 307 Profile* profile_; |
| 308 }; | 308 }; |
| 309 | 309 |
| 310 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 310 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |