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 const GURL
& download_url
,
29 extensions::CrxInstaller
** out_crx_installer
) {
34 const Extension
* TestExtensionService::GetExtensionById(
35 const std::string
& id
, bool include_disabled
) const {
40 const Extension
* TestExtensionService::GetInstalledExtension(
41 const std::string
& id
) const {
46 const Extension
* TestExtensionService::GetPendingExtensionUpdate(
47 const std::string
& id
) const {
52 void TestExtensionService::FinishDelayedInstallation(
53 const std::string
& extension_id
) {
57 bool TestExtensionService::IsExtensionEnabled(
58 const std::string
& extension_id
) const {
63 bool TestExtensionService::IsExternalExtensionUninstalled(
64 const std::string
& extension_id
) const {
69 void TestExtensionService::CheckManagementPolicy() {
73 void TestExtensionService::CheckForUpdatesSoon() {
77 bool TestExtensionService::is_ready() {
82 base::SequencedTaskRunner
* TestExtensionService::GetFileTaskRunner() {
87 void TestExtensionService::AddExtension(const Extension
* extension
) {
91 void TestExtensionService::AddComponentExtension(const Extension
* extension
) {
95 void TestExtensionService::UnloadExtension(
96 const std::string
& extension_id
,
97 extensions::UnloadedExtensionInfo::Reason reason
) {
101 void TestExtensionService::RemoveComponentExtension(
102 const std::string
& extension_id
) {