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