blob: ae8c9c72d7f6ac950086b44ea7192af82e78dad0 [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 Venture74304642019-01-17 09:31:04 -080018 MOCK_METHOD1(writeMeta, bool(const std::vector<std::uint8_t>&));
19 MOCK_METHOD0(readMeta, std::vector<std::uint8_t>());
Patrick Venture1cde5f92018-11-07 08:26:47 -080020};
21
22} // namespace blobs