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 | 5f59c0f | 2018-11-11 12:55:14 -0800 | [diff] [blame] | 17 | MOCK_METHOD0(inputProc, double()); |
| 18 | MOCK_METHOD0(setptProc, double()); |
| 19 | MOCK_METHOD1(outputProc, void(double)); |
Patrick Venture | 4bd518d | 2018-06-12 10:47:15 -0700 | [diff] [blame] | 20 | }; |