Patrick Venture | 9b7c979 | 2019-03-07 09:27:26 -0800 | [diff] [blame] | 1 | #include <ipmiblob/blob_interface.hpp> |
Patrick Venture | a2e8dec | 2019-03-07 09:21:46 -0800 | [diff] [blame] | 2 | |
| 3 | #include <gmock/gmock.h> |
| 4 | |
Patrick Venture | 9b7c979 | 2019-03-07 09:27:26 -0800 | [diff] [blame] | 5 | namespace ipmiblob |
Patrick Venture | a2e8dec | 2019-03-07 09:21:46 -0800 | [diff] [blame] | 6 | { |
| 7 | |
| 8 | class BlobInterfaceMock : public BlobInterface |
| 9 | { |
| 10 | public: |
| 11 | virtual ~BlobInterfaceMock() = default; |
Willy Tu | 8da5f72 | 2021-04-24 16:30:50 -0700 | [diff] [blame] | 12 | 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 III | d46530f | 2021-11-06 17:12:07 -0700 | [diff] [blame] | 28 | MOCK_METHOD(bool, deleteBlob, (const std::string&), (override)); |
Willy Tu | 8da5f72 | 2021-04-24 16:30:50 -0700 | [diff] [blame] | 29 | MOCK_METHOD(std::vector<std::uint8_t>, readBytes, |
| 30 | (std::uint16_t, std::uint32_t, std::uint32_t), (override)); |
Patrick Venture | a2e8dec | 2019-03-07 09:21:46 -0800 | [diff] [blame] | 31 | }; |
| 32 | |
Patrick Venture | 9b7c979 | 2019-03-07 09:27:26 -0800 | [diff] [blame] | 33 | } // namespace ipmiblob |