xref: /openbmc/telemetry/tests/src/helpers/interfaces/json_storage_helpers.hpp (revision 3a1c297a36bcd78d33ee45c603cb1b46e4619f49)
1 #pragma once
2 
3 #include "interfaces/json_storage.hpp"
4 
5 #include <gmock/gmock.h>
6 
7 namespace interfaces
8 {
9 
PrintTo(const JsonStorage::FilePath & o,std::ostream * os)10 inline void PrintTo(const JsonStorage::FilePath& o, std::ostream* os)
11 {
12     (*os) << static_cast<std::filesystem::path>(o);
13 }
PrintTo(const JsonStorage::DirectoryPath & o,std::ostream * os)14 inline void PrintTo(const JsonStorage::DirectoryPath& o, std::ostream* os)
15 {
16     (*os) << static_cast<std::filesystem::path>(o);
17 }
18 
19 } // namespace interfaces
20