198055435SPatrick Venture #pragma once 298055435SPatrick Venture 398055435SPatrick Venture #include "interfaces.hpp" 498055435SPatrick Venture #include "sensors/sensor.hpp" 598055435SPatrick Venture 6da4a5dd1SPatrick Venture #include <gmock/gmock.h> 7da4a5dd1SPatrick Venture 8*a076487aSPatrick Venture namespace pid_control 9*a076487aSPatrick Venture { 10*a076487aSPatrick Venture 1198055435SPatrick Venture class SensorMock : public Sensor 1298055435SPatrick Venture { 1398055435SPatrick Venture public: 1498055435SPatrick Venture virtual ~SensorMock() = default; 1598055435SPatrick Venture 16da4a5dd1SPatrick Venture SensorMock(const std::string& name, int64_t timeout) : Sensor(name, timeout) 17a83a3eccSPatrick Venture {} 1898055435SPatrick Venture 1998055435SPatrick Venture MOCK_METHOD0(read, ReadReturn()); 2098055435SPatrick Venture MOCK_METHOD1(write, void(double)); 2198055435SPatrick Venture }; 22*a076487aSPatrick Venture 23*a076487aSPatrick Venture } // namespace pid_control 24