blob: 97f37df89f4adc3c778bdfff48f21f2b19407348 [file] [log] [blame]
#include <ipmiblob/blob_interface.hpp>
#include <gmock/gmock.h>
namespace ipmiblob
{
class BlobInterfaceMock : public BlobInterface
{
public:
virtual ~BlobInterfaceMock() = default;
MOCK_METHOD3(writeMeta, void(std::uint16_t, std::uint32_t,
const std::vector<std::uint8_t>&));
MOCK_METHOD3(writeBytes, void(std::uint16_t, std::uint32_t,
const std::vector<std::uint8_t>&));
MOCK_METHOD0(getBlobList, std::vector<std::string>());
MOCK_METHOD1(getStat, StatResponse(const std::string&));
MOCK_METHOD2(openBlob, std::uint16_t(const std::string&, std::uint16_t));
MOCK_METHOD1(closeBlob, void(std::uint16_t));
MOCK_METHOD3(readBytes,
std::vector<std::uint8_t>(std::uint16_t, std::uint32_t,
std::uint32_t));
};
} // namespace ipmiblob