/srv/osrm/osrm-backend/third_party/protozero/test/include
NameSizeModeActions
buffer.hpp40820644editdlrm
packed_access.hpp93740644editdlrm
scalar_access.hpp35410644editdlrm
test.hpp8590644editdlrm
testcase.hpp4110644editdlrm
Edit: /srv/osrm/osrm-backend/third_party/protozero/test/include/testcase.hpp (411B)
#ifndef TESTCASE_HPP #define TESTCASE_HPP #include #include #include #include template std::string write_to_file(const T& msg, const char* filename) { std::string out; msg.SerializeToString(&out); std::ofstream d{filename, std::ios_base::out|std::ios_base::binary}; assert(d.is_open()); d << out; return out; } #endif // TESTCASE_HPP