blob: 05527b21dc7eb41a63c596ac7ea6dd874796b38e [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:
17 MOCK_METHOD1(checkAvailable, bool(const std::string&));
Jie Yang328f5202021-03-16 00:52:07 -070018 MOCK_METHOD1(readVersion, std::vector<uint8_t>(const std::string&));
Patrick Venture55646de2019-05-16 10:06:26 -070019 MOCK_METHOD2(sendFile, void(const std::string&, const std::string&));
Brandon Kim6749ba12019-09-19 13:31:37 -070020 MOCK_METHOD2(verifyFile, bool(const std::string&, bool));
Patrick Venture5f2fcc42019-06-20 07:21:05 -070021 MOCK_METHOD0(cleanArtifacts, void());
Patrick Venture55646de2019-05-16 10:06:26 -070022};
23
24} // namespace host_tool