| 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 extensions::CRXFileInfo& file, |
| 21 const base::FilePath& path, | |
| 22 bool file_ownership_passed, | 21 bool file_ownership_passed, |
| 23 extensions::CrxInstaller** out_crx_installer) { | 22 extensions::CrxInstaller** out_crx_installer) { |
| 24 ADD_FAILURE(); | 23 ADD_FAILURE(); |
| 25 return false; | 24 return false; |
| 26 } | 25 } |
| 27 | 26 |
| 28 const Extension* TestExtensionService::GetExtensionById( | 27 const Extension* TestExtensionService::GetExtensionById( |
| 29 const std::string& id, bool include_disabled) const { | 28 const std::string& id, bool include_disabled) const { |
| 30 ADD_FAILURE(); | 29 ADD_FAILURE(); |
| 31 return NULL; | 30 return NULL; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 void TestExtensionService::UnloadExtension( | 82 void TestExtensionService::UnloadExtension( |
| 84 const std::string& extension_id, | 83 const std::string& extension_id, |
| 85 extensions::UnloadedExtensionInfo::Reason reason) { | 84 extensions::UnloadedExtensionInfo::Reason reason) { |
| 86 ADD_FAILURE(); | 85 ADD_FAILURE(); |
| 87 } | 86 } |
| 88 | 87 |
| 89 void TestExtensionService::RemoveComponentExtension( | 88 void TestExtensionService::RemoveComponentExtension( |
| 90 const std::string& extension_id) { | 89 const std::string& extension_id) { |
| 91 ADD_FAILURE(); | 90 ADD_FAILURE(); |
| 92 } | 91 } |
| OLD | NEW |