Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / test_extension_service.cc
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     const GURL& download_url,
29     extensions::CrxInstaller** out_crx_installer) {
30   ADD_FAILURE();
31   return false;
32 }
33
34 const Extension* TestExtensionService::GetExtensionById(
35     const std::string& id, bool include_disabled) const {
36   ADD_FAILURE();
37   return NULL;
38 }
39
40 const Extension* TestExtensionService::GetInstalledExtension(
41     const std::string& id) const {
42   ADD_FAILURE();
43   return NULL;
44 }
45
46 const Extension* TestExtensionService::GetPendingExtensionUpdate(
47     const std::string& id) const {
48   ADD_FAILURE();
49   return NULL;
50 }
51
52 void TestExtensionService::FinishDelayedInstallation(
53     const std::string& extension_id) {
54   ADD_FAILURE();
55 }
56
57 bool TestExtensionService::IsExtensionEnabled(
58     const std::string& extension_id) const {
59   ADD_FAILURE();
60   return false;
61 }
62
63 bool TestExtensionService::IsExternalExtensionUninstalled(
64     const std::string& extension_id) const {
65   ADD_FAILURE();
66   return false;
67 }
68
69 void TestExtensionService::CheckManagementPolicy() {
70   ADD_FAILURE();
71 }
72
73 void TestExtensionService::CheckForUpdatesSoon() {
74   ADD_FAILURE();
75 }
76
77 bool TestExtensionService::is_ready() {
78   ADD_FAILURE();
79   return false;
80 }
81
82 base::SequencedTaskRunner* TestExtensionService::GetFileTaskRunner() {
83   ADD_FAILURE();
84   return NULL;
85 }
86
87 void TestExtensionService::AddExtension(const Extension* extension) {
88   ADD_FAILURE();
89 }
90
91 void TestExtensionService::AddComponentExtension(const Extension* extension) {
92   ADD_FAILURE();
93 }
94
95 void TestExtensionService::UnloadExtension(
96     const std::string& extension_id,
97     extensions::UnloadedExtensionInfo::Reason reason) {
98   ADD_FAILURE();
99 }
100
101 void TestExtensionService::RemoveComponentExtension(
102     const std::string& extension_id) {
103   ADD_FAILURE();
104 }