[email protected] | 61f5fc8 | 2012-02-15 20:10:45 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | b05fb9ff | 2011-04-23 00:07:56 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 420a0ec | 2011-06-01 01:07:03 | [diff] [blame] | 5 | #include "chrome/browser/extensions/crx_installer.h" |
[email protected] | b05fb9ff | 2011-04-23 00:07:56 | [diff] [blame] | 6 | #include "chrome/browser/extensions/test_extension_service.h" |
7 | #include "testing/gtest/include/gtest/gtest.h" | ||||
8 | |||||
[email protected] | 1c321ee | 2012-05-21 03:02:34 | [diff] [blame] | 9 | using extensions::Extension; |
10 | |||||
[email protected] | b05fb9ff | 2011-04-23 00:07:56 | [diff] [blame] | 11 | TestExtensionService::~TestExtensionService() {} |
12 | |||||
[email protected] | 3f213ad | 2012-07-26 23:39:41 | [diff] [blame] | 13 | extensions::PendingExtensionManager* |
14 | TestExtensionService::pending_extension_manager() { | ||||
[email protected] | b05fb9ff | 2011-04-23 00:07:56 | [diff] [blame] | 15 | ADD_FAILURE(); |
16 | return NULL; | ||||
17 | } | ||||
18 | |||||
[email protected] | 420a0ec | 2011-06-01 01:07:03 | [diff] [blame] | 19 | bool TestExtensionService::UpdateExtension( |
ginkage | 553af320 | 2015-02-04 12:39:09 | [diff] [blame] | 20 | const extensions::CRXFileInfo& file, |
[email protected] | 044e8699 | 2014-01-24 22:59:11 | [diff] [blame] | 21 | bool file_ownership_passed, |
[email protected] | bf3d9df | 2012-07-24 23:20:27 | [diff] [blame] | 22 | extensions::CrxInstaller** out_crx_installer) { |
[email protected] | b05fb9ff | 2011-04-23 00:07:56 | [diff] [blame] | 23 | ADD_FAILURE(); |
[email protected] | abdeb5d2 | 2012-05-16 06:57:13 | [diff] [blame] | 24 | return false; |
[email protected] | b05fb9ff | 2011-04-23 00:07:56 | [diff] [blame] | 25 | } |
26 | |||||
[email protected] | 76b6544 | 2012-11-17 14:11:48 | [diff] [blame] | 27 | const Extension* TestExtensionService::GetPendingExtensionUpdate( |
28 | const std::string& id) const { | ||||
29 | ADD_FAILURE(); | ||||
30 | return NULL; | ||||
31 | } | ||||
32 | |||||
Toni Barzic | 667db0d3 | 2018-01-09 18:00:19 | [diff] [blame] | 33 | bool TestExtensionService::FinishDelayedInstallationIfReady( |
34 | const std::string& extension_id, | ||||
35 | bool install_immediately) { | ||||
[email protected] | 76b6544 | 2012-11-17 14:11:48 | [diff] [blame] | 36 | ADD_FAILURE(); |
Toni Barzic | 667db0d3 | 2018-01-09 18:00:19 | [diff] [blame] | 37 | return false; |
[email protected] | 76b6544 | 2012-11-17 14:11:48 | [diff] [blame] | 38 | } |
39 | |||||
[email protected] | b05fb9ff | 2011-04-23 00:07:56 | [diff] [blame] | 40 | bool TestExtensionService::IsExtensionEnabled( |
41 | const std::string& extension_id) const { | ||||
42 | ADD_FAILURE(); | ||||
43 | return false; | ||||
44 | } | ||||
45 | |||||
[email protected] | 4ee07c6 | 2012-08-21 12:40:42 | [diff] [blame] | 46 | void TestExtensionService::CheckManagementPolicy() { |
[email protected] | b05fb9ff | 2011-04-23 00:07:56 | [diff] [blame] | 47 | ADD_FAILURE(); |
48 | } | ||||
49 | |||||
50 | void TestExtensionService::CheckForUpdatesSoon() { | ||||
51 | ADD_FAILURE(); | ||||
52 | } | ||||
53 | |||||
[email protected] | 25ae015 | 2011-11-18 14:40:02 | [diff] [blame] | 54 | bool TestExtensionService::is_ready() { |
55 | ADD_FAILURE(); | ||||
56 | return false; | ||||
57 | } | ||||
58 | |||||
[email protected] | fcb58a86 | 2012-05-01 01:03:15 | [diff] [blame] | 59 | void TestExtensionService::AddExtension(const Extension* extension) { |
[email protected] | 25ae015 | 2011-11-18 14:40:02 | [diff] [blame] | 60 | ADD_FAILURE(); |
61 | } | ||||
62 | |||||
[email protected] | 8c484b74 | 2012-11-29 06:05:36 | [diff] [blame] | 63 | void TestExtensionService::AddComponentExtension(const Extension* extension) { |
64 | ADD_FAILURE(); | ||||
65 | } | ||||
66 | |||||
[email protected] | 25ae015 | 2011-11-18 14:40:02 | [diff] [blame] | 67 | void TestExtensionService::UnloadExtension( |
68 | const std::string& extension_id, | ||||
limasdf | 0deef204 | 2017-05-03 19:17:17 | [diff] [blame] | 69 | extensions::UnloadedExtensionReason reason) { |
[email protected] | 25ae015 | 2011-11-18 14:40:02 | [diff] [blame] | 70 | ADD_FAILURE(); |
71 | } | ||||
[email protected] | fb82dcd | 2012-03-21 14:15:46 | [diff] [blame] | 72 | |
[email protected] | 8b1ec20 | 2013-09-05 02:09:50 | [diff] [blame] | 73 | void TestExtensionService::RemoveComponentExtension( |
74 | const std::string& extension_id) { | ||||
75 | ADD_FAILURE(); | ||||
76 | } |