Searched refs:buffer1 (Results 1 – 4 of 4) sorted by relevance
/nanopb-3.4.0/tests/namingstyle/ |
D | test_naming_style_c.c | 57 uint8_t buffer1[256]; in main() local 59 pb_ostream_t ostream1 = pb_ostream_from_buffer(buffer1, sizeof(buffer1)); in main() 66 istream = pb_istream_from_buffer(buffer1, ostream1.bytes_written); in main() 73 TEST(memcmp(buffer1, buffer2, ostream1.bytes_written) == 0); in main()
|
/nanopb-3.4.0/tests/intsizes/ |
D | intsizes_unittests.c | 17 uint8_t buffer1[128], buffer2[128]; \ 36 pb_ostream_t s = pb_ostream_from_buffer(buffer1, sizeof(buffer1)); \ 42 pb_istream_t s = pb_istream_from_buffer(buffer1, msgsize); \ 66 TEST(memcmp(buffer1, buffer2, msgsize) == 0); \
|
/nanopb-3.4.0/tests/encode_unittests/ |
D | encode_unittests.c | 54 uint8_t buffer1[] = "foobartest1234"; in main() local 55 uint8_t buffer2[sizeof(buffer1)]; in main() 56 pb_ostream_t stream = pb_ostream_from_buffer(buffer2, sizeof(buffer1)); in main() 59 TEST(pb_write(&stream, buffer1, sizeof(buffer1))); in main() 60 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0); in main() 61 TEST(!pb_write(&stream, buffer1, 1)); in main() 62 TEST(stream.bytes_written == sizeof(buffer1)); in main() 66 uint8_t buffer1[] = "xxxxxxx"; in main() local 70 TEST(pb_write(&stream, buffer1, 5)); in main() 71 buffer1[0] = 'a'; in main() [all …]
|
/nanopb-3.4.0/tests/decode_unittests/ |
D | decode_unittests.c | 47 uint8_t buffer1[] = "foobartest1234"; in main() local 48 uint8_t buffer2[sizeof(buffer1)]; in main() 49 pb_istream_t stream = pb_istream_from_buffer(buffer1, sizeof(buffer1)); in main() 54 TEST(stream.bytes_left == sizeof(buffer1) - 6) in main() 56 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0) in main()
|