Home
last modified time | relevance | path

Searched refs:alltypes (Results 1 – 25 of 70) sorted by relevance

123

/external/grpc-grpc/third_party/nanopb/tests/alltypes_pointer/
Ddecode_alltypes_pointer.c18 AllTypes alltypes; in check_alltypes() local
21 memset(&alltypes, 0xAA, sizeof(alltypes)); in check_alltypes()
22 alltypes.extensions = 0; in check_alltypes()
24 if (!pb_decode(stream, AllTypes_fields, &alltypes)) in check_alltypes()
27 TEST(alltypes.req_int32 && *alltypes.req_int32 == -1001); in check_alltypes()
28 TEST(alltypes.req_int64 && *alltypes.req_int64 == -1002); in check_alltypes()
29 TEST(alltypes.req_uint32 && *alltypes.req_uint32 == 1003); in check_alltypes()
30 TEST(alltypes.req_uint64 && *alltypes.req_uint64 == 1004); in check_alltypes()
31 TEST(alltypes.req_sint32 && *alltypes.req_sint32 == -1005); in check_alltypes()
32 TEST(alltypes.req_sint64 && *alltypes.req_sint64 == -1006); in check_alltypes()
[all …]
Dencode_alltypes_pointer.c108 AllTypes alltypes = {0}; in main() local
110 alltypes.req_int32 = &req_int32; in main()
111 alltypes.req_int64 = &req_int64; in main()
112 alltypes.req_uint32 = &req_uint32; in main()
113 alltypes.req_uint64 = &req_uint64; in main()
114 alltypes.req_sint32 = &req_sint32; in main()
115 alltypes.req_sint64 = &req_sint64; in main()
116 alltypes.req_bool = &req_bool; in main()
117 alltypes.req_fixed32 = &req_fixed32; in main()
118 alltypes.req_sfixed32 = &req_sfixed32; in main()
[all …]
/external/nanopb-c/tests/alltypes/
Ddecode_alltypes.c23 AllTypes alltypes = AllTypes_init_default; in check_alltypes() local
26 memset(&alltypes, 0xAA, sizeof(alltypes)); in check_alltypes()
27 alltypes.extensions = 0; in check_alltypes()
29 if (!pb_decode(stream, AllTypes_fields, &alltypes)) in check_alltypes()
34 TEST(alltypes.req_int32 == -1001); in check_alltypes()
35 TEST(alltypes.req_int64 == -1002); in check_alltypes()
36 TEST(alltypes.req_uint32 == 1003); in check_alltypes()
37 TEST(alltypes.req_uint64 == 1004); in check_alltypes()
38 TEST(alltypes.req_sint32 == -1005); in check_alltypes()
39 TEST(alltypes.req_sint64 == -1006); in check_alltypes()
[all …]
Dencode_alltypes.c16 AllTypes alltypes = AllTypes_init_zero; in main() local
20 alltypes.req_int32 = -1001; in main()
21 alltypes.req_int64 = -1002; in main()
22 alltypes.req_uint32 = 1003; in main()
23 alltypes.req_uint64 = 1004; in main()
24 alltypes.req_sint32 = -1005; in main()
25 alltypes.req_sint64 = -1006; in main()
26 alltypes.req_bool = true; in main()
28 alltypes.req_fixed32 = 1008; in main()
29 alltypes.req_sfixed32 = -1009; in main()
[all …]
/external/nanopb-c/tests/alltypes_pointer/
Ddecode_alltypes_pointer.c18 AllTypes alltypes; in check_alltypes() local
21 memset(&alltypes, 0xAA, sizeof(alltypes)); in check_alltypes()
22 alltypes.extensions = 0; in check_alltypes()
24 if (!pb_decode(stream, AllTypes_fields, &alltypes)) in check_alltypes()
27 TEST(alltypes.req_int32 && *alltypes.req_int32 == -1001); in check_alltypes()
28 TEST(alltypes.req_int64 && *alltypes.req_int64 == -1002); in check_alltypes()
29 TEST(alltypes.req_uint32 && *alltypes.req_uint32 == 1003); in check_alltypes()
30 TEST(alltypes.req_uint64 && *alltypes.req_uint64 == 1004); in check_alltypes()
31 TEST(alltypes.req_sint32 && *alltypes.req_sint32 == -1005); in check_alltypes()
32 TEST(alltypes.req_sint64 && *alltypes.req_sint64 == -1006); in check_alltypes()
[all …]
Dencode_alltypes_pointer.c111 AllTypes alltypes = {0}; in main() local
113 alltypes.req_int32 = &req_int32; in main()
114 alltypes.req_int64 = &req_int64; in main()
115 alltypes.req_uint32 = &req_uint32; in main()
116 alltypes.req_uint64 = &req_uint64; in main()
117 alltypes.req_sint32 = &req_sint32; in main()
118 alltypes.req_sint64 = &req_sint64; in main()
119 alltypes.req_bool = &req_bool; in main()
120 alltypes.req_fixed32 = &req_fixed32; in main()
121 alltypes.req_sfixed32 = &req_sfixed32; in main()
[all …]
/external/grpc-grpc/third_party/nanopb/tests/alltypes/
Ddecode_alltypes.c23 AllTypes alltypes = AllTypes_init_default; in check_alltypes() local
26 memset(&alltypes, 0xAA, sizeof(alltypes)); in check_alltypes()
27 alltypes.extensions = 0; in check_alltypes()
29 if (!pb_decode(stream, AllTypes_fields, &alltypes)) in check_alltypes()
32 TEST(alltypes.req_int32 == -1001); in check_alltypes()
33 TEST(alltypes.req_int64 == -1002); in check_alltypes()
34 TEST(alltypes.req_uint32 == 1003); in check_alltypes()
35 TEST(alltypes.req_uint64 == 1004); in check_alltypes()
36 TEST(alltypes.req_sint32 == -1005); in check_alltypes()
37 TEST(alltypes.req_sint64 == -1006); in check_alltypes()
[all …]
Dencode_alltypes.c16 AllTypes alltypes = AllTypes_init_zero; 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 …]
/external/grpc-grpc/third_party/nanopb/tests/backwards_compatibility/
Ddecode_legacy.c25 AllTypes alltypes = {0}; in check_alltypes() local
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()
38 TEST(alltypes.req_fixed32 == 1008); in check_alltypes()
[all …]
Dencode_legacy.c19 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/backwards_compatibility/
Ddecode_legacy.c25 AllTypes alltypes = {0}; in check_alltypes() local
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()
38 TEST(alltypes.req_fixed32 == 1008); in check_alltypes()
[all …]
Dencode_legacy.c19 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/without_64bit/
Ddecode_alltypes.c23 AllTypes alltypes = AllTypes_init_default; in check_alltypes() local
26 memset(&alltypes, 0xAA, sizeof(alltypes)); in check_alltypes()
27 alltypes.extensions = 0; in check_alltypes()
29 if (!pb_decode(stream, AllTypes_fields, &alltypes)) in check_alltypes()
32 TEST(alltypes.req_int32 == -1001); in check_alltypes()
33 TEST(alltypes.req_uint32 == 1003); in check_alltypes()
34 TEST(alltypes.req_sint32 == -1005); in check_alltypes()
35 TEST(alltypes.req_bool == true); in check_alltypes()
37 TEST(alltypes.req_fixed32 == 1008); in check_alltypes()
38 TEST(alltypes.req_sfixed32 == -1009); in check_alltypes()
[all …]
Dencode_alltypes.c16 AllTypes alltypes = AllTypes_init_zero; in main() local
18 alltypes.req_int32 = -1001; in main()
19 alltypes.req_uint32 = 1003; in main()
20 alltypes.req_sint32 = -1005; in main()
21 alltypes.req_bool = true; in main()
23 alltypes.req_fixed32 = 1008; in main()
24 alltypes.req_sfixed32 = -1009; in main()
25 alltypes.req_float = 1010.0f; in main()
27 strcpy(alltypes.req_string, "1014"); in main()
28 alltypes.req_bytes.size = 4; in main()
[all …]
/external/nanopb-c/tests/alltypes_proto3/
Ddecode_alltypes.c22 AllTypes alltypes = AllTypes_init_zero; 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.rep_int32_count == 5 && alltypes.rep_int32[4] == -2001 && alltypes.rep_int32[0] == 0… in check_alltypes()
31 …TEST(alltypes.rep_int64_count == 5 && alltypes.rep_int64[4] == -2002 && alltypes.rep_int64[0] == 0… in check_alltypes()
32 …TEST(alltypes.rep_uint32_count == 5 && alltypes.rep_uint32[4] == 2003 && alltypes.rep_uint32[0] ==… in check_alltypes()
33 …TEST(alltypes.rep_uint64_count == 5 && alltypes.rep_uint64[4] == 2004 && alltypes.rep_uint64[0] ==… in check_alltypes()
34 …TEST(alltypes.rep_sint32_count == 5 && alltypes.rep_sint32[4] == -2005 && alltypes.rep_sint32[0] =… in check_alltypes()
35 …TEST(alltypes.rep_sint64_count == 5 && alltypes.rep_sint64[4] == -2006 && alltypes.rep_sint64[0] =… in check_alltypes()
36 …TEST(alltypes.rep_bool_count == 5 && alltypes.rep_bool[4] == true && alltypes.rep_bool[0] == false… in check_alltypes()
[all …]
Dencode_alltypes.c16 AllTypes alltypes = AllTypes_init_zero; in main() local
18 alltypes.rep_int32_count = 5; alltypes.rep_int32[4] = -2001; in main()
19 alltypes.rep_int64_count = 5; alltypes.rep_int64[4] = -2002; in main()
20 alltypes.rep_uint32_count = 5; alltypes.rep_uint32[4] = 2003; in main()
21 alltypes.rep_uint64_count = 5; alltypes.rep_uint64[4] = 2004; in main()
22 alltypes.rep_sint32_count = 5; alltypes.rep_sint32[4] = -2005; in main()
23 alltypes.rep_sint64_count = 5; alltypes.rep_sint64[4] = -2006; in main()
24 alltypes.rep_bool_count = 5; alltypes.rep_bool[4] = true; in main()
26 alltypes.rep_fixed32_count = 5; alltypes.rep_fixed32[4] = 2008; in main()
27 alltypes.rep_sfixed32_count = 5; alltypes.rep_sfixed32[4] = -2009; in main()
[all …]
/external/nanopb-c/tests/field_size_16_proto3/
Ddecode_alltypes.c22 AllTypes alltypes = AllTypes_init_zero; 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.rep_int32_count == 5 && alltypes.rep_int32[4] == -2001 && alltypes.rep_int32[0] == 0… in check_alltypes()
31 …TEST(alltypes.rep_int64_count == 5 && alltypes.rep_int64[4] == -2002 && alltypes.rep_int64[0] == 0… in check_alltypes()
32 …TEST(alltypes.rep_uint32_count == 5 && alltypes.rep_uint32[4] == 2003 && alltypes.rep_uint32[0] ==… in check_alltypes()
33 …TEST(alltypes.rep_uint64_count == 5 && alltypes.rep_uint64[4] == 2004 && alltypes.rep_uint64[0] ==… in check_alltypes()
34 …TEST(alltypes.rep_sint32_count == 5 && alltypes.rep_sint32[4] == -2005 && alltypes.rep_sint32[0] =… in check_alltypes()
35 …TEST(alltypes.rep_sint64_count == 5 && alltypes.rep_sint64[4] == -2006 && alltypes.rep_sint64[0] =… in check_alltypes()
36 …TEST(alltypes.rep_bool_count == 5 && alltypes.rep_bool[4] == true && alltypes.rep_bool[0] == false… in check_alltypes()
[all …]
Dencode_alltypes.c16 AllTypes alltypes = AllTypes_init_zero; in main() local
18 alltypes.rep_int32_count = 5; alltypes.rep_int32[4] = -2001; in main()
19 alltypes.rep_int64_count = 5; alltypes.rep_int64[4] = -2002; in main()
20 alltypes.rep_uint32_count = 5; alltypes.rep_uint32[4] = 2003; in main()
21 alltypes.rep_uint64_count = 5; alltypes.rep_uint64[4] = 2004; in main()
22 alltypes.rep_sint32_count = 5; alltypes.rep_sint32[4] = -2005; in main()
23 alltypes.rep_sint64_count = 5; alltypes.rep_sint64[4] = -2006; in main()
24 alltypes.rep_bool_count = 5; alltypes.rep_bool[4] = true; in main()
26 alltypes.rep_fixed32_count = 5; alltypes.rep_fixed32[4] = 2008; in main()
27 alltypes.rep_sfixed32_count = 5; alltypes.rep_sfixed32[4] = -2009; in main()
[all …]
/external/grpc-grpc/third_party/nanopb/tests/alltypes_callback/
Ddecode_alltypes_callback.c221 AllTypes alltypes; in check_alltypes() local
224 memset(&alltypes, 0xAA, sizeof(alltypes)); in check_alltypes()
225 alltypes.extensions = 0; in check_alltypes()
227 alltypes.req_int32.funcs.decode = &read_varint; in check_alltypes()
228 alltypes.req_int32.arg = (void*)-1001; in check_alltypes()
230 alltypes.req_int64.funcs.decode = &read_varint; in check_alltypes()
231 alltypes.req_int64.arg = (void*)-1002; in check_alltypes()
233 alltypes.req_uint32.funcs.decode = &read_varint; in check_alltypes()
234 alltypes.req_uint32.arg = (void*)1003; in check_alltypes()
236 alltypes.req_uint32.funcs.decode = &read_varint; in check_alltypes()
[all …]
Dencode_alltypes_callback.c208 AllTypes alltypes = {{{0}}}; in main() local
210 alltypes.req_int32.funcs.encode = &write_varint; in main()
211 alltypes.req_int32.arg = (void*)-1001; in main()
213 alltypes.req_int64.funcs.encode = &write_varint; in main()
214 alltypes.req_int64.arg = (void*)-1002; in main()
216 alltypes.req_uint32.funcs.encode = &write_varint; in main()
217 alltypes.req_uint32.arg = (void*)1003; in main()
219 alltypes.req_uint32.funcs.encode = &write_varint; in main()
220 alltypes.req_uint32.arg = (void*)1003; in main()
222 alltypes.req_uint64.funcs.encode = &write_varint; in main()
[all …]
/external/nanopb-c/tests/alltypes_callback/
Ddecode_alltypes_callback.c231 AllTypes alltypes = AllTypes_init_zero; in check_alltypes() local
233 alltypes.req_int32.funcs.decode = &read_varint; in check_alltypes()
234 alltypes.req_int32.arg = (void*)-1001; in check_alltypes()
236 alltypes.req_int64.funcs.decode = &read_varint; in check_alltypes()
237 alltypes.req_int64.arg = (void*)-1002; in check_alltypes()
239 alltypes.req_uint32.funcs.decode = &read_varint; in check_alltypes()
240 alltypes.req_uint32.arg = (void*)1003; in check_alltypes()
242 alltypes.req_uint32.funcs.decode = &read_varint; in check_alltypes()
243 alltypes.req_uint32.arg = (void*)1003; in check_alltypes()
245 alltypes.req_uint64.funcs.decode = &read_varint; in check_alltypes()
[all …]
Dencode_alltypes_callback.c208 AllTypes alltypes = {{{0}}}; in main() local
210 alltypes.req_int32.funcs.encode = &write_varint; in main()
211 alltypes.req_int32.arg = (void*)-1001; in main()
213 alltypes.req_int64.funcs.encode = &write_varint; in main()
214 alltypes.req_int64.arg = (void*)-1002; in main()
216 alltypes.req_uint32.funcs.encode = &write_varint; in main()
217 alltypes.req_uint32.arg = (void*)1003; in main()
219 alltypes.req_uint32.funcs.encode = &write_varint; in main()
220 alltypes.req_uint32.arg = (void*)1003; in main()
222 alltypes.req_uint64.funcs.encode = &write_varint; in main()
[all …]
/external/nanopb-c/tests/alltypes_proto3_callback/
Dencode_alltypes_callback.c199 AllTypes alltypes = AllTypes_init_zero; in main() local
202 alltypes.rep_int32.funcs.encode = &write_repeated_varint; in main()
203 alltypes.rep_int32.arg = (void*)-2001; in main()
205 alltypes.rep_int64.funcs.encode = &write_repeated_varint; in main()
206 alltypes.rep_int64.arg = (void*)-2002; in main()
208 alltypes.rep_uint32.funcs.encode = &write_repeated_varint; in main()
209 alltypes.rep_uint32.arg = (void*)2003; in main()
211 alltypes.rep_uint64.funcs.encode = &write_repeated_varint; in main()
212 alltypes.rep_uint64.arg = (void*)2004; in main()
214 alltypes.rep_sint32.funcs.encode = &write_repeated_svarint; in main()
[all …]
Ddecode_alltypes_callback.c221 AllTypes alltypes = AllTypes_init_zero; in check_alltypes() local
224 alltypes.rep_int32.funcs.decode = &read_repeated_varint; in check_alltypes()
225 alltypes.rep_int32.arg = rep_int32; in check_alltypes()
227 alltypes.rep_int64.funcs.decode = &read_repeated_varint; in check_alltypes()
228 alltypes.rep_int64.arg = rep_int64; in check_alltypes()
230 alltypes.rep_uint32.funcs.decode = &read_repeated_varint; in check_alltypes()
231 alltypes.rep_uint32.arg = rep_uint32; in check_alltypes()
233 alltypes.rep_uint64.funcs.decode = &read_repeated_varint; in check_alltypes()
234 alltypes.rep_uint64.arg = rep_uint64; in check_alltypes()
236 alltypes.rep_sint32.funcs.decode = &read_repeated_svarint; in check_alltypes()
[all …]
/external/nanopb-c/tests/package_name/
DSConscript1 # Check that alltypes test case works also when the .proto file defines
13 # Build a modified alltypes.proto
14 env.Command("alltypes.proto", "#alltypes/alltypes.proto",
16 env.Command("alltypes.options", "#alltypes/alltypes.options", Copy("$TARGET", "$SOURCE"))
17 env.NanopbProto(["alltypes", "alltypes.options"])
31 env.Command("encode_alltypes.c", "#alltypes/encode_alltypes.c", modify_c)
33 # Encode and compare results to original alltypes testcase
34 enc = env.Program(["encode_alltypes.c", "alltypes.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_common.…
35 refdec = "$BUILD/alltypes/decode_alltypes$PROGSUFFIX"
37 env.Compare(["encode_alltypes.output", "$BUILD/alltypes/encode_alltypes.output"])

123