Patrick Venture | 1cde5f9 | 2018-11-07 08:26:47 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "data_handler.hpp" |
| 4 | |
| 5 | #include <gmock/gmock.h> |
| 6 | |
| 7 | namespace blobs |
| 8 | { |
| 9 | |
| 10 | class DataHandlerMock : public DataInterface |
| 11 | { |
| 12 | public: |
| 13 | virtual ~DataHandlerMock() = default; |
| 14 | |
Patrick Venture | 0d2a813 | 2018-11-09 11:34:21 -0800 | [diff] [blame] | 15 | MOCK_METHOD0(open, bool()); |
Patrick Venture | 0fbabf2 | 2018-11-09 11:54:12 -0800 | [diff] [blame^] | 16 | MOCK_METHOD0(close, bool()); |
Patrick Venture | 1cde5f9 | 2018-11-07 08:26:47 -0800 | [diff] [blame] | 17 | MOCK_METHOD1(copyFrom, std::vector<std::uint8_t>(std::uint32_t)); |
Patrick Venture | 8c53533 | 2018-11-08 15:58:00 -0800 | [diff] [blame] | 18 | MOCK_METHOD1(write, bool(const std::vector<std::uint8_t>&)); |
| 19 | MOCK_METHOD0(read, std::vector<std::uint8_t>()); |
Patrick Venture | 1cde5f9 | 2018-11-07 08:26:47 -0800 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | } // namespace blobs |