Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / extensions / test_extension_service.h
blob64d0ab383f250ad9a6b01ad63c3f72faf005c1eb
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 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_
8 #include <string>
9 #include <vector>
11 #include "chrome/browser/extensions/extension_service.h"
13 namespace extensions {
14 class CrxInstaller;
15 class Extension;
18 // Implemention of ExtensionServiceInterface with default
19 // implementations for methods that add failures. You should subclass
20 // this and override the methods you care about.
21 class TestExtensionService : public ExtensionServiceInterface {
22 public:
23 ~TestExtensionService() override;
25 // ExtensionServiceInterface implementation.
26 extensions::PendingExtensionManager* pending_extension_manager() override;
28 bool UpdateExtension(const extensions::CRXFileInfo& file,
29 bool file_ownership_passed,
30 extensions::CrxInstaller** out_crx_installer) override;
31 const extensions::Extension* GetExtensionById(
32 const std::string& id,
33 bool include_disabled) const override;
34 const extensions::Extension* GetInstalledExtension(
35 const std::string& id) const override;
36 const extensions::Extension* GetPendingExtensionUpdate(
37 const std::string& extension_id) const override;
38 void FinishDelayedInstallation(const std::string& extension_id) override;
39 bool IsExtensionEnabled(const std::string& extension_id) const override;
41 void CheckManagementPolicy() override;
42 void CheckForUpdatesSoon() override;
44 bool is_ready() override;
46 base::SequencedTaskRunner* GetFileTaskRunner() override;
48 void AddExtension(const extensions::Extension* extension) override;
49 void AddComponentExtension(const extensions::Extension* extension) override;
51 void UnloadExtension(
52 const std::string& extension_id,
53 extensions::UnloadedExtensionInfo::Reason reason) override;
54 void RemoveComponentExtension(const std::string& extension_id) override;
57 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_