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 |
35 void AddManagedPolicyProvider(); | 37 void AddManagedPolicyProvider(); |
36 | 38 |
| 39 void SetAutoConfirmUninstall(); |
| 40 |
37 private: | 41 private: |
38 bool WaitForExtensionViewsToLoad(); | 42 bool WaitForExtensionViewsToLoad(); |
39 const extensions::Extension* InstallUnpackedExtension( | 43 const extensions::Extension* InstallUnpackedExtension( |
40 const base::FilePath& path, const char* id); | 44 const base::FilePath& path); |
41 const extensions::Extension* InstallExtension(const base::FilePath& path); | 45 const extensions::Extension* InstallExtension(const base::FilePath& path); |
42 | 46 |
43 scoped_ptr<ExtensionTestNotificationObserver> observer_; | 47 scoped_ptr<ExtensionTestNotificationObserver> observer_; |
44 | 48 |
45 // The default profile to be used. | 49 // The default profile to be used. |
46 Profile* profile_; | 50 Profile* profile_; |
47 | 51 |
48 // Used to simulate managed extensions (by being registered as a provider). | 52 // Used to simulate managed extensions (by being registered as a provider). |
49 extensions::TestManagementPolicyProvider policy_provider_; | 53 extensions::TestManagementPolicyProvider policy_provider_; |
50 | 54 |
| 55 base::FilePath test_data_dir_; |
| 56 |
51 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsUIBrowserTest); | 57 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsUIBrowserTest); |
52 }; | 58 }; |
53 | 59 |
54 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ | 60 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ |
OLD | NEW |