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.
5 #include "extensions/browser/mock_extension_system.h"
7 #include "extensions/common/extension_set.h"
11 MockExtensionSystem::MockExtensionSystem(content::BrowserContext
* context
)
12 : browser_context_(context
), event_router_(nullptr) {
15 MockExtensionSystem::~MockExtensionSystem() {
18 void MockExtensionSystem::InitForRegularProfile(bool extensions_enabled
) {
21 ExtensionService
* MockExtensionSystem::extension_service() {
25 RuntimeData
* MockExtensionSystem::runtime_data() {
29 ManagementPolicy
* MockExtensionSystem::management_policy() {
33 SharedUserScriptMaster
* MockExtensionSystem::shared_user_script_master() {
37 StateStore
* MockExtensionSystem::state_store() {
41 StateStore
* MockExtensionSystem::rules_store() {
45 InfoMap
* MockExtensionSystem::info_map() {
49 LazyBackgroundTaskQueue
* MockExtensionSystem::lazy_background_task_queue() {
53 EventRouter
* MockExtensionSystem::event_router() {
57 ErrorConsole
* MockExtensionSystem::error_console() {
61 InstallVerifier
* MockExtensionSystem::install_verifier() {
65 QuotaService
* MockExtensionSystem::quota_service() {
69 const OneShotEvent
& MockExtensionSystem::ready() const {
73 ContentVerifier
* MockExtensionSystem::content_verifier() {
77 DeclarativeUserScriptMaster
*
78 MockExtensionSystem::GetDeclarativeUserScriptMasterByExtension(
79 const ExtensionId
& extension_id
) {
83 scoped_ptr
<ExtensionSet
> MockExtensionSystem::GetDependentExtensions(
84 const Extension
* extension
) {
85 return scoped_ptr
<ExtensionSet
>();
88 } // namespace extensions