Lines Matching refs:pb_encode
201 TEST(WRITES(pb_encode(&s, IntegerArray_fields, &msg), "\x0A\x05\x01\x02\x03\x04\x05")) in main()
204 TEST(WRITES(pb_encode(&s, IntegerArray_fields, &msg), "")) in main()
207 TEST(!pb_encode(&s, IntegerArray_fields, &msg)) in main()
217 TEST(WRITES(pb_encode(&s, FloatArray_fields, &msg), in main()
221 TEST(WRITES(pb_encode(&s, FloatArray_fields, &msg), "")) in main()
224 TEST(!pb_encode(&s, FloatArray_fields, &msg)) in main()
235 TEST((msg.data_count = 10) && pb_encode(&s, FloatArray_fields, &msg)) in main()
238 TEST((msg.data_count = 11) && !pb_encode(&s, FloatArray_fields, &msg)) in main()
249 TEST(WRITES(pb_encode(&s, CallbackArray_fields, &msg), "\x08\x55")) in main()
258 TEST(WRITES(pb_encode(&s, IntegerContainer_fields, &msg), in main()
268 TEST(WRITES(pb_encode(&s, BytesMessage_fields, &msg), in main()
272 TEST(!pb_encode(&s, BytesMessage_fields, &msg)) in main()
306 TEST(WRITES(pb_encode(&s, CallbackContainer_fields, &msg), "\x0A\x02\x08\x55")) in main()
307 TEST(WRITES(pb_encode(&s, CallbackContainerContainer_fields, &msg2), in main()
316 TEST(!pb_encode(&s, CallbackContainer_fields, &msg)) in main()
318 TEST(!pb_encode(&s, CallbackContainerContainer_fields, &msg2)) in main()
330 TEST(pb_encode(&s, StringMessage_fields, &msg)); in main()
345 TEST(WRITES(pb_encode(&s, StringPointerContainer_fields, &msg), "\x0a\x00")) in main()
348 TEST(WRITES(pb_encode(&s, StringPointerContainer_fields, &msg), "\x0a\x01Z")) in main()