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.
4
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"
8
9using extensions::Extension;
10
11TestExtensionService::~TestExtensionService() {}
12
13const extensions::ExtensionSet* TestExtensionService::extensions() const {
14  ADD_FAILURE();
15  return NULL;
16}
17
18extensions::PendingExtensionManager*
19TestExtensionService::pending_extension_manager() {
20  ADD_FAILURE();
21  return NULL;
22}
23
24bool TestExtensionService::UpdateExtension(
25    const std::string& id,
26    const base::FilePath& path,
27    bool file_ownership_passed,
28    extensions::CrxInstaller** out_crx_installer) {
29  ADD_FAILURE();
30  return false;
31}
32
33const Extension* TestExtensionService::GetExtensionById(
34    const std::string& id, bool include_disabled) const {
35  ADD_FAILURE();
36  return NULL;
37}
38
39const Extension* TestExtensionService::GetInstalledExtension(
40    const std::string& id) const {
41  ADD_FAILURE();
42  return NULL;
43}
44
45const Extension* TestExtensionService::GetPendingExtensionUpdate(
46    const std::string& id) const {
47  ADD_FAILURE();
48  return NULL;
49}
50
51void TestExtensionService::FinishDelayedInstallation(
52    const std::string& extension_id) {
53  ADD_FAILURE();
54}
55
56bool TestExtensionService::IsExtensionEnabled(
57    const std::string& extension_id) const {
58  ADD_FAILURE();
59  return false;
60}
61
62void TestExtensionService::CheckManagementPolicy() {
63  ADD_FAILURE();
64}
65
66void TestExtensionService::CheckForUpdatesSoon() {
67  ADD_FAILURE();
68}
69
70bool TestExtensionService::is_ready() {
71  ADD_FAILURE();
72  return false;
73}
74
75base::SequencedTaskRunner* TestExtensionService::GetFileTaskRunner() {
76  ADD_FAILURE();
77  return NULL;
78}
79
80void TestExtensionService::AddExtension(const Extension* extension) {
81  ADD_FAILURE();
82}
83
84void TestExtensionService::AddComponentExtension(const Extension* extension) {
85  ADD_FAILURE();
86}
87
88void TestExtensionService::UnloadExtension(
89    const std::string& extension_id,
90    extensions::UnloadedExtensionInfo::Reason reason) {
91  ADD_FAILURE();
92}
93
94void TestExtensionService::RemoveComponentExtension(
95    const std::string& extension_id) {
96  ADD_FAILURE();
97}
98