1 #pragma once
2
3 #include "interfaces/sensor.hpp"
4
5 #include <gmock/gmock.h>
6
7 namespace interfaces
8 {
9
PrintTo(const Sensor::Id & o,std::ostream * os)10 inline void PrintTo(const Sensor::Id& o, std::ostream* os)
11 {
12 (*os) << "{ type: " << o.type << ", service: " << o.service
13 << ", path: " << o.path << " }";
14 }
15
operator ==(const Sensor::Id & left,const Sensor::Id & right)16 inline 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
23