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 const extensions::ExtensionSet
* TestExtensionService::disabled_extensions()
24 extensions::PendingExtensionManager
*
25 TestExtensionService::pending_extension_manager() {
30 bool TestExtensionService::UpdateExtension(
31 const std::string
& id
,
32 const base::FilePath
& path
,
33 const GURL
& download_url
,
34 extensions::CrxInstaller
** out_crx_installer
) {
39 const Extension
* TestExtensionService::GetExtensionById(
40 const std::string
& id
, bool include_disabled
) const {
45 const Extension
* TestExtensionService::GetInstalledExtension(
46 const std::string
& id
) const {
51 const Extension
* TestExtensionService::GetPendingExtensionUpdate(
52 const std::string
& id
) const {
57 void TestExtensionService::FinishDelayedInstallation(
58 const std::string
& extension_id
) {
62 bool TestExtensionService::IsExtensionEnabled(
63 const std::string
& extension_id
) const {
68 bool TestExtensionService::IsExternalExtensionUninstalled(
69 const std::string
& extension_id
) const {
74 void TestExtensionService::CheckManagementPolicy() {
78 void TestExtensionService::CheckForUpdatesSoon() {
82 bool TestExtensionService::is_ready() {
87 base::SequencedTaskRunner
* TestExtensionService::GetFileTaskRunner() {
92 void TestExtensionService::AddExtension(const Extension
* extension
) {
96 void TestExtensionService::AddComponentExtension(const Extension
* extension
) {
100 void TestExtensionService::UnloadExtension(
101 const std::string
& extension_id
,
102 extensions::UnloadedExtensionInfo::Reason reason
) {
106 void TestExtensionService::RemoveComponentExtension(
107 const std::string
& extension_id
) {