Krzysztof Grobelny | b564594 | 2020-09-29 11:52:45 +0200 | [diff] [blame] | 1 | #pragma once |
2 | |||||
3 | #include "interfaces/sensor.hpp" | ||||
4 | |||||
5 | #include <gmock/gmock.h> | ||||
6 | |||||
7 | inline auto sensorIdEq(interfaces::Sensor::Id id) | ||||
8 | { | ||||
9 | using namespace testing; | ||||
10 | |||||
11 | return AllOf(Field(&interfaces::Sensor::Id::type, Eq(id.type)), | ||||
12 | Field(&interfaces::Sensor::Id::service, Eq(id.service)), | ||||
13 | Field(&interfaces::Sensor::Id::path, Eq(id.path))); | ||||
14 | } |