| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Automatically generated by testing/gmock/scripts/generator/gmock_gen.py. | 5 // Automatically generated by testing/gmock/scripts/generator/gmock_gen.py. |
| 6 // Manual edits: | 6 // Manual edits: |
| 7 // - Copyright header added. | 7 // - Copyright header added. |
| 8 // - Includes and inclusion guard added. | 8 // - Includes and inclusion guard added. |
| 9 // - Constructor and destructor added to satisfy chromium-style checker. | 9 // - Constructor and destructor added to satisfy chromium-style checker. |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 MOCK_METHOD1(AddObserver, | 26 MOCK_METHOD1(AddObserver, |
| 27 void(Observer* observer)); | 27 void(Observer* observer)); |
| 28 MOCK_METHOD1(RemoveObserver, | 28 MOCK_METHOD1(RemoveObserver, |
| 29 void(Observer* observer)); | 29 void(Observer* observer)); |
| 30 MOCK_METHOD1(RegisterComponent, | 30 MOCK_METHOD1(RegisterComponent, |
| 31 bool(const CrxComponent& component)); | 31 bool(const CrxComponent& component)); |
| 32 MOCK_METHOD1(UnregisterComponent, | 32 MOCK_METHOD1(UnregisterComponent, |
| 33 bool(const std::string& id)); | 33 bool(const std::string& id)); |
| 34 MOCK_CONST_METHOD0(GetComponentIDs, | 34 MOCK_CONST_METHOD0(GetComponentIDs, |
| 35 std::vector<std::string>()); | 35 std::vector<std::string>()); |
| 36 MOCK_CONST_METHOD2(GetComponentForMimeType, |
| 37 bool(const std::string& mime_type, ComponentInfo* info)); |
| 36 MOCK_METHOD0(GetOnDemandUpdater, | 38 MOCK_METHOD0(GetOnDemandUpdater, |
| 37 OnDemandUpdater&()); | 39 OnDemandUpdater&()); |
| 38 MOCK_METHOD2(MaybeThrottle, | 40 MOCK_METHOD2(MaybeThrottle, |
| 39 void(const std::string& id, const base::Closure& callback)); | 41 void(const std::string& id, const base::Closure& callback)); |
| 40 MOCK_METHOD0(GetSequencedTaskRunner, | 42 MOCK_METHOD0(GetSequencedTaskRunner, |
| 41 scoped_refptr<base::SequencedTaskRunner>()); | 43 scoped_refptr<base::SequencedTaskRunner>()); |
| 42 MOCK_CONST_METHOD2(GetComponentDetails, | 44 MOCK_CONST_METHOD2(GetComponentDetails, |
| 43 bool(const std::string& id, CrxUpdateItem* item)); | 45 bool(const std::string& id, CrxUpdateItem* item)); |
| 44 }; | 46 }; |
| 45 | 47 |
| 46 } // namespace component_updater | 48 } // namespace component_updater |
| 47 | 49 |
| 48 #endif // COMPONENTS_COMPONENT_UPDATER_MOCK_COMPONENT_UPDATER_SERVICE_H_ | 50 #endif // COMPONENTS_COMPONENT_UPDATER_MOCK_COMPONENT_UPDATER_SERVICE_H_ |
| OLD | NEW |