/external/nanopb-c/tests/alltypes_pointer/ |
D | decode_alltypes_pointer.c | 18 AllTypes alltypes; in check_alltypes() local 21 memset(&alltypes, 0xAA, sizeof(alltypes)); in check_alltypes() 23 if (!pb_decode(stream, AllTypes_fields, &alltypes)) in check_alltypes() 26 TEST(alltypes.req_int32 && *alltypes.req_int32 == -1001); in check_alltypes() 27 TEST(alltypes.req_int64 && *alltypes.req_int64 == -1002); in check_alltypes() 28 TEST(alltypes.req_uint32 && *alltypes.req_uint32 == 1003); in check_alltypes() 29 TEST(alltypes.req_uint64 && *alltypes.req_uint64 == 1004); in check_alltypes() 30 TEST(alltypes.req_sint32 && *alltypes.req_sint32 == -1005); in check_alltypes() 31 TEST(alltypes.req_sint64 && *alltypes.req_sint64 == -1006); in check_alltypes() 32 TEST(alltypes.req_bool && *alltypes.req_bool == true); in check_alltypes() [all …]
|
D | encode_alltypes_pointer.c | 105 AllTypes alltypes = {0}; in main() local 107 alltypes.req_int32 = &req_int32; in main() 108 alltypes.req_int64 = &req_int64; in main() 109 alltypes.req_uint32 = &req_uint32; in main() 110 alltypes.req_uint64 = &req_uint64; in main() 111 alltypes.req_sint32 = &req_sint32; in main() 112 alltypes.req_sint64 = &req_sint64; in main() 113 alltypes.req_bool = &req_bool; in main() 114 alltypes.req_fixed32 = &req_fixed32; in main() 115 alltypes.req_sfixed32 = &req_sfixed32; in main() [all …]
|
D | SConscript | 23 env.Command("alltypes.proto", "#alltypes/alltypes.proto", c) 25 env.NanopbProto(["alltypes", "alltypes.options"]) 26 enc = env.Program(["encode_alltypes_pointer.c", "alltypes.pb.c", "pb_encode_with_malloc.o"]) 27 dec = env.Program(["decode_alltypes_pointer.c", "alltypes.pb.c", "pb_decode_with_malloc.o"]) 29 # Encode and compare results to non-pointer alltypes test case 31 env.Compare(["encode_alltypes_pointer.output", "$BUILD/alltypes/encode_alltypes.output"]) 44 env.Compare(["optionals.output", "$BUILD/alltypes/optionals.output"])
|
/external/nanopb-c/tests/alltypes/ |
D | decode_alltypes.c | 22 AllTypes alltypes; in check_alltypes() local 25 memset(&alltypes, 0xAA, sizeof(alltypes)); in check_alltypes() 27 if (!pb_decode(stream, AllTypes_fields, &alltypes)) in check_alltypes() 30 TEST(alltypes.req_int32 == -1001); in check_alltypes() 31 TEST(alltypes.req_int64 == -1002); in check_alltypes() 32 TEST(alltypes.req_uint32 == 1003); in check_alltypes() 33 TEST(alltypes.req_uint64 == 1004); in check_alltypes() 34 TEST(alltypes.req_sint32 == -1005); in check_alltypes() 35 TEST(alltypes.req_sint64 == -1006); in check_alltypes() 36 TEST(alltypes.req_bool == true); in check_alltypes() [all …]
|
D | encode_alltypes.c | 16 AllTypes alltypes = {0}; in main() local 18 alltypes.req_int32 = -1001; in main() 19 alltypes.req_int64 = -1002; in main() 20 alltypes.req_uint32 = 1003; in main() 21 alltypes.req_uint64 = 1004; in main() 22 alltypes.req_sint32 = -1005; in main() 23 alltypes.req_sint64 = -1006; in main() 24 alltypes.req_bool = true; in main() 26 alltypes.req_fixed32 = 1008; in main() 27 alltypes.req_sfixed32 = -1009; in main() [all …]
|
D | SConscript | 6 env.NanopbProto(["alltypes", "alltypes.options"]) 7 enc = env.Program(["encode_alltypes.c", "alltypes.pb.c", "$COMMON/pb_encode.o"]) 8 dec = env.Program(["decode_alltypes.c", "alltypes.pb.c", "$COMMON/pb_decode.o"]) 17 ["encode_alltypes.output", "alltypes.proto"], 20 ["encode_alltypes.output.decoded", "alltypes.proto"], 28 ["optionals.output", "alltypes.proto"], 31 ["optionals.output.decoded", "alltypes.proto"],
|
/external/nanopb-c/tests/backwards_compatibility/ |
D | decode_legacy.c | 25 AllTypes alltypes; in check_alltypes() local 28 memset(&alltypes, 0xAA, sizeof(alltypes)); in check_alltypes() 30 if (!pb_decode(stream, AllTypes_fields, &alltypes)) in check_alltypes() 33 TEST(alltypes.req_int32 == -1001); in check_alltypes() 34 TEST(alltypes.req_int64 == -1002); in check_alltypes() 35 TEST(alltypes.req_uint32 == 1003); in check_alltypes() 36 TEST(alltypes.req_uint64 == 1004); in check_alltypes() 37 TEST(alltypes.req_sint32 == -1005); in check_alltypes() 38 TEST(alltypes.req_sint64 == -1006); in check_alltypes() 39 TEST(alltypes.req_bool == true); in check_alltypes() [all …]
|
D | encode_legacy.c | 19 AllTypes alltypes = {0}; in main() local 21 alltypes.req_int32 = -1001; in main() 22 alltypes.req_int64 = -1002; in main() 23 alltypes.req_uint32 = 1003; in main() 24 alltypes.req_uint64 = 1004; in main() 25 alltypes.req_sint32 = -1005; in main() 26 alltypes.req_sint64 = -1006; in main() 27 alltypes.req_bool = true; in main() 29 alltypes.req_fixed32 = 1008; in main() 30 alltypes.req_sfixed32 = -1009; in main() [all …]
|
/external/nanopb-c/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 219 AllTypes alltypes; in check_alltypes() local 222 memset(&alltypes, 0xAA, sizeof(alltypes)); in check_alltypes() 224 alltypes.req_int32.funcs.decode = &read_varint; in check_alltypes() 225 alltypes.req_int32.arg = (void*)-1001; in check_alltypes() 227 alltypes.req_int64.funcs.decode = &read_varint; in check_alltypes() 228 alltypes.req_int64.arg = (void*)-1002; in check_alltypes() 230 alltypes.req_uint32.funcs.decode = &read_varint; in check_alltypes() 231 alltypes.req_uint32.arg = (void*)1003; in check_alltypes() 233 alltypes.req_uint32.funcs.decode = &read_varint; in check_alltypes() 234 alltypes.req_uint32.arg = (void*)1003; in check_alltypes() [all …]
|
D | encode_alltypes_callback.c | 206 AllTypes alltypes = {{{0}}}; in main() local 208 alltypes.req_int32.funcs.encode = &write_varint; in main() 209 alltypes.req_int32.arg = (void*)-1001; in main() 211 alltypes.req_int64.funcs.encode = &write_varint; in main() 212 alltypes.req_int64.arg = (void*)-1002; in main() 214 alltypes.req_uint32.funcs.encode = &write_varint; in main() 215 alltypes.req_uint32.arg = (void*)1003; in main() 217 alltypes.req_uint32.funcs.encode = &write_varint; in main() 218 alltypes.req_uint32.arg = (void*)1003; in main() 220 alltypes.req_uint64.funcs.encode = &write_varint; in main() [all …]
|
D | SConscript | 6 env.Command("alltypes.proto", "#alltypes/alltypes.proto", c) 8 env.NanopbProto(["alltypes", "alltypes.options"]) 9 enc = env.Program(["encode_alltypes_callback.c", "alltypes.pb.c", "$COMMON/pb_encode.o"]) 10 dec = env.Program(["decode_alltypes_callback.c", "alltypes.pb.c", "$COMMON/pb_decode.o"]) 12 refdec = "$BUILD/alltypes/decode_alltypes$PROGSUFFIX"
|
/external/nanopb-c/tests/package_name/ |
D | SConscript | 1 # Check that alltypes test case works also when the .proto file defines 6 # Build a modified alltypes.proto 13 env.Command("alltypes.proto", "#alltypes/alltypes.proto", modify_proto) 14 env.Command("alltypes.options", "#alltypes/alltypes.options", Copy("$TARGET", "$SOURCE")) 15 env.NanopbProto(["alltypes", "alltypes.options"]) 29 env.Command("encode_alltypes.c", "#alltypes/encode_alltypes.c", modify_c) 31 # Encode and compare results to original alltypes testcase 32 enc = env.Program(["encode_alltypes.c", "alltypes.pb.c", "$COMMON/pb_encode.o"]) 33 refdec = "$BUILD/alltypes/decode_alltypes$PROGSUFFIX" 35 env.Compare(["encode_alltypes.output", "$BUILD/alltypes/encode_alltypes.output"])
|
/external/nanopb-c/tests/cxx_main_program/ |
D | SConscript | 1 # Run the alltypes test case, but compile it as C++ instead. 14 env.Command("alltypes.pb.h", "$BUILD/alltypes/alltypes.pb.h", c) 15 env.Command("alltypes.pb.cxx", "$BUILD/alltypes/alltypes.pb.c", c) 16 env.Command("encode_alltypes.cxx", "$BUILD/alltypes/encode_alltypes.c", c) 17 env.Command("decode_alltypes.cxx", "$BUILD/alltypes/decode_alltypes.c", c) 20 enc = env.Program(["encode_alltypes.cxx", "alltypes.pb.cxx", "pb_encode.cxx"]) 21 dec = env.Program(["decode_alltypes.cxx", "alltypes.pb.cxx", "pb_decode.cxx"])
|
/external/nanopb-c/tests/no_errmsg/ |
D | SConscript | 1 # Run the alltypes test case, but compile with PB_NO_ERRMSG=1 7 env.Command("alltypes.pb.h", "$BUILD/alltypes/alltypes.pb.h", c) 8 env.Command("alltypes.pb.c", "$BUILD/alltypes/alltypes.pb.c", c) 9 env.Command("encode_alltypes.c", "$BUILD/alltypes/encode_alltypes.c", c) 10 env.Command("decode_alltypes.c", "$BUILD/alltypes/decode_alltypes.c", c) 23 enc = opts.Program(["encode_alltypes.c", "alltypes.pb.c", "pb_encode_noerr.o"]) 24 dec = opts.Program(["decode_alltypes.c", "alltypes.pb.c", "pb_decode_noerr.o"])
|
/external/nanopb-c/tests/buffer_only/ |
D | SConscript | 1 # Run the alltypes test case, but compile with PB_BUFFER_ONLY=1 7 env.Command("alltypes.pb.h", "$BUILD/alltypes/alltypes.pb.h", c) 8 env.Command("alltypes.pb.c", "$BUILD/alltypes/alltypes.pb.c", c) 9 env.Command("encode_alltypes.c", "$BUILD/alltypes/encode_alltypes.c", c) 10 env.Command("decode_alltypes.c", "$BUILD/alltypes/decode_alltypes.c", c) 23 enc = opts.Program(["encode_alltypes.c", "alltypes.pb.c", "pb_encode_bufonly.o"]) 24 dec = opts.Program(["decode_alltypes.c", "alltypes.pb.c", "pb_decode_bufonly.o"])
|
/external/nanopb-c/tests/extensions/ |
D | SConscript | 5 # We use the files from the alltypes test case 7 incpath.Append(PROTOCPATH = '$BUILD/alltypes') 8 incpath.Append(CPPPATH = '$BUILD/alltypes') 11 enc = incpath.Program(["encode_extensions.c", "extensions.pb.c", "$BUILD/alltypes/alltypes.pb$OBJSU… 12 dec = incpath.Program(["decode_extensions.c", "extensions.pb.c", "$BUILD/alltypes/alltypes.pb$OBJSU…
|
D | encode_extensions.c | 17 AllTypes alltypes = {0}; in main() local 24 alltypes.extensions = &ext1; in main() 38 if (pb_encode(&stream, AllTypes_fields, &alltypes)) in main()
|
D | decode_extensions.c | 22 AllTypes alltypes = {0}; in main() local 34 alltypes.extensions = &ext1; in main() 45 if (!pb_decode(&stream, AllTypes_fields, &alltypes)) in main()
|
D | extensions.proto | 1 import 'alltypes.proto';
|
/external/nanopb-c/tests/field_size_16/ |
D | SConscript | 1 # Run the alltypes test case, but compile with PB_FIELD_16BIT=1. 8 env.Command("encode_alltypes.c", "$BUILD/alltypes/encode_alltypes.c", c) 9 env.Command("decode_alltypes.c", "$BUILD/alltypes/decode_alltypes.c", c) 11 env.NanopbProto(["alltypes", "alltypes.options"]) 24 enc = opts.Program(["encode_alltypes.c", "alltypes.pb.c", "pb_encode_fields16.o"]) 25 dec = opts.Program(["decode_alltypes.c", "alltypes.pb.c", "pb_decode_fields16.o"])
|
/external/nanopb-c/tests/field_size_32/ |
D | SConscript | 1 # Run the alltypes test case, but compile with PB_FIELD_32BIT=1. 8 env.Command("encode_alltypes.c", "$BUILD/alltypes/encode_alltypes.c", c) 9 env.Command("decode_alltypes.c", "$BUILD/alltypes/decode_alltypes.c", c) 11 env.NanopbProto(["alltypes", "alltypes.options"]) 24 enc = opts.Program(["encode_alltypes.c", "alltypes.pb.c", "pb_encode_fields32.o"]) 25 dec = opts.Program(["decode_alltypes.c", "alltypes.pb.c", "pb_decode_fields32.o"])
|
/external/nanopb-c/tests/extra_fields/ |
D | SConscript | 13 # This uses the backwards compatibility alltypes test, so that
|
/external/nanopb-c/ |
D | CHANGELOG.txt | 112 Extended testcases (alltypes test is now complete).
|