OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/extension_test_notification_observer.h" | 8 #include "chrome/browser/extensions/extension_test_notification_observer.h" |
9 #include "chrome/common/extensions/features/feature_channel.h" | 9 #include "chrome/common/extensions/features/feature_channel.h" |
10 #include "chrome/test/base/web_ui_browser_test.h" | 10 #include "chrome/test/base/web_ui_browser_test.h" |
| 11 #include "extensions/browser/extension_dialog_auto_confirm.h" |
11 #include "extensions/browser/test_management_policy.h" | 12 #include "extensions/browser/test_management_policy.h" |
12 #include "extensions/common/extension.h" | 13 #include "extensions/common/extension.h" |
13 #include "extensions/common/feature_switch.h" | 14 #include "extensions/common/feature_switch.h" |
14 | 15 |
15 class Profile; | 16 class Profile; |
16 | 17 |
17 // C++ test fixture used by extension_settings_browsertest.js. | 18 // C++ test fixture used by extension_settings_browsertest.js. |
18 class ExtensionSettingsUIBrowserTest : public WebUIBrowserTest { | 19 class ExtensionSettingsUIBrowserTest : public WebUIBrowserTest { |
19 public: | 20 public: |
20 ExtensionSettingsUIBrowserTest(); | 21 ExtensionSettingsUIBrowserTest(); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 Profile* profile_; | 58 Profile* profile_; |
58 | 59 |
59 // Used to simulate managed extensions (by being registered as a provider). | 60 // Used to simulate managed extensions (by being registered as a provider). |
60 extensions::TestManagementPolicyProvider policy_provider_; | 61 extensions::TestManagementPolicyProvider policy_provider_; |
61 | 62 |
62 base::FilePath test_data_dir_; | 63 base::FilePath test_data_dir_; |
63 | 64 |
64 // Used to enable the error console. | 65 // Used to enable the error console. |
65 scoped_ptr<extensions::FeatureSwitch::ScopedOverride> error_console_override_; | 66 scoped_ptr<extensions::FeatureSwitch::ScopedOverride> error_console_override_; |
66 | 67 |
| 68 scoped_ptr<extensions::ScopedTestDialogAutoConfirm> uninstall_auto_confirm_; |
| 69 |
67 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsUIBrowserTest); | 70 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsUIBrowserTest); |
68 }; | 71 }; |
69 | 72 |
70 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ | 73 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ |
OLD | NEW |