Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 3 of 3) sorted by relevance

/nanopb-3.4.0/tests/decode_unittests/
Ddecode_unittests.c28 pb_bytes_array_t *ref = (pb_bytes_array_t*) *arg; in callback_check() local
30 for (i = 0; i < ref->size; i++) in callback_check()
35 if (byte != ref->bytes[i]) in callback_check()
353 struct { pb_size_t size; uint8_t bytes[10]; } ref; in main() local
355 dest.data.arg = &ref; in main()
359 ref.size = 1; ref.bytes[0] = 0x55; in main()
362 ref.size = 3; ref.bytes[0] = ref.bytes[1] = ref.bytes[2] = 0x55; in main()
365 ref.size = 1; ref.bytes[0] = 0x55; in main()
368 ref.size = 4; ref.bytes[0] = ref.bytes[1] = ref.bytes[2] = ref.bytes[3] = 0xAA; in main()
371 ref.size = 8; memset(ref.bytes, 0xAA, 8); in main()
[all …]
/nanopb-3.4.0/tests/alltypes_callback/
Ddecode_alltypes_callback.c95 SubMessage *ref = *arg; in read_submsg() local
100 TEST(strcmp(submsg.substuff1, ref->substuff1) == 0); in read_submsg()
101 TEST(submsg.substuff2 == ref->substuff2); in read_submsg()
102 TEST(submsg.has_substuff3 == ref->has_substuff3); in read_submsg()
103 TEST(submsg.substuff3 == ref->substuff3); in read_submsg()
/nanopb-3.4.0/tests/alltypes_proto3_callback/
Ddecode_alltypes_callback.c95 SubMessage *ref = *arg; in read_submsg() local
100 TEST(strcmp(submsg.substuff1, ref->substuff1) == 0); in read_submsg()
101 TEST(submsg.substuff2 == ref->substuff2); in read_submsg()
102 TEST(submsg.substuff3 == ref->substuff3); in read_submsg()