blob: 44c3aae5b040f9c2cc94bf63e4031534d8b9594e [file] [log] [blame]
Patrick Venture1cde5f92018-11-07 08:26:47 -08001#pragma once
2
3#include "data_handler.hpp"
4
5#include <gmock/gmock.h>
6
7namespace blobs
8{
9
10class DataHandlerMock : public DataInterface
11{
12 public:
13 virtual ~DataHandlerMock() = default;
14
Patrick Venture0d2a8132018-11-09 11:34:21 -080015 MOCK_METHOD0(open, bool());
Patrick Venture0fbabf22018-11-09 11:54:12 -080016 MOCK_METHOD0(close, bool());
Patrick Venture1cde5f92018-11-07 08:26:47 -080017 MOCK_METHOD1(copyFrom, std::vector<std::uint8_t>(std::uint32_t));
Patrick Venture8c535332018-11-08 15:58:00 -080018 MOCK_METHOD1(write, bool(const std::vector<std::uint8_t>&));
19 MOCK_METHOD0(read, std::vector<std::uint8_t>());
Patrick Venture1cde5f92018-11-07 08:26:47 -080020};
21
22} // namespace blobs