Lines Matching refs:pb_decode
206 TEST((s = S(""), pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 0)) in main()
207 TEST((s = S("\x08\x01\x08\x02"), pb_decode(&s, IntegerArray_fields, &dest) in main()
210 … TEST(pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 10 && dest.data[9] == 10) in main()
212 TEST(!pb_decode(&s, IntegerArray_fields, &dest)) in main()
220 TEST((s = S("\x0A\x00"), pb_decode(&s, IntegerArray_fields, &dest) in main()
222 TEST((s = S("\x0A\x01\x01"), pb_decode(&s, IntegerArray_fields, &dest) in main()
224 …TEST((s = S("\x0A\x0A\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A"), pb_decode(&s, IntegerArray_fields… in main()
226 …TEST((s = S("\x0A\x0B\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B"), !pb_decode(&s, IntegerArray_f… in main()
229 TEST((s = S("\x0A\xFF"), !pb_decode(&s, IntegerArray_fields, &dest))) in main()
230 TEST((s = S("\x0A\x01"), !pb_decode(&s, IntegerArray_fields, &dest))) in main()
238 TEST((s = S("\x18\x0F\x08\x01"), pb_decode(&s, IntegerArray_fields, &dest) in main()
240 …TEST((s = S("\x19\x00\x00\x00\x00\x00\x00\x00\x00\x08\x01"), pb_decode(&s, IntegerArray_fields, &d… in main()
242 TEST((s = S("\x1A\x00\x08\x01"), pb_decode(&s, IntegerArray_fields, &dest) in main()
244 TEST((s = S("\x1B\x08\x01"), !pb_decode(&s, IntegerArray_fields, &dest))) in main()
245 TEST((s = S("\x1D\x00\x00\x00\x00\x08\x01"), pb_decode(&s, IntegerArray_fields, &dest) in main()
259 TEST((s = S("\x08\x55"), pb_decode(&s, CallbackArray_fields, &dest))) in main()
262 TEST((s = S("\x0A\x03\x55\x55\x55"), pb_decode(&s, CallbackArray_fields, &dest))) in main()
265 TEST((s = S("\x0A\x03\x55\x55\x55"), pb_decode(&s, CallbackArray_fields, &dest))) in main()
268 TEST((s = S("\x0D\xAA\xAA\xAA\xAA"), pb_decode(&s, CallbackArray_fields, &dest))) in main()
271 … TEST((s = S("\x09\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA"), pb_decode(&s, CallbackArray_fields, &dest))) in main()
273 TEST((s = S("\x0B\x00"), !pb_decode(&s, CallbackArray_fields, &dest))) in main()
277 TEST((s = S("\x08\x55"), !pb_decode(&s, CallbackArray_fields, &dest))) in main()
285 TEST((s = S(""), pb_decode(&s, IntegerArray_fields, &dest))) in main()
286 TEST((s = S("\x00"), pb_decode(&s, IntegerArray_fields, &dest))) in main()
287 TEST((s = S("\x08\x01"), pb_decode(&s, IntegerArray_fields, &dest))) in main()
288 TEST((s = S("\x08\x01\x00"), pb_decode(&s, IntegerArray_fields, &dest))) in main()
289 TEST((s = S("\x08"), !pb_decode(&s, IntegerArray_fields, &dest))) in main()