blob: eff241f08f7e1618f8501bfb7f50491ee06adc86 [file] [log] [blame]
Patrick Venture00887592018-12-11 10:57:06 -08001#include "blob_interface.hpp"
2
Patrick Venture0533d0b2018-12-13 08:48:24 -08003#include <gmock/gmock.h>
4
Patrick Venture9b534f02018-12-13 16:10:02 -08005namespace host_tool
6{
7
Patrick Venture00887592018-12-11 10:57:06 -08008class BlobInterfaceMock : public BlobInterface
9{
10 public:
11 virtual ~BlobInterfaceMock() = default;
12 MOCK_METHOD0(getBlobList, std::vector<std::string>());
Patrick Venture0bf8bf02018-12-12 20:43:25 -080013 MOCK_METHOD1(getStat, StatResponse(const std::string&));
Patrick Venture0533d0b2018-12-13 08:48:24 -080014 MOCK_METHOD2(openBlob,
15 std::uint16_t(const std::string&,
16 blobs::FirmwareBlobHandler::UpdateFlags));
Patrick Venture9a5ce562018-12-14 18:56:04 -080017 MOCK_METHOD1(closeBlob, void(std::uint16_t));
Patrick Venture00887592018-12-11 10:57:06 -080018};
Patrick Venture9b534f02018-12-13 16:10:02 -080019
20} // namespace host_tool