Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 1 | #pragma once |
2 | |||||
Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 3 | #include "pid/controller.hpp" |
4 | |||||
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 5 | #include <gmock/gmock.h> |
6 | |||||
Patrick Venture | a076487 | 2020-08-08 07:48:43 -0700 | [diff] [blame] | 7 | namespace pid_control |
8 | { | ||||
9 | |||||
Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 10 | class ControllerMock : public PIDController |
11 | { | ||||
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 12 | public: |
13 | virtual ~ControllerMock() = default; | ||||
Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 14 | |
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 15 | ControllerMock(const std::string& id, PIDZone* owner) : |
16 | PIDController(id, owner) | ||||
Patrick Venture | a83a3ec | 2020-08-04 09:52:05 -0700 | [diff] [blame] | 17 | {} |
Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 18 | |
Patrick Venture | 5f59c0f | 2018-11-11 12:55:14 -0800 | [diff] [blame] | 19 | MOCK_METHOD0(inputProc, double()); |
20 | MOCK_METHOD0(setptProc, double()); | ||||
21 | MOCK_METHOD1(outputProc, void(double)); | ||||
Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 22 | }; |
Patrick Venture | a076487 | 2020-08-08 07:48:43 -0700 | [diff] [blame] | 23 | |
24 | } // namespace pid_control |