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_METHOD(bool, open, (), (override)); 16 MOCK_METHOD(bool, close, (), (override)); 17 MOCK_METHOD(std::vector<std::uint8_t>, copyFrom, (std::uint32_t), 18 (override)); 19 MOCK_METHOD(bool, writeMeta, (const std::vector<std::uint8_t>&), 20 (override)); 21 MOCK_METHOD(std::vector<std::uint8_t>, readMeta, (), (override)); 22 }; 23 24 } // namespace ipmi_flash 25