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