| 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/test/base/web_ui_browser_test.h" | 9 #include "chrome/test/base/web_ui_browser_test.h" |
| 10 #include "extensions/browser/test_management_policy.h" | 10 #include "extensions/browser/test_management_policy.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 const std::string& last_loaded_extension_id() { | 25 const std::string& last_loaded_extension_id() { |
| 26 return observer_->last_loaded_extension_id(); | 26 return observer_->last_loaded_extension_id(); |
| 27 } | 27 } |
| 28 | 28 |
| 29 void SetUpOnMainThread() override; | 29 void SetUpOnMainThread() override; |
| 30 | 30 |
| 31 void InstallGoodExtension(); | 31 void InstallGoodExtension(); |
| 32 | 32 |
| 33 void InstallErrorsExtension(); | 33 void InstallErrorsExtension(); |
| 34 | 34 |
| 35 void InstallSharedModule(); |
| 36 |
| 37 void InstallPackagedApp(); |
| 38 |
| 35 void AddManagedPolicyProvider(); | 39 void AddManagedPolicyProvider(); |
| 36 | 40 |
| 41 void SetAutoConfirmUninstall(); |
| 42 |
| 37 private: | 43 private: |
| 38 bool WaitForExtensionViewsToLoad(); | 44 bool WaitForExtensionViewsToLoad(); |
| 39 const extensions::Extension* InstallUnpackedExtension( | 45 const extensions::Extension* InstallUnpackedExtension( |
| 40 const base::FilePath& path, const char* id); | 46 const base::FilePath& path); |
| 41 const extensions::Extension* InstallExtension(const base::FilePath& path); | 47 const extensions::Extension* InstallExtension(const base::FilePath& path); |
| 42 | 48 |
| 43 scoped_ptr<ExtensionTestNotificationObserver> observer_; | 49 scoped_ptr<ExtensionTestNotificationObserver> observer_; |
| 44 | 50 |
| 45 // The default profile to be used. | 51 // The default profile to be used. |
| 46 Profile* profile_; | 52 Profile* profile_; |
| 47 | 53 |
| 48 // Used to simulate managed extensions (by being registered as a provider). | 54 // Used to simulate managed extensions (by being registered as a provider). |
| 49 extensions::TestManagementPolicyProvider policy_provider_; | 55 extensions::TestManagementPolicyProvider policy_provider_; |
| 50 | 56 |
| 57 base::FilePath test_data_dir_; |
| 58 |
| 51 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsUIBrowserTest); | 59 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsUIBrowserTest); |
| 52 }; | 60 }; |
| 53 | 61 |
| 54 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ | 62 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ |
| OLD | NEW |