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; |
Patrick Venture | 8865e40 | 2019-05-14 13:29:10 -0700 | [diff] [blame] | 12 | MOCK_METHOD2(commit, void(std::uint16_t, const std::vector<std::uint8_t>&)); |
Patrick Venture | a2e8dec | 2019-03-07 09:21:46 -0800 | [diff] [blame] | 13 | MOCK_METHOD3(writeMeta, void(std::uint16_t, std::uint32_t, |
| 14 | const std::vector<std::uint8_t>&)); |
| 15 | MOCK_METHOD3(writeBytes, void(std::uint16_t, std::uint32_t, |
| 16 | const std::vector<std::uint8_t>&)); |
| 17 | MOCK_METHOD0(getBlobList, std::vector<std::string>()); |
| 18 | MOCK_METHOD1(getStat, StatResponse(const std::string&)); |
Patrick Venture | 16a99a6 | 2019-05-03 17:21:30 -0700 | [diff] [blame] | 19 | MOCK_METHOD1(getStat, StatResponse(std::uint16_t)); |
Patrick Venture | 9b7c979 | 2019-03-07 09:27:26 -0800 | [diff] [blame] | 20 | MOCK_METHOD2(openBlob, std::uint16_t(const std::string&, std::uint16_t)); |
Patrick Venture | a2e8dec | 2019-03-07 09:21:46 -0800 | [diff] [blame] | 21 | MOCK_METHOD1(closeBlob, void(std::uint16_t)); |
Brandon Kim | cc4ef0c | 2019-10-18 10:08:37 -0700 | [diff] [blame] | 22 | MOCK_METHOD1(deleteBlob, void(const std::string&)); |
Patrick Venture | a2e8dec | 2019-03-07 09:21:46 -0800 | [diff] [blame] | 23 | MOCK_METHOD3(readBytes, |
| 24 | std::vector<std::uint8_t>(std::uint16_t, std::uint32_t, |
| 25 | std::uint32_t)); |
| 26 | }; |
| 27 | |
Patrick Venture | 9b7c979 | 2019-03-07 09:27:26 -0800 | [diff] [blame] | 28 | } // namespace ipmiblob |