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