1*98055435SPatrick Venture #pragma once 2*98055435SPatrick Venture 3*98055435SPatrick Venture #include <gmock/gmock.h> 4*98055435SPatrick Venture 5*98055435SPatrick Venture #include "interfaces.hpp" 6*98055435SPatrick Venture #include "sensors/sensor.hpp" 7*98055435SPatrick Venture 8*98055435SPatrick Venture class SensorMock : public Sensor 9*98055435SPatrick Venture { 10*98055435SPatrick Venture public: 11*98055435SPatrick Venture virtual ~SensorMock() = default; 12*98055435SPatrick Venture 13*98055435SPatrick Venture SensorMock(const std::string& name, int64_t timeout) 14*98055435SPatrick Venture : Sensor(name, timeout) {} 15*98055435SPatrick Venture 16*98055435SPatrick Venture MOCK_METHOD0(read, ReadReturn()); 17*98055435SPatrick Venture MOCK_METHOD1(write, void(double)); 18*98055435SPatrick Venture }; 19