blob: 06b0c5ab27efe03b68f54dcea3333490e8c1cf5e [file] [log] [blame]
Patrick Ventureef3aead2018-09-12 08:53:29 -07001#pragma once
2
Patrick Ventureaceb4ba2018-09-27 14:50:37 -07003#include <blobs-ipmid/blobs.hpp>
Patrick Ventureef3aead2018-09-12 08:53:29 -07004
5#include <gmock/gmock.h>
6
7namespace blobs
8{
9
10class BlobMock : public GenericBlobInterface
11{
12 public:
13 virtual ~BlobMock() = default;
14
Willy Tu52b75fb2021-04-24 11:18:36 -070015 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));
Patrick Ventureef3aead2018-09-12 08:53:29 -070032};
33} // namespace blobs