1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#pragma once #include "interface.hpp" #include <gmock/gmock.h> namespace host_tool { class DataInterfaceMock : public DataInterface { public: virtual ~DataInterfaceMock() = default; MOCK_METHOD2(sendContents, bool(const std::string&, std::uint16_t)); MOCK_CONST_METHOD0(supportedType, ipmi_flash::FirmwareFlags::UpdateFlags()); }; } // namespace host_tool