/srv/osrm/osrm-backend/third_party/protozero/test/t/nested
NameSizeModeActions
data-message.pbf180644editdlrm
data-no-message.pbf40644editdlrm
nested_testcase.proto2960644editdlrm
reader_test_cases.cpp39170644editdlrm
testcase.cpp3830644editdlrm
writer_test_cases.cpp12900644editdlrm
Edit: /srv/osrm/osrm-backend/third_party/protozero/test/t/nested/testcase.cpp (383B)
#include #include "testcase.pb.h" int main() { 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"); }