blob: ef2eb6bbec12774c76e6808a5bcdd0d795d52ac2 [file] [log] [blame]
Krzysztof Grobelnyd2238192020-12-02 09:27:28 +00001#pragma once
2
Krzysztof Grobelny9f9ff902021-03-05 14:57:53 +00003#include "interfaces/types.hpp"
Krzysztof Grobelnyd2238192020-12-02 09:27:28 +00004
5#include <ostream>
6
7#include <gmock/gmock.h>
8
9namespace utils
10{
11
12inline void PrintTo(const LabeledSensorParameters& o, std::ostream* os)
13{
14 using testing::PrintToString;
15
16 (*os) << "{ ";
17 (*os) << utils::tstring::Service::str() << ": "
18 << PrintToString(o.at_label<utils::tstring::Service>()) << ", ";
19 (*os) << utils::tstring::Path::str() << ": "
20 << PrintToString(o.at_label<utils::tstring::Path>());
21 (*os) << " }";
22}
23
24} // namespace utils