blob: 70fc91a4a4b87583d6fd2403f8f7a2e69c93f556 [file] [log] [blame]
Patrick Venture55646de2019-05-16 10:06:26 -07001#pragma once
2
3#include "updater.hpp"
4
Jie Yang328f5202021-03-16 00:52:07 -07005#include <cstdint>
Patrick Venture55646de2019-05-16 10:06:26 -07006#include <string>
Jie Yang328f5202021-03-16 00:52:07 -07007#include <vector>
Patrick Venture55646de2019-05-16 10:06:26 -07008
9#include <gmock/gmock.h>
10
11namespace host_tool
12{
13
Patrick Venture1f09d412019-06-19 16:01:06 -070014class UpdateHandlerMock : public UpdateHandlerInterface
Patrick Venture55646de2019-05-16 10:06:26 -070015{
16 public:
Willy Tuf4504862021-04-24 23:22:19 -070017 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 Venture55646de2019-05-16 10:06:26 -070024};
25
26} // namespace host_tool