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