Home
last modified time | relevance | path

Searched refs:pb_encode (Results 1 – 25 of 175) sorted by relevance

1234567

/external/nanopb-c/tests/encode_unittests/
Dencode_unittests.c201 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()
[all …]
/external/grpc-grpc/third_party/nanopb/tests/encode_unittests/
Dencode_unittests.c201 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()
[all …]
/external/grpc-grpc/third_party/nanopb/tests/regression/issue_166/
Denum_encoded_size.c21 TEST(pb_encode(&s, SignedMsg_fields, &msg1)); in main()
28 TEST(pb_encode(&s, SignedMsg_fields, &msg1)); in main()
37 TEST(pb_encode(&s, UnsignedMsg_fields, &msg2)); in main()
/external/nanopb-c/tests/regression/issue_166/
Denum_encoded_size.c21 TEST(pb_encode(&s, SignedMsg_fields, &msg1)); in main()
28 TEST(pb_encode(&s, SignedMsg_fields, &msg1)); in main()
37 TEST(pb_encode(&s, UnsignedMsg_fields, &msg2)); in main()
/external/grpc-grpc/third_party/nanopb/tests/common/
DSConscript12 # Binaries of the pb_decode.c and pb_encode.c
17 strict.Object("pb_encode.o", "$NANOPB/pb_encode.c")
41 malloc_strict.Object("pb_encode_with_malloc.o", "$NANOPB/pb_encode.c")
/external/nanopb-c/tests/common/
DSConscript12 # Binaries of the pb_decode.c and pb_encode.c
17 strict.Object("pb_encode.o", "$NANOPB/pb_encode.c")
41 malloc_strict.Object("pb_encode_with_malloc.o", "$NANOPB/pb_encode.c")
/external/grpc-grpc/third_party/nanopb/tests/inline/
Dinline_unittests.c30 TEST(pb_encode(&ostream, Message1_fields, &msg1)); in main()
51 TEST(pb_encode(&ostream, Message2_fields, &msg2)); in main()
62 TEST(pb_encode(&ostream, Message2_fields, &msg2_no_data)); in main()
/external/nanopb-c/tests/inline/
Dinline_unittests.c30 TEST(pb_encode(&ostream, Message1_fields, &msg1)); in main()
51 TEST(pb_encode(&ostream, Message2_fields, &msg2)); in main()
62 TEST(pb_encode(&ostream, Message2_fields, &msg2_no_data)); in main()
/external/grpc-grpc/third_party/
Dnanopb.BUILD6 "pb_encode.c",
12 "pb_encode.h",
/external/grpc-grpc/third_party/nanopb/tests/cxx_main_program/
DSConscript12 env.Command("pb_encode.cxx", "#../pb_encode.c", c)
21 enc = env.Program(["encode_alltypes.cxx", "alltypes.pb.cxx", "pb_encode.cxx", "pb_common.cxx"])
/external/nanopb-c/tests/cxx_main_program/
DSConscript12 env.Command("pb_encode.cxx", "#../pb_encode.c", c)
21 enc = env.Program(["encode_alltypes.cxx", "alltypes.pb.cxx", "pb_encode.cxx", "pb_common.cxx"])
/external/nanopb-c/tests/mem_release/
Dmem_release.c56 if (!pb_encode(&stream, TestMessage_fields, &msg)) in test_TestMessage()
93 TEST(pb_encode(&ostream, TestMessage_fields, &msg)); in test_TestMessage()
129 if (!pb_encode(&stream, OneofMessage_fields, &msg)) in test_OneofMessage()
145 if (!pb_encode(&stream, OneofMessage_fields, &msg)) in test_OneofMessage()
/external/grpc-grpc/third_party/nanopb/tests/mem_release/
Dmem_release.c56 if (!pb_encode(&stream, TestMessage_fields, &msg)) in test_TestMessage()
93 TEST(pb_encode(&ostream, TestMessage_fields, &msg)); in test_TestMessage()
129 if (!pb_encode(&stream, OneofMessage_fields, &msg)) in test_OneofMessage()
145 if (!pb_encode(&stream, OneofMessage_fields, &msg)) in test_OneofMessage()
/external/nanopb-c/
DBUILD14 "pb_encode.h",
19 "pb_encode.c",
DCMakeLists.txt69 pb_encode.h
70 pb_encode.c
92 install(FILES pb.h pb_common.h pb_encode.h pb_decode.h
/external/grpc-grpc/third_party/nanopb/
DBUILD12 "pb_encode.c",
18 "pb_encode.h",
/external/nanopb-c/tests/regression/issue_242/
DSConscript1 # Regression test for Issue 242: pb_encode does not encode tag for
10 "$COMMON/pb_encode.o",
Dzero_value.c24 TEST(pb_encode(&ostream, Extendable_fields, &source)); in main()
43 TEST(pb_encode(&ostream, PointerMessage_fields, &source)); in main()
/external/grpc-grpc/third_party/nanopb/tests/fuzztest/
Dfuzzstub.c86 status = pb_encode(&stream, alltypes_static_AllTypes_fields, msg1); in do_static_roundtrip()
99 status = pb_encode(&stream, alltypes_static_AllTypes_fields, msg2); in do_static_roundtrip()
133 status = pb_encode(&stream, alltypes_pointer_AllTypes_fields, msg1); in do_pointer_roundtrip()
146 status = pb_encode(&stream, alltypes_pointer_AllTypes_fields, msg2); in do_pointer_roundtrip()
/external/nanopb-c/tests/fuzztest/
Dfuzzstub.c86 status = pb_encode(&stream, alltypes_static_AllTypes_fields, msg1); in do_static_roundtrip()
99 status = pb_encode(&stream, alltypes_static_AllTypes_fields, msg2); in do_static_roundtrip()
133 status = pb_encode(&stream, alltypes_pointer_AllTypes_fields, msg1); in do_pointer_roundtrip()
146 status = pb_encode(&stream, alltypes_pointer_AllTypes_fields, msg2); in do_pointer_roundtrip()
/external/nanopb-c/tests/splint/
DSConscript11 env.Command('pb_encode.splint', '$NANOPB/pb_encode.c',
/external/grpc-grpc/third_party/nanopb/tests/splint/
DSConscript11 env.Command('pb_encode.splint', '$NANOPB/pb_encode.c',
/external/nanopb-c/tests/fixed_count/
Dfixed_count_unittests.c27 TEST(pb_encode(&ostream, Message1_fields, &msg_a)); in main()
54 TEST(pb_encode(&ostream, Message2_fields, &msg_a)); in main()
102 TEST(pb_encode(&ostream, Message3_fields, &msg_a)); in main()
/external/nanopb-c/examples/simple/
DREADME.txt10 * pb_encode() to encode a message
27 simple.c simple.pb.c pb_encode.c pb_decode.c
/external/grpc-grpc/third_party/nanopb/examples/simple/
DREADME.txt10 * pb_encode() to encode a message
27 simple.c simple.pb.c pb_encode.c pb_decode.c

1234567