blob: 942103e86cc5c412473eb6ac51addbd7f28502ff [file] [log] [blame]
Brandon Kimfcbc3db2022-06-06 21:26:18 -07001#pragma once
2#include "data_interface.hpp"
3
4#include <cstdint>
5#include <span>
6#include <vector>
7
8#include <gmock/gmock.h>
9
10namespace bios_bmc_smm_error_logger
11{
12
13class 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