osrm-backend/test/t/nested/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

22 lines
401 B
C++

#include <testcase.hpp>
#include "testcase.pb.h"
int main(int c, char *argv[]) {
TestNested::Test msg;
msg.set_i(77);
TestNested::Sub* sub = msg.mutable_sub();
write_to_file(msg, "data-no-message.pbf");
sub->set_i(88);
TestNested::SubSub* subsub = sub->mutable_subsub();
subsub->set_s("foobar");
subsub->set_i(99);
write_to_file(msg, "data-message.pbf");
}