| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "extensions/browser/mock_extension_system.h" | 5 #include "extensions/browser/mock_extension_system.h" |
| 6 | 6 |
| 7 #include "extensions/common/extension_set.h" | 7 #include "extensions/common/extension_set.h" |
| 8 | 8 |
| 9 namespace extensions { | 9 namespace extensions { |
| 10 | 10 |
| 11 // | 11 // |
| 12 // MockExtensionSystem | 12 // MockExtensionSystem |
| 13 // | 13 // |
| 14 | 14 |
| 15 MockExtensionSystem::MockExtensionSystem(content::BrowserContext* context) | 15 MockExtensionSystem::MockExtensionSystem(content::BrowserContext* context) |
| 16 : browser_context_(context) { | 16 : browser_context_(context) { |
| 17 } | 17 } |
| 18 | 18 |
| 19 MockExtensionSystem::~MockExtensionSystem() { | 19 MockExtensionSystem::~MockExtensionSystem() { |
| 20 } | 20 } |
| 21 | 21 |
| 22 void MockExtensionSystem::InitForRegularProfile(bool extensions_enabled) { | 22 void MockExtensionSystem::InitForRegularProfile(bool extensions_enabled) { |
| 23 } | 23 } |
| 24 | 24 |
| 25 ExtensionService* MockExtensionSystem::extension_service() { | 25 ExtensionService* MockExtensionSystem::extension_service() { |
| 26 return NULL; | 26 return nullptr; |
| 27 } | 27 } |
| 28 | 28 |
| 29 RuntimeData* MockExtensionSystem::runtime_data() { | 29 RuntimeData* MockExtensionSystem::runtime_data() { |
| 30 return NULL; | 30 return nullptr; |
| 31 } | 31 } |
| 32 | 32 |
| 33 ManagementPolicy* MockExtensionSystem::management_policy() { | 33 ManagementPolicy* MockExtensionSystem::management_policy() { |
| 34 return NULL; | 34 return nullptr; |
| 35 } | 35 } |
| 36 | 36 |
| 37 SharedUserScriptMaster* MockExtensionSystem::shared_user_script_master() { | 37 SharedUserScriptMaster* MockExtensionSystem::shared_user_script_master() { |
| 38 return NULL; | 38 return nullptr; |
| 39 } | 39 } |
| 40 | 40 |
| 41 ProcessManager* MockExtensionSystem::process_manager() { | 41 ProcessManager* MockExtensionSystem::process_manager() { |
| 42 return NULL; | 42 return nullptr; |
| 43 } | 43 } |
| 44 | 44 |
| 45 StateStore* MockExtensionSystem::state_store() { | 45 StateStore* MockExtensionSystem::state_store() { |
| 46 return NULL; | 46 return nullptr; |
| 47 } | 47 } |
| 48 | 48 |
| 49 StateStore* MockExtensionSystem::rules_store() { | 49 StateStore* MockExtensionSystem::rules_store() { |
| 50 return NULL; | 50 return nullptr; |
| 51 } | 51 } |
| 52 | 52 |
| 53 InfoMap* MockExtensionSystem::info_map() { | 53 InfoMap* MockExtensionSystem::info_map() { |
| 54 return NULL; | 54 return nullptr; |
| 55 } | 55 } |
| 56 | 56 |
| 57 LazyBackgroundTaskQueue* MockExtensionSystem::lazy_background_task_queue() { | 57 LazyBackgroundTaskQueue* MockExtensionSystem::lazy_background_task_queue() { |
| 58 return NULL; | 58 return nullptr; |
| 59 } | 59 } |
| 60 | 60 |
| 61 EventRouter* MockExtensionSystem::event_router() { | 61 EventRouter* MockExtensionSystem::event_router() { |
| 62 return NULL; | 62 return nullptr; |
| 63 } | 63 } |
| 64 | 64 |
| 65 WarningService* MockExtensionSystem::warning_service() { | 65 WarningService* MockExtensionSystem::warning_service() { |
| 66 return NULL; | 66 return nullptr; |
| 67 } | 67 } |
| 68 | 68 |
| 69 Blacklist* MockExtensionSystem::blacklist() { | 69 Blacklist* MockExtensionSystem::blacklist() { |
| 70 return NULL; | 70 return nullptr; |
| 71 } | 71 } |
| 72 | 72 |
| 73 ErrorConsole* MockExtensionSystem::error_console() { | 73 ErrorConsole* MockExtensionSystem::error_console() { |
| 74 return NULL; | 74 return nullptr; |
| 75 } | 75 } |
| 76 | 76 |
| 77 InstallVerifier* MockExtensionSystem::install_verifier() { | 77 InstallVerifier* MockExtensionSystem::install_verifier() { |
| 78 return NULL; | 78 return nullptr; |
| 79 } | 79 } |
| 80 | 80 |
| 81 QuotaService* MockExtensionSystem::quota_service() { | 81 QuotaService* MockExtensionSystem::quota_service() { |
| 82 return NULL; | 82 return nullptr; |
| 83 } | 83 } |
| 84 | 84 |
| 85 const OneShotEvent& MockExtensionSystem::ready() const { | 85 const OneShotEvent& MockExtensionSystem::ready() const { |
| 86 return ready_; | 86 return ready_; |
| 87 } | 87 } |
| 88 | 88 |
| 89 ContentVerifier* MockExtensionSystem::content_verifier() { | 89 ContentVerifier* MockExtensionSystem::content_verifier() { |
| 90 return NULL; | 90 return nullptr; |
| 91 } | 91 } |
| 92 | 92 |
| 93 DeclarativeUserScriptMaster* | 93 DeclarativeUserScriptMaster* |
| 94 MockExtensionSystem::GetDeclarativeUserScriptMasterByExtension( | 94 MockExtensionSystem::GetDeclarativeUserScriptMasterByExtension( |
| 95 const ExtensionId& extension_id) { | 95 const ExtensionId& extension_id) { |
| 96 return NULL; | 96 return nullptr; |
| 97 } | 97 } |
| 98 | 98 |
| 99 scoped_ptr<ExtensionSet> MockExtensionSystem::GetDependentExtensions( | 99 scoped_ptr<ExtensionSet> MockExtensionSystem::GetDependentExtensions( |
| 100 const Extension* extension) { | 100 const Extension* extension) { |
| 101 return scoped_ptr<ExtensionSet>(); | 101 return scoped_ptr<ExtensionSet>(); |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace extensions | 104 } // namespace extensions |
| OLD | NEW |