blob: 97f37df89f4adc3c778bdfff48f21f2b19407348 [file] [log] [blame]
Patrick Venture9b7c9792019-03-07 09:27:26 -08001#include <ipmiblob/blob_interface.hpp>
Patrick Venturea2e8dec2019-03-07 09:21:46 -08002
3#include <gmock/gmock.h>
4
Patrick Venture9b7c9792019-03-07 09:27:26 -08005namespace ipmiblob
Patrick Venturea2e8dec2019-03-07 09:21:46 -08006{
7
8class BlobInterfaceMock : public BlobInterface
9{
10 public:
11 virtual ~BlobInterfaceMock() = default;
12 MOCK_METHOD3(writeMeta, void(std::uint16_t, std::uint32_t,
13 const std::vector<std::uint8_t>&));
14 MOCK_METHOD3(writeBytes, void(std::uint16_t, std::uint32_t,
15 const std::vector<std::uint8_t>&));
16 MOCK_METHOD0(getBlobList, std::vector<std::string>());
17 MOCK_METHOD1(getStat, StatResponse(const std::string&));
Patrick Venture9b7c9792019-03-07 09:27:26 -080018 MOCK_METHOD2(openBlob, std::uint16_t(const std::string&, std::uint16_t));
Patrick Venturea2e8dec2019-03-07 09:21:46 -080019 MOCK_METHOD1(closeBlob, void(std::uint16_t));
20 MOCK_METHOD3(readBytes,
21 std::vector<std::uint8_t>(std::uint16_t, std::uint32_t,
22 std::uint32_t));
23};
24
Patrick Venture9b7c9792019-03-07 09:27:26 -080025} // namespace ipmiblob