blob: 293ec2489deec9fb21f5a25a97406b4ce122df98 [file] [log] [blame]
Patrick Venture123b5c02019-03-05 14:01:00 -08001#pragma once
2
3#include <cstdint>
4#include <vector>
5
6#include <gmock/gmock.h>
7
8class CrcInterface
9{
10 public:
11 virtual ~CrcInterface() = default;
12
13 virtual std::uint16_t
14 generateCrc(const std::vector<std::uint8_t>& data) const = 0;
15};
16
17class CrcMock : public CrcInterface
18{
19 public:
20 virtual ~CrcMock() = default;
21 MOCK_CONST_METHOD1(generateCrc,
22 std::uint16_t(const std::vector<std::uint8_t>&));
23};