Chromium Code Reviews| 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/chrome_extension_test_notification_observer. h> | |
|
Devlin
2016/10/11 22:53:45
again, wrong place
Rahul Chaturvedi
2016/10/12 20:25:53
Done.
| |
| 8 #include "base/macros.h" | 9 #include "base/macros.h" |
| 9 #include "chrome/browser/extensions/extension_test_notification_observer.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/extension_dialog_auto_confirm.h" |
| 12 #include "extensions/browser/test_management_policy.h" | 12 #include "extensions/browser/test_management_policy.h" |
| 13 #include "extensions/common/extension.h" | 13 #include "extensions/common/extension.h" |
| 14 #include "extensions/common/feature_switch.h" | 14 #include "extensions/common/feature_switch.h" |
| 15 #include "extensions/common/features/feature_channel.h" | 15 #include "extensions/common/features/feature_channel.h" |
| 16 | 16 |
| 17 class Profile; | 17 class Profile; |
| 18 | 18 |
| 19 // C++ test fixture used by extension_settings_browsertest.js. | 19 // C++ test fixture used by extension_settings_browsertest.js. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 53 | 53 |
| 54 // Shrinks the web contents view in order to ensure vertical overflow. | 54 // Shrinks the web contents view in order to ensure vertical overflow. |
| 55 void ShrinkWebContentsView(); | 55 void ShrinkWebContentsView(); |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 bool WaitForExtensionViewsToLoad(); | 58 bool WaitForExtensionViewsToLoad(); |
| 59 const extensions::Extension* InstallUnpackedExtension( | 59 const extensions::Extension* InstallUnpackedExtension( |
| 60 const base::FilePath& path); | 60 const base::FilePath& path); |
| 61 const extensions::Extension* InstallExtension(const base::FilePath& path); | 61 const extensions::Extension* InstallExtension(const base::FilePath& path); |
| 62 | 62 |
| 63 std::unique_ptr<ExtensionTestNotificationObserver> observer_; | 63 std::unique_ptr<ChromeExtensionTestNotificationObserver> observer_; |
| 64 | 64 |
| 65 // The default profile to be used. | 65 // The default profile to be used. |
| 66 Profile* profile_; | 66 Profile* profile_; |
| 67 | 67 |
| 68 // Used to simulate managed extensions (by being registered as a provider). | 68 // Used to simulate managed extensions (by being registered as a provider). |
| 69 extensions::TestManagementPolicyProvider policy_provider_; | 69 extensions::TestManagementPolicyProvider policy_provider_; |
| 70 | 70 |
| 71 base::FilePath test_data_dir_; | 71 base::FilePath test_data_dir_; |
| 72 | 72 |
| 73 // Used to enable the error console. | 73 // Used to enable the error console. |
| 74 std::unique_ptr<extensions::FeatureSwitch::ScopedOverride> | 74 std::unique_ptr<extensions::FeatureSwitch::ScopedOverride> |
| 75 error_console_override_; | 75 error_console_override_; |
| 76 | 76 |
| 77 std::unique_ptr<extensions::ScopedTestDialogAutoConfirm> | 77 std::unique_ptr<extensions::ScopedTestDialogAutoConfirm> |
| 78 uninstall_auto_confirm_; | 78 uninstall_auto_confirm_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsUIBrowserTest); | 80 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsUIBrowserTest); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ | 83 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ |
| OLD | NEW |