Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 1 | #pragma once |
2 | |||||
3 | #include "crc.hpp" | ||||
4 | |||||
5 | #include <gmock/gmock.h> | ||||
6 | |||||
7 | namespace blobs | ||||
8 | { | ||||
9 | |||||
10 | class CrcMock : public CrcInterface | ||||
11 | { | ||||
12 | public: | ||||
13 | virtual ~CrcMock() = default; | ||||
14 | |||||
15 | MOCK_METHOD0(clear, void()); | ||||
16 | MOCK_METHOD2(compute, void(const uint8_t*, uint32_t)); | ||||
17 | MOCK_CONST_METHOD0(get, uint16_t()); | ||||
18 | }; | ||||
19 | } // namespace blobs |