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 | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 7 | class ControllerMock : public PIDController |
| 8 | { |
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 9 | public: |
| 10 | virtual ~ControllerMock() = default; |
Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 11 | |
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 12 | ControllerMock(const std::string& id, PIDZone* owner) : |
| 13 | PIDController(id, owner) |
| 14 | { |
| 15 | } |
Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 16 | |
Patrick Venture | 563a356 | 2018-10-30 09:31:26 -0700 | [diff] [blame] | 17 | MOCK_METHOD0(inputProc, float()); |
| 18 | MOCK_METHOD0(setptProc, float()); |
| 19 | MOCK_METHOD1(outputProc, void(float)); |
Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 20 | }; |