Patrick Venture | 9805543 | 2018-06-08 14:04:43 -0700 | [diff] [blame] | 1 | #pragma once |
2 | |||||
Patrick Venture | 9805543 | 2018-06-08 14:04:43 -0700 | [diff] [blame] | 3 | #include "interfaces.hpp" |
4 | #include "sensors/sensor.hpp" | ||||
5 | |||||
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 6 | #include <gmock/gmock.h> |
7 | |||||
Patrick Venture | 9805543 | 2018-06-08 14:04:43 -0700 | [diff] [blame] | 8 | class SensorMock : public Sensor |
9 | { | ||||
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 10 | public: |
11 | virtual ~SensorMock() = default; | ||||
Patrick Venture | 9805543 | 2018-06-08 14:04:43 -0700 | [diff] [blame] | 12 | |
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 13 | SensorMock(const std::string& name, int64_t timeout) : Sensor(name, timeout) |
Patrick Venture | a83a3ec | 2020-08-04 09:52:05 -0700 | [diff] [blame] | 14 | {} |
Patrick Venture | 9805543 | 2018-06-08 14:04:43 -0700 | [diff] [blame] | 15 | |
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 16 | MOCK_METHOD0(read, ReadReturn()); |
17 | MOCK_METHOD1(write, void(double)); | ||||
Patrick Venture | 9805543 | 2018-06-08 14:04:43 -0700 | [diff] [blame] | 18 | }; |