Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 1 | #pragma once |
2 | |||||
3 | #include <gmock/gmock.h> | ||||
4 | |||||
5 | #include "pid/controller.hpp" | ||||
6 | |||||
7 | class ControllerMock : public PIDController | ||||
8 | { | ||||
9 | public: | ||||
10 | virtual ~ControllerMock() = default; | ||||
11 | |||||
12 | ControllerMock(const std::string& id, PIDZone* owner) | ||||
13 | : PIDController(id, owner) {} | ||||
14 | |||||
15 | MOCK_METHOD0(input_proc, float()); | ||||
16 | MOCK_METHOD0(setpt_proc, float()); | ||||
17 | MOCK_METHOD1(output_proc, void(float)); | ||||
18 | }; |