Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / extensions / test_extension_service.cc
blobd88db903c2c8eecc2c0d17671517bd53fc5b740b
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 {
14 ADD_FAILURE();
15 return NULL;
18 const extensions::ExtensionSet* TestExtensionService::disabled_extensions()
19 const {
20 ADD_FAILURE();
21 return NULL;
24 extensions::PendingExtensionManager*
25 TestExtensionService::pending_extension_manager() {
26 ADD_FAILURE();
27 return NULL;
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) {
35 ADD_FAILURE();
36 return false;
39 const Extension* TestExtensionService::GetExtensionById(
40 const std::string& id, bool include_disabled) const {
41 ADD_FAILURE();
42 return NULL;
45 const Extension* TestExtensionService::GetInstalledExtension(
46 const std::string& id) const {
47 ADD_FAILURE();
48 return NULL;
51 const Extension* TestExtensionService::GetPendingExtensionUpdate(
52 const std::string& id) const {
53 ADD_FAILURE();
54 return NULL;
57 void TestExtensionService::FinishDelayedInstallation(
58 const std::string& extension_id) {
59 ADD_FAILURE();
62 bool TestExtensionService::IsExtensionEnabled(
63 const std::string& extension_id) const {
64 ADD_FAILURE();
65 return false;
68 bool TestExtensionService::IsExternalExtensionUninstalled(
69 const std::string& extension_id) const {
70 ADD_FAILURE();
71 return false;
74 void TestExtensionService::CheckManagementPolicy() {
75 ADD_FAILURE();
78 void TestExtensionService::CheckForUpdatesSoon() {
79 ADD_FAILURE();
82 bool TestExtensionService::is_ready() {
83 ADD_FAILURE();
84 return false;
87 base::SequencedTaskRunner* TestExtensionService::GetFileTaskRunner() {
88 ADD_FAILURE();
89 return NULL;
92 void TestExtensionService::AddExtension(const Extension* extension) {
93 ADD_FAILURE();
96 void TestExtensionService::AddComponentExtension(const Extension* extension) {
97 ADD_FAILURE();
100 void TestExtensionService::UnloadExtension(
101 const std::string& extension_id,
102 extensions::UnloadedExtensionInfo::Reason reason) {
103 ADD_FAILURE();
106 void TestExtensionService::RemoveComponentExtension(
107 const std::string& extension_id) {
108 ADD_FAILURE();