Patrick Venture | a78e39f | 2018-11-06 18:37:06 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "image_handler.hpp" |
| 4 | |
| 5 | #include <gmock/gmock.h> |
| 6 | |
| 7 | namespace blobs |
| 8 | { |
| 9 | |
| 10 | class ImageHandlerMock : public ImageHandlerInterface |
| 11 | { |
| 12 | public: |
| 13 | virtual ~ImageHandlerMock() = default; |
| 14 | |
| 15 | MOCK_METHOD1(open, bool(const std::string&)); |
Patrick Venture | 68bb143 | 2018-11-09 20:08:48 -0800 | [diff] [blame] | 16 | MOCK_METHOD0(close, void()); |
Patrick Venture | 400c636 | 2018-11-06 20:06:11 -0800 | [diff] [blame] | 17 | MOCK_METHOD2(write, bool(std::uint32_t, const std::vector<std::uint8_t>&)); |
Patrick Venture | cc7d160 | 2018-11-15 13:58:33 -0800 | [diff] [blame] | 18 | MOCK_METHOD0(getSize, int()); |
Patrick Venture | a78e39f | 2018-11-06 18:37:06 -0800 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | } // namespace blobs |