blob: a5c0331582a7665d4761f17b71696395ae841dff [file] [log] [blame]
#pragma once
#include "interfaces/sensor_listener.hpp"
#include <gmock/gmock.h>
class SensorListenerMock : public interfaces::SensorListener
{
public:
void delegateIgnoringArgs()
{
using namespace testing;
ON_CALL(*this, sensorUpdated(_, _))
.WillByDefault(InvokeWithoutArgs([this] { sensorUpdated(); }));
ON_CALL(*this, sensorUpdated(_, _, _))
.WillByDefault(InvokeWithoutArgs([this] { sensorUpdated(); }));
}
MOCK_METHOD(void, sensorUpdated, (interfaces::Sensor&, Milliseconds),
(override));
MOCK_METHOD(void, sensorUpdated,
(interfaces::Sensor&, Milliseconds, double), (override));
MOCK_METHOD(void, sensorUpdated, (), ());
};