14 SimpleMessage msg = SimpleMessage_init_zero;
15 ExtMessage extmsg = ExtMessage_init_zero;
19 msg.has_number =
true;
21 extmsg.has_second_number =
true;
22 extmsg.second_number = 5678;
24 msg.extensions = &ext;
25 ext.type = &ExtMessage_ext_message_ext;
31 msglen = stream.bytes_written;
46 SimpleMessage msg = SimpleMessage_init_zero;
47 ExtMessage extmsg = ExtMessage_init_zero;
52 msg.extensions = &ext;
53 ext.type = &ExtMessage_ext_message_ext;
61 TEST(msg.number == 1234);
63 TEST(extmsg.has_second_number);
64 TEST(extmsg.second_number == 5678);