blob: b067c7c07743eb2a36091021a06c880202fdb12d [file] [log] [blame]
Patrick Venture98055432018-06-08 14:04:43 -07001#pragma once
2
Patrick Venture98055432018-06-08 14:04:43 -07003#include "interfaces.hpp"
4#include "sensors/sensor.hpp"
5
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07006#include <gmock/gmock.h>
7
Patrick Venture98055432018-06-08 14:04:43 -07008class SensorMock : public Sensor
9{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070010 public:
11 virtual ~SensorMock() = default;
Patrick Venture98055432018-06-08 14:04:43 -070012
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070013 SensorMock(const std::string& name, int64_t timeout) : Sensor(name, timeout)
Patrick Venturea83a3ec2020-08-04 09:52:05 -070014 {}
Patrick Venture98055432018-06-08 14:04:43 -070015
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070016 MOCK_METHOD0(read, ReadReturn());
17 MOCK_METHOD1(write, void(double));
Patrick Venture98055432018-06-08 14:04:43 -070018};