blob: 41c213506a168278e0fbeaf718a1eb1e865f0ee8 [file] [log] [blame]
#pragma once
#include <cstdint>
#include <vector>
#include <gmock/gmock.h>
namespace ipmiblob
{
class CrcInterface
{
public:
virtual ~CrcInterface() = default;
virtual std::uint16_t
generateCrc(const std::vector<std::uint8_t>& data) const = 0;
};
class CrcMock : public CrcInterface
{
public:
virtual ~CrcMock() = default;
MOCK_CONST_METHOD1(generateCrc,
std::uint16_t(const std::vector<std::uint8_t>&));
};
} // namespace ipmiblob