blob: f95250435d9be068996734896a583bf93200021b [file] [log] [blame]
Krzysztof Grobelnyb5645942020-09-29 11:52:45 +02001#pragma once
2
3#include "interfaces/sensor.hpp"
4
5#include <gmock/gmock.h>
6
7inline 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}