1 #pragma once 2 3 #include "data_handler.hpp" 4 5 #include <gmock/gmock.h> 6 7 namespace ipmi_flash 8 { 9 10 class DataHandlerMock : public DataInterface 11 { 12 public: 13 virtual ~DataHandlerMock() = default; 14 15 MOCK_METHOD0(open, bool()); 16 MOCK_METHOD0(close, bool()); 17 MOCK_METHOD1(copyFrom, std::vector<std::uint8_t>(std::uint32_t)); 18 MOCK_METHOD1(writeMeta, bool(const std::vector<std::uint8_t>&)); 19 MOCK_METHOD0(readMeta, std::vector<std::uint8_t>()); 20 }; 21 22 } // namespace ipmi_flash 23