/nanopb-2.7.6/tests/enum_sizes/ |
D | enumsizes_unittests.c | 19 PackedEnums msg2; in main() local 34 TEST(pb_decode(&s, PackedEnums_fields, &msg2)); in main() 36 TEST(msg1.u8_min == (int)msg2.u8_min); in main() 37 TEST(msg1.u8_max == (int)msg2.u8_max); in main() 38 TEST(msg1.i8_min == (int)msg2.i8_min); in main() 39 TEST(msg1.i8_max == (int)msg2.i8_max); in main() 40 TEST(msg1.u16_min == (int)msg2.u16_min); in main() 41 TEST(msg1.u16_max == (int)msg2.u16_max); in main() 42 TEST(msg1.i16_min == (int)msg2.i16_min); in main() 43 TEST(msg1.i16_max == (int)msg2.i16_max); in main() [all …]
|
/nanopb-2.7.6/tests/regression/issue_256/ |
D | submsg_array.c | 26 TestMessage msg2 = TestMessage_init_zero; in main() local 28 TEST(pb_decode(&istream, TestMessage_fields, &msg2)); in main() 29 TEST(msg2.submsg.rep_uint32_count == 3); in main() 30 TEST(msg2.submsg.rep_uint32[0] == 0); in main() 31 TEST(msg2.submsg.rep_uint32[1] == 1); in main() 32 TEST(msg2.submsg.rep_uint32[2] == 2); in main()
|
/nanopb-2.7.6/tests/options/ |
D | options.c | 12 HasFieldMessage msg2 = HasFieldMessage_init_zero; in main() local 22 TEST(msg2.has_present == false); in main() 23 TEST(msg2.has_missing == false); in main() 24 TEST(msg2.has_normal == false); in main()
|
/nanopb-2.7.6/tests/intsizes/ |
D | intsizes_unittests.c | 20 IntSizes msg2 = IntSizes_init_zero; \ 43 TEST(pb_decode(&s, IntSizes_fields, &msg2) == expected_result); \ 46 TEST( (int64_t)msg2.req_int8 == int8); \ 47 TEST((uint64_t)msg2.req_uint8 == uint8); \ 48 TEST( (int64_t)msg2.req_sint8 == sint8); \ 49 TEST( (int64_t)msg2.req_int16 == int16); \ 50 TEST((uint64_t)msg2.req_uint16 == uint16); \ 51 TEST( (int64_t)msg2.req_sint16 == sint16); \ 52 TEST( (int64_t)msg2.req_int32 == int32); \ 53 TEST((uint64_t)msg2.req_uint32 == uint32); \ [all …]
|
/nanopb-2.7.6/tests/inline/ |
D | inline_unittests.c | 40 Message2 msg2 = {true, {0}}; in main() local 48 msg2.data[i] = i; in main() 51 TEST(pb_encode(&ostream, Message2_fields, &msg2)); in main() 57 TEST(memcmp(&msg2_deserialized, &msg2, sizeof(msg2)) == 0); in main() 66 TEST(memcmp(&msg2_deserialized, &msg2, sizeof(msg2)) != 0); in main()
|
/nanopb-2.7.6/tests/mem_release/ |
D | mem_release.c | 143 msg.msgs.msg2.dynamic_str = "ABCD"; in test_OneofMessage() 144 msg.msgs.msg2.dynamic_str_arr_count = 1; in test_OneofMessage() 145 msg.msgs.msg2.dynamic_str_arr = &teststr; in test_OneofMessage() 162 msg.msgs.msg2.dynamic_str = "EFGH"; in test_OneofMessage() 163 msg.msgs.msg2.dynamic_str_arr_count = 1; in test_OneofMessage() 164 msg.msgs.msg2.dynamic_str_arr = &teststr; in test_OneofMessage() 187 TEST(msg.msgs.msg2.dynamic_str); in test_OneofMessage() 188 TEST(strcmp(msg.msgs.msg2.dynamic_str, "EFGH") == 0); in test_OneofMessage() 189 TEST(msg.msgs.msg2.dynamic_str_arr != NULL); in test_OneofMessage() 190 TEST(msg.msgs.msg2.dynamic_str_arr_count == 2); in test_OneofMessage() [all …]
|
D | mem_release.proto | 32 SubMessage msg2 = 3; field
|
/nanopb-2.7.6/tests/regression/issue_166/ |
D | enum_encoded_size.c | 13 UnsignedMsg msg2; in main() local 35 msg2.value = UnsignedEnum_UE_MAX; in main() 37 TEST(pb_encode(&s, UnsignedMsg_fields, &msg2)); in main()
|
/nanopb-2.7.6/tests/regression/issue_494/ |
D | oneof.proto | 10 SubMessage2 msg2 = 2; field
|
/nanopb-2.7.6/tests/regression/issue_524/ |
D | oneof.proto | 12 submessage.SubMessage2 msg2 = 2; field
|
/nanopb-2.7.6/tests/multiple_files/subdir/ |
D | multifile2.proto | 19 SmallMessage msg2 = 2; field
|
/nanopb-2.7.6/examples/using_union_messages/ |
D | unionproto.proto | 29 optional MsgType2 msg2 = 2; field
|
/nanopb-2.7.6/tests/regression/issue_141/ |
D | testproto.proto | 26 MyMessage2 msg2 = 3; field
|
/nanopb-2.7.6/tests/encode_unittests/ |
D | encode_unittests.c | 373 CallbackContainerContainer msg2; in main() local 377 msg2.submsg.submsg.data.funcs.encode = &fieldcallback; in main() 381 TEST(WRITES(pb_encode(&s, CallbackContainerContainer_fields, &msg2), in main() 387 msg2.submsg.submsg.data.funcs.encode = &crazyfieldcallback; in main() 388 msg2.submsg.submsg.data.arg = &state; in main() 392 TEST(!pb_encode(&s, CallbackContainerContainer_fields, &msg2)) in main()
|
/nanopb-2.7.6/docs/ |
D | concepts.md | 424 MsgType2 msg2 = 5; 440 MsgType2 msg2; 450 msg.payload.msg2.value = true;
|