OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include "chrome/browser/extensions/crx_installer.h" |
5 #include "chrome/browser/extensions/extension_sync_data.h" | 6 #include "chrome/browser/extensions/extension_sync_data.h" |
6 #include "chrome/browser/extensions/test_extension_service.h" | 7 #include "chrome/browser/extensions/test_extension_service.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
8 | 9 |
9 TestExtensionService::~TestExtensionService() {} | 10 TestExtensionService::~TestExtensionService() {} |
10 | 11 |
11 const ExtensionList* TestExtensionService::extensions() const { | 12 const ExtensionList* TestExtensionService::extensions() const { |
12 ADD_FAILURE(); | 13 ADD_FAILURE(); |
13 return NULL; | 14 return NULL; |
14 } | 15 } |
15 | 16 |
16 PendingExtensionManager* TestExtensionService::pending_extension_manager() { | 17 PendingExtensionManager* TestExtensionService::pending_extension_manager() { |
17 ADD_FAILURE(); | 18 ADD_FAILURE(); |
18 return NULL; | 19 return NULL; |
19 } | 20 } |
20 | 21 |
21 void TestExtensionService::UpdateExtension(const std::string& id, | 22 bool TestExtensionService::UpdateExtension( |
22 const FilePath& path, | 23 const std::string& id, |
23 const GURL& download_url) { | 24 const FilePath& path, |
| 25 const GURL& download_url, |
| 26 CrxInstaller** out_crx_installer) { |
24 ADD_FAILURE(); | 27 ADD_FAILURE(); |
| 28 return NULL; |
25 } | 29 } |
26 | 30 |
27 const Extension* TestExtensionService::GetExtensionById( | 31 const Extension* TestExtensionService::GetExtensionById( |
28 const std::string& id, bool include_disabled) const { | 32 const std::string& id, bool include_disabled) const { |
29 ADD_FAILURE(); | 33 ADD_FAILURE(); |
30 return NULL; | 34 return NULL; |
31 } | 35 } |
32 | 36 |
33 const Extension* TestExtensionService::GetInstalledExtension( | 37 const Extension* TestExtensionService::GetInstalledExtension( |
34 const std::string& id) const { | 38 const std::string& id) const { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 ExtensionFilter filter) const { | 76 ExtensionFilter filter) const { |
73 ADD_FAILURE(); | 77 ADD_FAILURE(); |
74 return std::vector<ExtensionSyncData>(); | 78 return std::vector<ExtensionSyncData>(); |
75 } | 79 } |
76 | 80 |
77 void TestExtensionService::ProcessSyncData( | 81 void TestExtensionService::ProcessSyncData( |
78 const ExtensionSyncData& extension_sync_data, | 82 const ExtensionSyncData& extension_sync_data, |
79 ExtensionFilter filter) { | 83 ExtensionFilter filter) { |
80 ADD_FAILURE(); | 84 ADD_FAILURE(); |
81 } | 85 } |
OLD | NEW |