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 const extensions::ExtensionSet
* TestExtensionService::extensions() const {
18 extensions::PendingExtensionManager
*
19 TestExtensionService::pending_extension_manager() {
24 bool TestExtensionService::UpdateExtension(
25 const std::string
& id
,
26 const base::FilePath
& path
,
27 bool file_ownership_passed
,
28 extensions::CrxInstaller
** out_crx_installer
) {
33 const Extension
* TestExtensionService::GetExtensionById(
34 const std::string
& id
, bool include_disabled
) const {
39 const Extension
* TestExtensionService::GetInstalledExtension(
40 const std::string
& id
) const {
45 const Extension
* TestExtensionService::GetPendingExtensionUpdate(
46 const std::string
& id
) const {
51 void TestExtensionService::FinishDelayedInstallation(
52 const std::string
& extension_id
) {
56 bool TestExtensionService::IsExtensionEnabled(
57 const std::string
& extension_id
) const {
62 void TestExtensionService::CheckManagementPolicy() {
66 void TestExtensionService::CheckForUpdatesSoon() {
70 bool TestExtensionService::is_ready() {
75 base::SequencedTaskRunner
* TestExtensionService::GetFileTaskRunner() {
80 void TestExtensionService::AddExtension(const Extension
* extension
) {
84 void TestExtensionService::AddComponentExtension(const Extension
* extension
) {
88 void TestExtensionService::UnloadExtension(
89 const std::string
& extension_id
,
90 extensions::UnloadedExtensionInfo::Reason reason
) {
94 void TestExtensionService::RemoveComponentExtension(
95 const std::string
& extension_id
) {