1 #pragma once 2 3 #include "pid/controller.hpp" 4 5 #include <gmock/gmock.h> 6 7 namespace pid_control 8 { 9 10 class ControllerMock : public PIDController 11 { 12 public: 13 virtual ~ControllerMock() = default; 14 15 ControllerMock(const std::string& id, DbusPidZone* owner) : 16 PIDController(id, owner) 17 {} 18 19 MOCK_METHOD0(inputProc, double()); 20 MOCK_METHOD0(setptProc, double()); 21 MOCK_METHOD1(outputProc, void(double)); 22 }; 23 24 } // namespace pid_control 25