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
3 // found in the LICENSE file.
5 #include "chrome/browser/extensions/crx_installer.h"
6 #include "chrome/browser/extensions/test_extension_service.h"
7 #include "testing/gtest/include/gtest/gtest.h"
9 using extensions::Extension
;
11 TestExtensionService::~TestExtensionService() {}
13 extensions::PendingExtensionManager
*
14 TestExtensionService::pending_extension_manager() {
19 bool TestExtensionService::UpdateExtension(
20 const extensions::CRXFileInfo
& file
,
21 bool file_ownership_passed
,
22 extensions::CrxInstaller
** out_crx_installer
) {
27 const Extension
* TestExtensionService::GetExtensionById(
28 const std::string
& id
, bool include_disabled
) const {
33 const Extension
* TestExtensionService::GetInstalledExtension(
34 const std::string
& id
) const {
39 const Extension
* TestExtensionService::GetPendingExtensionUpdate(
40 const std::string
& id
) const {
45 void TestExtensionService::FinishDelayedInstallation(
46 const std::string
& extension_id
) {
50 bool TestExtensionService::IsExtensionEnabled(
51 const std::string
& extension_id
) const {
56 void TestExtensionService::CheckManagementPolicy() {
60 void TestExtensionService::CheckForUpdatesSoon() {
64 bool TestExtensionService::is_ready() {
69 base::SequencedTaskRunner
* TestExtensionService::GetFileTaskRunner() {
74 void TestExtensionService::AddExtension(const Extension
* extension
) {
78 void TestExtensionService::AddComponentExtension(const Extension
* extension
) {
82 void TestExtensionService::UnloadExtension(
83 const std::string
& extension_id
,
84 extensions::UnloadedExtensionInfo::Reason reason
) {
88 void TestExtensionService::RemoveComponentExtension(
89 const std::string
& extension_id
) {