blob: 9b59d22703050df0a03fe317cdc2a9075387e36e [file] [log] [blame]
Krzysztof Grobelny6ccfcbf2020-11-04 09:31:36 +01001#pragma once
2
3#include "interfaces/sensor.hpp"
4
5#include <gmock/gmock.h>
6
7namespace interfaces
8{
9
10inline void PrintTo(const Sensor::Id& o, std::ostream* os)
11{
12 (*os) << "{ type: " << o.type << ", service: " << o.service
13 << ", path: " << o.path << " }";
14}
15
16inline bool operator==(const Sensor::Id& left, const Sensor::Id& right)
17{
18 return std::tie(left.type, left.service, left.path) ==
19 std::tie(right.type, right.service, right.path);
20}
21
22} // namespace interfaces