Extensions cleanup: Merge IsSyncableApp+Extension, ShouldSyncApp+Extension
[chromium-blink-merge.git] / chrome / browser / extensions / test_extension_service.cc
blobae2c2b8e3e3dd1fcc8e9d351c86d38d2ffe7346a
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 extensions::PendingExtensionManager*
14 TestExtensionService::pending_extension_manager() {
15 ADD_FAILURE();
16 return NULL;
19 bool TestExtensionService::UpdateExtension(
20 const extensions::CRXFileInfo& file,
21 bool file_ownership_passed,
22 extensions::CrxInstaller** out_crx_installer) {
23 ADD_FAILURE();
24 return false;
27 const Extension* TestExtensionService::GetExtensionById(
28 const std::string& id, bool include_disabled) const {
29 ADD_FAILURE();
30 return NULL;
33 const Extension* TestExtensionService::GetInstalledExtension(
34 const std::string& id) const {
35 ADD_FAILURE();
36 return NULL;
39 const Extension* TestExtensionService::GetPendingExtensionUpdate(
40 const std::string& id) const {
41 ADD_FAILURE();
42 return NULL;
45 void TestExtensionService::FinishDelayedInstallation(
46 const std::string& extension_id) {
47 ADD_FAILURE();
50 bool TestExtensionService::IsExtensionEnabled(
51 const std::string& extension_id) const {
52 ADD_FAILURE();
53 return false;
56 void TestExtensionService::CheckManagementPolicy() {
57 ADD_FAILURE();
60 void TestExtensionService::CheckForUpdatesSoon() {
61 ADD_FAILURE();
64 bool TestExtensionService::is_ready() {
65 ADD_FAILURE();
66 return false;
69 base::SequencedTaskRunner* TestExtensionService::GetFileTaskRunner() {
70 ADD_FAILURE();
71 return NULL;
74 void TestExtensionService::AddExtension(const Extension* extension) {
75 ADD_FAILURE();
78 void TestExtensionService::AddComponentExtension(const Extension* extension) {
79 ADD_FAILURE();
82 void TestExtensionService::UnloadExtension(
83 const std::string& extension_id,
84 extensions::UnloadedExtensionInfo::Reason reason) {
85 ADD_FAILURE();
88 void TestExtensionService::RemoveComponentExtension(
89 const std::string& extension_id) {
90 ADD_FAILURE();