blob: 293ec2489deec9fb21f5a25a97406b4ce122df98 [file] [log] [blame]
#pragma once
#include <cstdint>
#include <vector>
#include <gmock/gmock.h>
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>&));
};