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) |
| 14 | { |
| 15 | } |
Patrick Venture | 9805543 | 2018-06-08 14:04:43 -0700 | [diff] [blame] | 16 | |
Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 17 | MOCK_METHOD0(read, ReadReturn()); |
| 18 | MOCK_METHOD1(write, void(double)); |
Patrick Venture | 9805543 | 2018-06-08 14:04:43 -0700 | [diff] [blame] | 19 | }; |