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