[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #include "extensions/browser/mock_extension_system.h" | ||||
6 | |||||
7 | #include "extensions/common/extension_set.h" | ||||
8 | |||||
9 | namespace extensions { | ||||
10 | |||||
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 11 | MockExtensionSystem::MockExtensionSystem(content::BrowserContext* context) |
juncai | cf52333 | 2015-06-04 00:14:04 | [diff] [blame] | 12 | : browser_context_(context) { |
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 13 | } |
14 | |||||
15 | MockExtensionSystem::~MockExtensionSystem() { | ||||
16 | } | ||||
17 | |||||
18 | void MockExtensionSystem::InitForRegularProfile(bool extensions_enabled) { | ||||
19 | } | ||||
20 | |||||
21 | ExtensionService* MockExtensionSystem::extension_service() { | ||||
jamescook | 6a8982b | 2014-11-19 00:24:56 | [diff] [blame] | 22 | return nullptr; |
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 23 | } |
24 | |||||
25 | RuntimeData* MockExtensionSystem::runtime_data() { | ||||
jamescook | 6a8982b | 2014-11-19 00:24:56 | [diff] [blame] | 26 | return nullptr; |
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 27 | } |
28 | |||||
29 | ManagementPolicy* MockExtensionSystem::management_policy() { | ||||
jamescook | 6a8982b | 2014-11-19 00:24:56 | [diff] [blame] | 30 | return nullptr; |
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 31 | } |
32 | |||||
[email protected] | 15ad2ee | 2014-08-15 19:15:26 | [diff] [blame] | 33 | SharedUserScriptMaster* MockExtensionSystem::shared_user_script_master() { |
jamescook | 6a8982b | 2014-11-19 00:24:56 | [diff] [blame] | 34 | return nullptr; |
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 35 | } |
36 | |||||
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 37 | StateStore* MockExtensionSystem::state_store() { |
jamescook | 6a8982b | 2014-11-19 00:24:56 | [diff] [blame] | 38 | return nullptr; |
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 39 | } |
40 | |||||
41 | StateStore* MockExtensionSystem::rules_store() { | ||||
jamescook | 6a8982b | 2014-11-19 00:24:56 | [diff] [blame] | 42 | return nullptr; |
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 43 | } |
44 | |||||
45 | InfoMap* MockExtensionSystem::info_map() { | ||||
jamescook | 6a8982b | 2014-11-19 00:24:56 | [diff] [blame] | 46 | return nullptr; |
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 47 | } |
48 | |||||
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 49 | QuotaService* MockExtensionSystem::quota_service() { |
jamescook | 6a8982b | 2014-11-19 00:24:56 | [diff] [blame] | 50 | return nullptr; |
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 51 | } |
52 | |||||
treib | 926ee2d | 2015-08-06 10:55:42 | [diff] [blame^] | 53 | AppSorting* MockExtensionSystem::app_sorting() { |
54 | return nullptr; | ||||
55 | } | ||||
56 | |||||
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 57 | const OneShotEvent& MockExtensionSystem::ready() const { |
58 | return ready_; | ||||
59 | } | ||||
60 | |||||
61 | ContentVerifier* MockExtensionSystem::content_verifier() { | ||||
jamescook | 6a8982b | 2014-11-19 00:24:56 | [diff] [blame] | 62 | return nullptr; |
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 63 | } |
64 | |||||
[email protected] | 4db043b | 2014-08-13 09:46:18 | [diff] [blame] | 65 | scoped_ptr<ExtensionSet> MockExtensionSystem::GetDependentExtensions( |
66 | const Extension* extension) { | ||||
67 | return scoped_ptr<ExtensionSet>(); | ||||
68 | } | ||||
69 | |||||
70 | } // namespace extensions |