1 #pragma once 2 3 #include <blobs-ipmid/blobs.hpp> 4 5 #include <gmock/gmock.h> 6 7 namespace blobs 8 { 9 10 class BlobMock : public GenericBlobInterface 11 { 12 public: 13 virtual ~BlobMock() = default; 14 15 MOCK_METHOD(bool, canHandleBlob, (const std::string&), (override)); 16 MOCK_METHOD(std::vector<std::string>, getBlobIds, (), (override)); 17 MOCK_METHOD(bool, deleteBlob, (const std::string&), (override)); 18 MOCK_METHOD(bool, stat, (const std::string&, BlobMeta*), (override)); 19 MOCK_METHOD(bool, open, (uint16_t, uint16_t, const std::string&), 20 (override)); 21 MOCK_METHOD(std::vector<uint8_t>, read, (uint16_t, uint32_t, uint32_t), 22 (override)); 23 MOCK_METHOD(bool, write, (uint16_t, uint32_t, const std::vector<uint8_t>&), 24 (override)); 25 MOCK_METHOD(bool, writeMeta, 26 (uint16_t, uint32_t, const std::vector<uint8_t>&), (override)); 27 MOCK_METHOD(bool, commit, (uint16_t, const std::vector<uint8_t>&), 28 (override)); 29 MOCK_METHOD(bool, close, (uint16_t), (override)); 30 MOCK_METHOD(bool, stat, (uint16_t, BlobMeta*), (override)); 31 MOCK_METHOD(bool, expire, (uint16_t), (override)); 32 }; 33 } // namespace blobs 34