Patrick Venture | 55646de | 2019-05-16 10:06:26 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "updater.hpp" |
| 4 | |
Jie Yang | 328f520 | 2021-03-16 00:52:07 -0700 | [diff] [blame] | 5 | #include <cstdint> |
Patrick Venture | 55646de | 2019-05-16 10:06:26 -0700 | [diff] [blame] | 6 | #include <string> |
Jie Yang | 328f520 | 2021-03-16 00:52:07 -0700 | [diff] [blame] | 7 | #include <vector> |
Patrick Venture | 55646de | 2019-05-16 10:06:26 -0700 | [diff] [blame] | 8 | |
| 9 | #include <gmock/gmock.h> |
| 10 | |
| 11 | namespace host_tool |
| 12 | { |
| 13 | |
Patrick Venture | 1f09d41 | 2019-06-19 16:01:06 -0700 | [diff] [blame] | 14 | class UpdateHandlerMock : public UpdateHandlerInterface |
Patrick Venture | 55646de | 2019-05-16 10:06:26 -0700 | [diff] [blame] | 15 | { |
| 16 | public: |
Willy Tu | f450486 | 2021-04-24 23:22:19 -0700 | [diff] [blame] | 17 | MOCK_METHOD(bool, checkAvailable, (const std::string&), (override)); |
| 18 | MOCK_METHOD(std::vector<uint8_t>, readVersion, (const std::string&), |
| 19 | (override)); |
| 20 | MOCK_METHOD(void, sendFile, (const std::string&, const std::string&), |
| 21 | (override)); |
| 22 | MOCK_METHOD(bool, verifyFile, (const std::string&, bool), (override)); |
| 23 | MOCK_METHOD(void, cleanArtifacts, (), (override)); |
Patrick Venture | 55646de | 2019-05-16 10:06:26 -0700 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | } // namespace host_tool |