blob: cc5aacb5d02811030e5145418cc12d1e17e90837 [file] [log] [blame]
[email protected]61f5fc82012-02-15 20:10:451// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]b05fb9ff2011-04-23 00:07:562// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]420a0ec2011-06-01 01:07:035#include "chrome/browser/extensions/crx_installer.h"
[email protected]b05fb9ff2011-04-23 00:07:566#include "chrome/browser/extensions/test_extension_service.h"
7#include "testing/gtest/include/gtest/gtest.h"
8
[email protected]1c321ee2012-05-21 03:02:349using extensions::Extension;
10
[email protected]b05fb9ff2011-04-23 00:07:5611TestExtensionService::~TestExtensionService() {}
12
[email protected]3f213ad2012-07-26 23:39:4113extensions::PendingExtensionManager*
14TestExtensionService::pending_extension_manager() {
[email protected]b05fb9ff2011-04-23 00:07:5615 ADD_FAILURE();
16 return NULL;
17}
18
[email protected]420a0ec2011-06-01 01:07:0319bool TestExtensionService::UpdateExtension(
ginkage553af3202015-02-04 12:39:0920 const extensions::CRXFileInfo& file,
[email protected]044e86992014-01-24 22:59:1121 bool file_ownership_passed,
[email protected]bf3d9df2012-07-24 23:20:2722 extensions::CrxInstaller** out_crx_installer) {
[email protected]b05fb9ff2011-04-23 00:07:5623 ADD_FAILURE();
[email protected]abdeb5d22012-05-16 06:57:1324 return false;
[email protected]b05fb9ff2011-04-23 00:07:5625}
26
[email protected]76b65442012-11-17 14:11:4827const Extension* TestExtensionService::GetPendingExtensionUpdate(
28 const std::string& id) const {
29 ADD_FAILURE();
30 return NULL;
31}
32
Toni Barzic667db0d32018-01-09 18:00:1933bool TestExtensionService::FinishDelayedInstallationIfReady(
34 const std::string& extension_id,
35 bool install_immediately) {
[email protected]76b65442012-11-17 14:11:4836 ADD_FAILURE();
Toni Barzic667db0d32018-01-09 18:00:1937 return false;
[email protected]76b65442012-11-17 14:11:4838}
39
[email protected]b05fb9ff2011-04-23 00:07:5640bool TestExtensionService::IsExtensionEnabled(
41 const std::string& extension_id) const {
42 ADD_FAILURE();
43 return false;
44}
45
[email protected]4ee07c62012-08-21 12:40:4246void TestExtensionService::CheckManagementPolicy() {
[email protected]b05fb9ff2011-04-23 00:07:5647 ADD_FAILURE();
48}
49
50void TestExtensionService::CheckForUpdatesSoon() {
51 ADD_FAILURE();
52}
53
[email protected]25ae0152011-11-18 14:40:0254bool TestExtensionService::is_ready() {
55 ADD_FAILURE();
56 return false;
57}
58
[email protected]fcb58a862012-05-01 01:03:1559void TestExtensionService::AddExtension(const Extension* extension) {
[email protected]25ae0152011-11-18 14:40:0260 ADD_FAILURE();
61}
62
[email protected]8c484b742012-11-29 06:05:3663void TestExtensionService::AddComponentExtension(const Extension* extension) {
64 ADD_FAILURE();
65}
66
[email protected]25ae0152011-11-18 14:40:0267void TestExtensionService::UnloadExtension(
68 const std::string& extension_id,
limasdf0deef2042017-05-03 19:17:1769 extensions::UnloadedExtensionReason reason) {
[email protected]25ae0152011-11-18 14:40:0270 ADD_FAILURE();
71}
[email protected]fb82dcd2012-03-21 14:15:4672
[email protected]8b1ec202013-09-05 02:09:5073void TestExtensionService::RemoveComponentExtension(
74 const std::string& extension_id) {
75 ADD_FAILURE();
76}