Home
last modified time | relevance | path

Searched refs:buffer2 (Results 1 – 5 of 5) sorted by relevance

/nanopb-3.4.0/tests/namingstyle/
Dtest_naming_style_c.c58 uint8_t buffer2[256]; in main() local
60 pb_ostream_t ostream2 = pb_ostream_from_buffer(buffer2, sizeof(buffer2)); in main()
73 TEST(memcmp(buffer1, buffer2, ostream1.bytes_written) == 0); in main()
/nanopb-3.4.0/tests/intsizes/
Dintsizes_unittests.c17 uint8_t buffer1[128], buffer2[128]; \
63 pb_ostream_t s = pb_ostream_from_buffer(buffer2, sizeof(buffer2)); \
66 TEST(memcmp(buffer1, buffer2, msgsize) == 0); \
/nanopb-3.4.0/tests/mem_release/
Dmem_release.c91 uint8_t buffer2[256]; in test_TestMessage() local
92 pb_ostream_t ostream = pb_ostream_from_buffer(buffer2, sizeof(buffer2)); in test_TestMessage()
95 TEST(memcmp(buffer, buffer2, msgsize) == 0); in test_TestMessage()
/nanopb-3.4.0/tests/decode_unittests/
Ddecode_unittests.c48 uint8_t buffer2[sizeof(buffer1)]; in main() local
52 TEST(pb_read(&stream, buffer2, 6)) in main()
53 TEST(memcmp(buffer2, "foobar", 6) == 0) in main()
55 TEST(pb_read(&stream, buffer2 + 6, stream.bytes_left)) in main()
56 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0) in main()
58 TEST(!pb_read(&stream, buffer2, 1)) in main()
/nanopb-3.4.0/tests/encode_unittests/
Dencode_unittests.c55 uint8_t buffer2[sizeof(buffer1)]; in main() local
56 pb_ostream_t stream = pb_ostream_from_buffer(buffer2, sizeof(buffer1)); in main()
60 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0); in main()