OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Automatically generated by testing/gmock/scripts/generator/gmock_gen.py. |
| 6 // Manual edits: |
| 7 // - Copyright header added. |
| 8 // - Includes and inclusion guard added. |
| 9 // - Constructor and destructor added to satisfy chromium-style checker. |
| 10 |
| 11 #ifndef COMPONENTS_COMPONENT_UPDATER_MOCK_COMPONENT_UPDATER_SERVICE_H_ |
| 12 #define COMPONENTS_COMPONENT_UPDATER_MOCK_COMPONENT_UPDATER_SERVICE_H_ |
| 13 |
| 14 #include "base/callback.h" |
| 15 #include "components/component_updater/component_updater_service.h" |
| 16 #include "testing/gmock/include/gmock/gmock.h" |
| 17 |
| 18 namespace component_updater { |
| 19 |
| 20 class MockComponentUpdateService : public ComponentUpdateService { |
| 21 public: |
| 22 MockComponentUpdateService(); |
| 23 ~MockComponentUpdateService() override; |
| 24 |
| 25 MOCK_METHOD1(AddObserver, |
| 26 void(Observer* observer)); |
| 27 MOCK_METHOD1(RemoveObserver, |
| 28 void(Observer* observer)); |
| 29 MOCK_METHOD1(RegisterComponent, |
| 30 bool(const CrxComponent& component)); |
| 31 MOCK_METHOD1(UnregisterComponent, |
| 32 bool(const std::string& id)); |
| 33 MOCK_CONST_METHOD0(GetComponentIDs, |
| 34 std::vector<std::string>()); |
| 35 MOCK_METHOD0(GetOnDemandUpdater, |
| 36 OnDemandUpdater&()); |
| 37 MOCK_METHOD2(MaybeThrottle, |
| 38 void(const std::string& id, const base::Closure& callback)); |
| 39 MOCK_METHOD0(GetSequencedTaskRunner, |
| 40 scoped_refptr<base::SequencedTaskRunner>()); |
| 41 MOCK_CONST_METHOD2(GetComponentDetails, |
| 42 bool(const std::string& id, CrxUpdateItem* item)); |
| 43 }; |
| 44 |
| 45 } // namespace component_updater |
| 46 |
| 47 #endif // COMPONENTS_COMPONENT_UPDATER_MOCK_COMPONENT_UPDATER_SERVICE_H_ |
OLD | NEW |