blob: 44cc376a8eef7ada0147e5515e510214a165eff5 [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 Venture1cde5f92018-11-07 08:26:47 -080016 MOCK_METHOD1(copyFrom, std::vector<std::uint8_t>(std::uint32_t));
Patrick Venture8c535332018-11-08 15:58:00 -080017 MOCK_METHOD1(write, bool(const std::vector<std::uint8_t>&));
18 MOCK_METHOD0(read, std::vector<std::uint8_t>());
Patrick Venture1cde5f92018-11-07 08:26:47 -080019};
20
21} // namespace blobs