blob: 2cc8d28c61fc8a4d30393b26e33e7af06901cdbc [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)
14 {
15 }
Patrick Venture98055432018-06-08 14:04:43 -070016
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070017 MOCK_METHOD0(read, ReadReturn());
18 MOCK_METHOD1(write, void(double));
Patrick Venture98055432018-06-08 14:04:43 -070019};