| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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/crx_installer.h" |
| 6 #include "chrome/browser/extensions/test_extension_service.h" | 6 #include "chrome/browser/extensions/test_extension_service.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 using extensions::Extension; | 9 using extensions::Extension; |
| 10 | 10 |
| 11 TestExtensionService::~TestExtensionService() {} | 11 TestExtensionService::~TestExtensionService() {} |
| 12 | 12 |
| 13 extensions::PendingExtensionManager* | 13 extensions::PendingExtensionManager* |
| 14 TestExtensionService::pending_extension_manager() { | 14 TestExtensionService::pending_extension_manager() { |
| 15 ADD_FAILURE(); | 15 ADD_FAILURE(); |
| 16 return NULL; | 16 return NULL; |
| 17 } | 17 } |
| 18 | 18 |
| 19 bool TestExtensionService::UpdateExtension( | 19 bool TestExtensionService::UpdateExtension( |
| 20 const std::string& id, | 20 const std::string& id, |
| 21 const base::FilePath& path, | 21 const base::FilePath& path, |
| 22 bool file_ownership_passed, | 22 bool file_ownership_passed, |
| 23 extensions::CrxInstaller** out_crx_installer) { | 23 extensions::CrxInstaller** out_crx_installer) { |
| 24 ADD_FAILURE(); | 24 ADD_FAILURE(); |
| 25 return false; | 25 return false; |
| 26 } | 26 } |
| 27 | 27 |
| 28 bool TestExtensionService::CheckAndUpdateExtension( |
| 29 const std::string& id, |
| 30 const base::FilePath& path, |
| 31 const std::string& hash, |
| 32 bool file_ownership_passed, |
| 33 extensions::CrxInstaller** out_crx_installer) { |
| 34 ADD_FAILURE(); |
| 35 return false; |
| 36 } |
| 37 |
| 28 const Extension* TestExtensionService::GetExtensionById( | 38 const Extension* TestExtensionService::GetExtensionById( |
| 29 const std::string& id, bool include_disabled) const { | 39 const std::string& id, bool include_disabled) const { |
| 30 ADD_FAILURE(); | 40 ADD_FAILURE(); |
| 31 return NULL; | 41 return NULL; |
| 32 } | 42 } |
| 33 | 43 |
| 34 const Extension* TestExtensionService::GetInstalledExtension( | 44 const Extension* TestExtensionService::GetInstalledExtension( |
| 35 const std::string& id) const { | 45 const std::string& id) const { |
| 36 ADD_FAILURE(); | 46 ADD_FAILURE(); |
| 37 return NULL; | 47 return NULL; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 void TestExtensionService::UnloadExtension( | 93 void TestExtensionService::UnloadExtension( |
| 84 const std::string& extension_id, | 94 const std::string& extension_id, |
| 85 extensions::UnloadedExtensionInfo::Reason reason) { | 95 extensions::UnloadedExtensionInfo::Reason reason) { |
| 86 ADD_FAILURE(); | 96 ADD_FAILURE(); |
| 87 } | 97 } |
| 88 | 98 |
| 89 void TestExtensionService::RemoveComponentExtension( | 99 void TestExtensionService::RemoveComponentExtension( |
| 90 const std::string& extension_id) { | 100 const std::string& extension_id) { |
| 91 ADD_FAILURE(); | 101 ADD_FAILURE(); |
| 92 } | 102 } |
| OLD | NEW |