blob: c3b4f4c378f96b430ef76cfdbe77136344c87001 [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 Venture00887592018-12-11 10:57:06 -080017};
Patrick Venture9b534f02018-12-13 16:10:02 -080018
19} // namespace host_tool