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 | a78e39f | 2018-11-06 18:37:06 -0800 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | } // namespace blobs |