blob: 968fdd0bc642db9e773aab0770b71db04bf4c98b [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;
Willy Tu8da5f722021-04-24 16:30:50 -070012 MOCK_METHOD(void, commit, (std::uint16_t, const std::vector<std::uint8_t>&),
13 (override));
14 MOCK_METHOD(void, writeMeta,
15 (std::uint16_t, std::uint32_t,
16 const std::vector<std::uint8_t>&),
17 (override));
18 MOCK_METHOD(void, writeBytes,
19 (std::uint16_t, std::uint32_t,
20 const std::vector<std::uint8_t>&),
21 (override));
22 MOCK_METHOD(std::vector<std::string>, getBlobList, (), (override));
23 MOCK_METHOD(StatResponse, getStat, (const std::string&), (override));
24 MOCK_METHOD(StatResponse, getStat, (std::uint16_t), (override));
25 MOCK_METHOD(std::uint16_t, openBlob, (const std::string&, std::uint16_t),
26 (override));
27 MOCK_METHOD(void, closeBlob, (std::uint16_t), (override));
William A. Kennington IIId46530f2021-11-06 17:12:07 -070028 MOCK_METHOD(bool, deleteBlob, (const std::string&), (override));
Willy Tu8da5f722021-04-24 16:30:50 -070029 MOCK_METHOD(std::vector<std::uint8_t>, readBytes,
30 (std::uint16_t, std::uint32_t, std::uint32_t), (override));
Patrick Venturea2e8dec2019-03-07 09:21:46 -080031};
32
Patrick Venture9b7c9792019-03-07 09:27:26 -080033} // namespace ipmiblob