1 #pragma once 2 #include "data_interface.hpp" 3 4 #include <cstdint> 5 #include <span> 6 #include <vector> 7 8 #include <gmock/gmock.h> 9 10 namespace bios_bmc_smm_error_logger 11 { 12 13 class DataInterfaceMock : public DataInterface 14 { 15 public: 16 MOCK_METHOD(std::vector<uint8_t>, read, 17 (const uint32_t offset, const uint32_t length), (override)); 18 MOCK_METHOD(uint32_t, write, 19 (const uint32_t offset, const std::span<const uint8_t> bytes), 20 (override)); 21 MOCK_METHOD(uint32_t, getMemoryRegionSize, (), (override)); 22 }; 23 24 } // namespace bios_bmc_smm_error_logger 25