NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / chrome / browser / extensions / test_extension_service.cc
blob856bce094859113422010f8ec1fadc62fdff4809
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 extensions::PendingExtensionManager*
19 TestExtensionService::pending_extension_manager() {
20 ADD_FAILURE();
21 return NULL;
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) {
30 ADD_FAILURE();
31 return false;
34 const Extension* TestExtensionService::GetExtensionById(
35 const std::string& id, bool include_disabled) const {
36 ADD_FAILURE();
37 return NULL;
40 const Extension* TestExtensionService::GetInstalledExtension(
41 const std::string& id) const {
42 ADD_FAILURE();
43 return NULL;
46 const Extension* TestExtensionService::GetPendingExtensionUpdate(
47 const std::string& id) const {
48 ADD_FAILURE();
49 return NULL;
52 void TestExtensionService::FinishDelayedInstallation(
53 const std::string& extension_id) {
54 ADD_FAILURE();
57 bool TestExtensionService::IsExtensionEnabled(
58 const std::string& extension_id) const {
59 ADD_FAILURE();
60 return false;
63 bool TestExtensionService::IsExternalExtensionUninstalled(
64 const std::string& extension_id) const {
65 ADD_FAILURE();
66 return false;
69 void TestExtensionService::CheckManagementPolicy() {
70 ADD_FAILURE();
73 void TestExtensionService::CheckForUpdatesSoon() {
74 ADD_FAILURE();
77 bool TestExtensionService::is_ready() {
78 ADD_FAILURE();
79 return false;
82 base::SequencedTaskRunner* TestExtensionService::GetFileTaskRunner() {
83 ADD_FAILURE();
84 return NULL;
87 void TestExtensionService::AddExtension(const Extension* extension) {
88 ADD_FAILURE();
91 void TestExtensionService::AddComponentExtension(const Extension* extension) {
92 ADD_FAILURE();
95 void TestExtensionService::UnloadExtension(
96 const std::string& extension_id,
97 extensions::UnloadedExtensionInfo::Reason reason) {
98 ADD_FAILURE();
101 void TestExtensionService::RemoveComponentExtension(
102 const std::string& extension_id) {
103 ADD_FAILURE();