| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "extensions/browser/extension_system.h" | 10 #include "extensions/browser/extension_system.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void SetExtensionService(ExtensionService* service); | 59 void SetExtensionService(ExtensionService* service); |
| 60 ExtensionService* extension_service() override; | 60 ExtensionService* extension_service() override; |
| 61 RuntimeData* runtime_data() override; | 61 RuntimeData* runtime_data() override; |
| 62 ManagementPolicy* management_policy() override; | 62 ManagementPolicy* management_policy() override; |
| 63 SharedUserScriptMaster* shared_user_script_master() override; | 63 SharedUserScriptMaster* shared_user_script_master() override; |
| 64 StateStore* state_store() override; | 64 StateStore* state_store() override; |
| 65 StateStore* rules_store() override; | 65 StateStore* rules_store() override; |
| 66 TestingValueStore* value_store() { return value_store_; } | 66 TestingValueStore* value_store() { return value_store_; } |
| 67 InfoMap* info_map() override; | 67 InfoMap* info_map() override; |
| 68 QuotaService* quota_service() override; | 68 QuotaService* quota_service() override; |
| 69 AppSorting* app_sorting() override; |
| 69 const OneShotEvent& ready() const override; | 70 const OneShotEvent& ready() const override; |
| 70 ContentVerifier* content_verifier() override; | 71 ContentVerifier* content_verifier() override; |
| 71 scoped_ptr<ExtensionSet> GetDependentExtensions( | 72 scoped_ptr<ExtensionSet> GetDependentExtensions( |
| 72 const Extension* extension) override; | 73 const Extension* extension) override; |
| 73 | 74 |
| 74 // Note that you probably want to use base::RunLoop().RunUntilIdle() right | 75 // Note that you probably want to use base::RunLoop().RunUntilIdle() right |
| 75 // after this to run all the accumulated tasks. | 76 // after this to run all the accumulated tasks. |
| 76 void SetReady() { ready_.Signal(); } | 77 void SetReady() { ready_.Signal(); } |
| 77 | 78 |
| 78 // Factory method for tests to use with SetTestingProfile. | 79 // Factory method for tests to use with SetTestingProfile. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 89 scoped_ptr<RuntimeData> runtime_data_; | 90 scoped_ptr<RuntimeData> runtime_data_; |
| 90 scoped_ptr<ExtensionService> extension_service_; | 91 scoped_ptr<ExtensionService> extension_service_; |
| 91 scoped_refptr<InfoMap> info_map_; | 92 scoped_refptr<InfoMap> info_map_; |
| 92 scoped_ptr<QuotaService> quota_service_; | 93 scoped_ptr<QuotaService> quota_service_; |
| 93 OneShotEvent ready_; | 94 OneShotEvent ready_; |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace extensions | 97 } // namespace extensions |
| 97 | 98 |
| 98 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ | 99 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
| OLD | NEW |