Home
last modified time | relevance | path

Searched refs:pb_decode (Results 1 – 25 of 163) sorted by relevance

1234567

/external/grpc-grpc/third_party/nanopb/tests/decode_unittests/
Ddecode_unittests.c222 TEST((s = S(""), pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 0)) in main()
223 TEST((s = S("\x08\x01\x08\x02"), pb_decode(&s, IntegerArray_fields, &dest) in main()
226 … TEST(pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 10 && dest.data[9] == 10) in main()
228 TEST(!pb_decode(&s, IntegerArray_fields, &dest)) in main()
236 TEST((s = S("\x0A\x00"), pb_decode(&s, IntegerArray_fields, &dest) in main()
238 TEST((s = S("\x0A\x01\x01"), pb_decode(&s, IntegerArray_fields, &dest) in main()
240 …TEST((s = S("\x0A\x0A\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A"), pb_decode(&s, IntegerArray_fields… in main()
242 …TEST((s = S("\x0A\x0B\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B"), !pb_decode(&s, IntegerArray_f… in main()
245 TEST((s = S("\x0A\xFF"), !pb_decode(&s, IntegerArray_fields, &dest))) in main()
246 TEST((s = S("\x0A\x01"), !pb_decode(&s, IntegerArray_fields, &dest))) in main()
[all …]
/external/nanopb-c/tests/decode_unittests/
Ddecode_unittests.c269 TEST((s = S(""), pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 0)) in main()
270 TEST((s = S("\x08\x01\x08\x02"), pb_decode(&s, IntegerArray_fields, &dest) in main()
273 … TEST(pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 10 && dest.data[9] == 10) in main()
275 TEST(!pb_decode(&s, IntegerArray_fields, &dest)) in main()
283 TEST((s = S("\x0A\x00"), pb_decode(&s, IntegerArray_fields, &dest) in main()
285 TEST((s = S("\x0A\x01\x01"), pb_decode(&s, IntegerArray_fields, &dest) in main()
287 …TEST((s = S("\x0A\x0A\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A"), pb_decode(&s, IntegerArray_fields… in main()
289 …TEST((s = S("\x0A\x0B\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B"), !pb_decode(&s, IntegerArray_f… in main()
292 TEST((s = S("\x0A\xFF"), !pb_decode(&s, IntegerArray_fields, &dest))) in main()
293 TEST((s = S("\x0A\x01"), !pb_decode(&s, IntegerArray_fields, &dest))) in main()
[all …]
/external/grpc-grpc/third_party/nanopb/tests/common/
DSConscript12 # Binaries of the pb_decode.c and pb_encode.c
16 strict.Object("pb_decode.o", "$NANOPB/pb_decode.c")
21 # Binaries of pb_decode etc. with malloc support
40 malloc_strict.Object("pb_decode_with_malloc.o", "$NANOPB/pb_decode.c")
/external/nanopb-c/tests/common/
DSConscript12 # Binaries of the pb_decode.c and pb_encode.c
16 strict.Object("pb_decode.o", "$NANOPB/pb_decode.c")
21 # Binaries of pb_decode etc. with malloc support
40 malloc_strict.Object("pb_decode_with_malloc.o", "$NANOPB/pb_decode.c")
/external/grpc-grpc/third_party/nanopb/tests/fuzztest/
Dfuzzstub.c26 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg); in do_static_decode()
53 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg); in do_pointer_decode()
80 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg1); in do_static_roundtrip()
93 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg2); in do_static_roundtrip()
127 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg1); in do_pointer_roundtrip()
140 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg2); in do_pointer_roundtrip()
Dfuzztest.c232 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg); in do_static_decode()
259 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg); in do_pointer_decode()
286 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg1); in do_static_roundtrip()
299 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg2); in do_static_roundtrip()
333 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg1); in do_pointer_roundtrip()
346 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg2); in do_pointer_roundtrip()
/external/nanopb-c/tests/fuzztest/
Dfuzzstub.c26 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg); in do_static_decode()
53 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg); in do_pointer_decode()
80 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg1); in do_static_roundtrip()
93 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg2); in do_static_roundtrip()
127 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg1); in do_pointer_roundtrip()
140 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg2); in do_pointer_roundtrip()
Dfuzztest.c232 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg); in do_static_decode()
259 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg); in do_pointer_decode()
286 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg1); in do_static_roundtrip()
299 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg2); in do_static_roundtrip()
333 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg1); in do_pointer_roundtrip()
346 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg2); in do_pointer_roundtrip()
/external/nanopb-c/tests/inline/
Dinline_unittests.c33 TEST(pb_decode(&istream, Message1_fields, &msg1_deserialized)); in main()
54 TEST(pb_decode(&istream, Message2_fields, &msg2_deserialized)); in main()
64 TEST(pb_decode(&istream, Message2_fields, &msg2_deserialized)); in main()
/external/grpc-grpc/third_party/nanopb/tests/inline/
Dinline_unittests.c33 TEST(pb_decode(&istream, Message1_fields, &msg1_deserialized)); in main()
54 TEST(pb_decode(&istream, Message2_fields, &msg2_deserialized)); in main()
64 TEST(pb_decode(&istream, Message2_fields, &msg2_deserialized)); in main()
/external/grpc-grpc/third_party/nanopb/tests/cxx_main_program/
DSConscript13 env.Command("pb_decode.cxx", "#../pb_decode.c", c)
22 dec = env.Program(["decode_alltypes.cxx", "alltypes.pb.cxx", "pb_decode.cxx", "pb_common.cxx"])
/external/nanopb-c/tests/cxx_main_program/
DSConscript13 env.Command("pb_decode.cxx", "#../pb_decode.c", c)
22 dec = env.Program(["decode_alltypes.cxx", "alltypes.pb.cxx", "pb_decode.cxx", "pb_common.cxx"])
/external/grpc-grpc/third_party/
Dnanopb.BUILD5 "pb_decode.c",
11 "pb_decode.h",
/external/nanopb-c/
DBUILD13 "pb_decode.h",
18 "pb_decode.c",
DCMakeLists.txt71 pb_decode.h
72 pb_decode.c)
92 install(FILES pb.h pb_common.h pb_encode.h pb_decode.h
/external/grpc-grpc/third_party/nanopb/
DBUILD11 "pb_decode.c",
17 "pb_decode.h",
/external/nanopb-c/tests/regression/issue_249/
DSConscript1 # Regression test for Issue 249: proto3 mode pb_decode() corrupts callback fields
8 "$COMMON/pb_decode.o",
/external/nanopb-c/tests/regression/issue_259/
Dcallback_pointer.c15 TEST(pb_decode(&stream, MainMessage_fields, &msg)); in main()
22 TEST(pb_decode(&stream, MainMessage_fields, &msg)); in main()
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dload_balancer_api.cc32 if (GPR_UNLIKELY(!pb_decode(stream, grpc_lb_v1_Server_fields, &server))) { in count_serverlist()
55 if (GPR_UNLIKELY(!pb_decode(stream, grpc_lb_v1_Server_fields, server))) { in decode_serverlist()
171 !pb_decode(&stream, grpc_lb_v1_LoadBalanceResponse_fields, &res))) { in grpc_grpclb_initial_response_parse()
200 bool status = pb_decode(&stream, grpc_lb_v1_LoadBalanceResponse_fields, &res); in grpc_grpclb_response_parse_serverlist()
215 status = pb_decode(&stream_at_start, grpc_lb_v1_LoadBalanceResponse_fields, in grpc_grpclb_response_parse_serverlist()
/external/grpc-grpc/third_party/nanopb/tests/missing_fields/
Dmissing_fields.c32 if (!pb_decode(&stream, MissingField_fields, &msg)) in main()
44 if (pb_decode(&stream, AllFields_fields, &msg)) in main()
/external/nanopb-c/tests/missing_fields/
Dmissing_fields.c32 if (!pb_decode(&stream, MissingField_fields, &msg)) in main()
44 if (pb_decode(&stream, AllFields_fields, &msg)) in main()
/external/nanopb-c/tests/splint/
DSConscript8 env.Command('pb_decode.splint', '$NANOPB/pb_decode.c',
/external/grpc-grpc/third_party/nanopb/tests/splint/
DSConscript8 env.Command('pb_decode.splint', '$NANOPB/pb_decode.c',
/external/nanopb-c/tests/fixed_count/
Dfixed_count_unittests.c31 TEST(pb_decode(&istream, Message1_fields, &msg_b)); in main()
58 TEST(pb_decode(&istream, Message2_fields, &msg_b)); in main()
106 TEST(pb_decode(&istream, Message3_fields, &msg_b)); in main()
/external/grpc-grpc/third_party/nanopb/examples/network_server/
Dclient.c34 if (!pb_decode(stream, FileInfo_fields, &fileinfo)) in printfile_callback()
93 if (!pb_decode(&input, ListFilesResponse_fields, &response)) in listdir()

1234567