osrm-backend/third_party/protozero/test/t/nested/testcase.cpp

23 lines
383 B
C++
Raw Normal View History

#include <testcase.hpp>
2020-10-16 03:25:52 -04:00
#include "testcase.pb.h"
2020-10-16 03:25:52 -04:00
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");
}