Patrick Venture | 0088759 | 2018-12-11 10:57:06 -0800 | [diff] [blame] | 1 | #include "blob_interface.hpp" |
| 2 | |
Patrick Venture | 0533d0b | 2018-12-13 08:48:24 -0800 | [diff] [blame] | 3 | #include <gmock/gmock.h> |
| 4 | |
Patrick Venture | 9b534f0 | 2018-12-13 16:10:02 -0800 | [diff] [blame] | 5 | namespace host_tool |
| 6 | { |
| 7 | |
Patrick Venture | 0088759 | 2018-12-11 10:57:06 -0800 | [diff] [blame] | 8 | class BlobInterfaceMock : public BlobInterface |
| 9 | { |
| 10 | public: |
| 11 | virtual ~BlobInterfaceMock() = default; |
| 12 | MOCK_METHOD0(getBlobList, std::vector<std::string>()); |
Patrick Venture | 0bf8bf0 | 2018-12-12 20:43:25 -0800 | [diff] [blame] | 13 | MOCK_METHOD1(getStat, StatResponse(const std::string&)); |
Patrick Venture | 0533d0b | 2018-12-13 08:48:24 -0800 | [diff] [blame] | 14 | MOCK_METHOD2(openBlob, |
| 15 | std::uint16_t(const std::string&, |
| 16 | blobs::FirmwareBlobHandler::UpdateFlags)); |
Patrick Venture | 9a5ce56 | 2018-12-14 18:56:04 -0800 | [diff] [blame] | 17 | MOCK_METHOD1(closeBlob, void(std::uint16_t)); |
Patrick Venture | 0088759 | 2018-12-11 10:57:06 -0800 | [diff] [blame] | 18 | }; |
Patrick Venture | 9b534f0 | 2018-12-13 16:10:02 -0800 | [diff] [blame] | 19 | |
| 20 | } // namespace host_tool |