| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/extensions/chrome_extension_test_notification_observer.
h" | 9 #include "chrome/browser/extensions/chrome_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" |
| (...skipping 42 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<ChromeExtensionTestNotificationObserver> observer_; | 63 std::unique_ptr<extensions::ChromeExtensionTestNotificationObserver> |
| 64 observer_; |
| 64 | 65 |
| 65 // The default profile to be used. | 66 // The default profile to be used. |
| 66 Profile* profile_; | 67 Profile* profile_; |
| 67 | 68 |
| 68 // Used to simulate managed extensions (by being registered as a provider). | 69 // Used to simulate managed extensions (by being registered as a provider). |
| 69 extensions::TestManagementPolicyProvider policy_provider_; | 70 extensions::TestManagementPolicyProvider policy_provider_; |
| 70 | 71 |
| 71 base::FilePath test_data_dir_; | 72 base::FilePath test_data_dir_; |
| 72 | 73 |
| 73 // Used to enable the error console. | 74 // Used to enable the error console. |
| 74 std::unique_ptr<extensions::FeatureSwitch::ScopedOverride> | 75 std::unique_ptr<extensions::FeatureSwitch::ScopedOverride> |
| 75 error_console_override_; | 76 error_console_override_; |
| 76 | 77 |
| 77 std::unique_ptr<extensions::ScopedTestDialogAutoConfirm> | 78 std::unique_ptr<extensions::ScopedTestDialogAutoConfirm> |
| 78 uninstall_auto_confirm_; | 79 uninstall_auto_confirm_; |
| 79 | 80 |
| 80 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsUIBrowserTest); | 81 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsUIBrowserTest); |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ | 84 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ |
| OLD | NEW |