blob: c831c45ae7ebc30eaaf8eb2af9cbbf40c550d819 [file] [log] [blame]
Patrick Venturea78e39f2018-11-06 18:37:06 -08001#pragma once
2
3#include "image_handler.hpp"
4
5#include <gmock/gmock.h>
6
7namespace blobs
8{
9
10class ImageHandlerMock : public ImageHandlerInterface
11{
12 public:
13 virtual ~ImageHandlerMock() = default;
14
15 MOCK_METHOD1(open, bool(const std::string&));
Patrick Venture68bb1432018-11-09 20:08:48 -080016 MOCK_METHOD0(close, void());
Patrick Venture400c6362018-11-06 20:06:11 -080017 MOCK_METHOD2(write, bool(std::uint32_t, const std::vector<std::uint8_t>&));
Patrick Venturecc7d1602018-11-15 13:58:33 -080018 MOCK_METHOD0(getSize, int());
Patrick Venturea78e39f2018-11-06 18:37:06 -080019};
20
21} // namespace blobs