libcryfs/test/blockstore/testutils/gtest_printers.h
Sebastian Messmer 0ec081750e Fix test cases
2017-09-11 14:37:06 +01:00

22 lines
441 B
C++

#pragma once
#ifndef MESSMER_BLOCKSTORE_TEST_TESTUTILS_GTESTPRINTERS_H_
#define MESSMER_BLOCKSTORE_TEST_TESTUTILS_GTESTPRINTERS_H_
namespace cpputils {
inline void PrintTo(const Data& /*data*/, ::std::ostream* os) {
*os << "cpputils::Data";
}
inline void PrintTo(const boost::optional<Data>& data, ::std::ostream* os) {
if (data == boost::none) {
*os << "none";
} else {
PrintTo(*data, os);
}
}
}
#endif