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