Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Patrick Venture | aceb4ba | 2018-09-27 14:50:37 -0700 | [diff] [blame] | 3 | #include <blobs-ipmid/blobs.hpp> |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 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 | |
Willy Tu | 52b75fb | 2021-04-24 11:18:36 -0700 | [diff] [blame] | 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)); |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 32 | }; |
| 33 | } // namespace blobs |