blob: 3268e0782c35170b59b85e4260fc6c2b63719910 [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
Patrick Williams3a1c2972023-05-10 07:51:04 -050022} // namespace interfaces