osrm-backend/test/t/bytes/testcase.cpp
Michael Krasnyk 68019a1fb2 Squashed 'third_party/protozero/' content from commit d5d8debf1
git-subtree-dir: third_party/protozero
git-subtree-split: d5d8debf1b17c6bb652395957b76cde7787e5377
2018-04-19 22:03:49 +03:00

25 lines
477 B
C++

#include <testcase.hpp>
#include "testcase.pb.h"
int main(int c, char *argv[]) {
TestBytes::Test msg;
msg.set_s("");
write_to_file(msg, "data-empty.pbf");
msg.set_s("x");
write_to_file(msg, "data-one.pbf");
msg.set_s("foobar");
write_to_file(msg, "data-string.pbf");
std::string data;
data.append(1, char(1));
data.append(1, char(2));
data.append(1, char(3));
msg.set_s(data);
write_to_file(msg, "data-binary.pbf");
}