1 #pragma once 2 3 #include "pid/zone_interface.hpp" 4 5 #include <string> 6 7 #include <gmock/gmock.h> 8 9 namespace pid_control 10 { 11 12 class ZoneMock : public ZoneInterface 13 { 14 public: 15 virtual ~ZoneMock() = default; 16 17 MOCK_METHOD1(getCachedValue, double(const std::string&)); 18 MOCK_METHOD1(addSetPoint, void(double)); 19 MOCK_METHOD1(addRPMCeiling, void(double)); 20 MOCK_CONST_METHOD0(getMaxSetPointRequest, double()); 21 MOCK_CONST_METHOD0(getFailSafeMode, bool()); 22 MOCK_CONST_METHOD0(getFailSafePercent, double()); 23 MOCK_METHOD1(getSensor, Sensor*(const std::string&)); 24 }; 25 26 } // namespace pid_control 27