Patrick Venture | a2e8dec | 2019-03-07 09:21:46 -0800 | [diff] [blame^] | 1 | #include "blob_interface.hpp" |
| 2 | |
| 3 | #include <gmock/gmock.h> |
| 4 | |
| 5 | namespace host_tool |
| 6 | { |
| 7 | |
| 8 | class BlobInterfaceMock : public BlobInterface |
| 9 | { |
| 10 | public: |
| 11 | virtual ~BlobInterfaceMock() = default; |
| 12 | MOCK_METHOD3(writeMeta, void(std::uint16_t, std::uint32_t, |
| 13 | const std::vector<std::uint8_t>&)); |
| 14 | MOCK_METHOD3(writeBytes, void(std::uint16_t, std::uint32_t, |
| 15 | const std::vector<std::uint8_t>&)); |
| 16 | MOCK_METHOD0(getBlobList, std::vector<std::string>()); |
| 17 | MOCK_METHOD1(getStat, StatResponse(const std::string&)); |
| 18 | MOCK_METHOD2(openBlob, |
| 19 | std::uint16_t(const std::string&, |
| 20 | blobs::FirmwareBlobHandler::UpdateFlags)); |
| 21 | MOCK_METHOD1(closeBlob, void(std::uint16_t)); |
| 22 | MOCK_METHOD3(readBytes, |
| 23 | std::vector<std::uint8_t>(std::uint16_t, std::uint32_t, |
| 24 | std::uint32_t)); |
| 25 | }; |
| 26 | |
| 27 | } // namespace host_tool |