Home
last modified time | relevance | path

Searched refs:expected_payload (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/tests/net/lib/lwm2m/content_link_format/src/
Dmain.c127 const char *expected_payload = ""; in ZTEST() local
132 zassert_equal(ret, strlen(expected_payload), in ZTEST()
134 zassert_mem_equal(test_out.out_cpkt->data, expected_payload, in ZTEST()
135 strlen(expected_payload), "Invalid payload format"); in ZTEST()
136 zassert_equal(test_out.out_cpkt->offset, strlen(expected_payload), in ZTEST()
143 const char *expected_payload = "</>;lwm2m=\"1.0\""; in ZTEST() local
148 zassert_equal(ret, strlen(expected_payload), in ZTEST()
150 zassert_mem_equal(test_out.out_cpkt->data, expected_payload, in ZTEST()
151 strlen(expected_payload), "Invalid payload format"); in ZTEST()
152 zassert_equal(test_out.out_cpkt->offset, strlen(expected_payload), in ZTEST()
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/content_plain_text/src/
Dmain.c72 char * const expected_payload[] = { "0", "127", "-128" }; in ZTEST() local
74 for (i = 0; i < ARRAY_SIZE(expected_payload); i++) { in ZTEST()
76 zassert_equal(ret, strlen(expected_payload[i]), in ZTEST()
79 expected_payload[i], in ZTEST()
80 strlen(expected_payload[i]), in ZTEST()
83 offset += strlen(expected_payload[i]); in ZTEST()
103 char * const expected_payload[] = { "0", "32767", "-32768" }; in ZTEST() local
105 for (i = 0; i < ARRAY_SIZE(expected_payload); i++) { in ZTEST()
107 zassert_equal(ret, strlen(expected_payload[i]), in ZTEST()
110 expected_payload[i], in ZTEST()
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/content_raw_cbor/src/
Dmain.c80 struct test_payload_buffer expected_payload[] = { in ZTEST() local
109 for (i = 0; i < ARRAY_SIZE(expected_payload); i++) { in ZTEST()
111 zassert_equal(ret, expected_payload[i].len, in ZTEST()
114 expected_payload[i].data, in ZTEST()
115 expected_payload[i].len, in ZTEST()
118 offset += expected_payload[i].len; in ZTEST()
138 struct test_payload_buffer expected_payload[] = { in ZTEST() local
167 for (i = 0; i < ARRAY_SIZE(expected_payload); i++) { in ZTEST()
169 zassert_equal(ret, expected_payload[i].len, in ZTEST()
172 expected_payload[i].data, in ZTEST()
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/content_json/src/
Dmain.c164 char * const expected_payload[] = { in ZTEST() local
172 for (i = 0; i < ARRAY_SIZE(expected_payload); i++) { in ZTEST()
180 expected_payload[i], in ZTEST()
181 strlen(expected_payload[i]), in ZTEST()
184 offset += strlen(expected_payload[i]); in ZTEST()
206 char * const expected_payload[] = { in ZTEST() local
214 for (i = 0; i < ARRAY_SIZE(expected_payload); i++) { in ZTEST()
222 expected_payload[i], in ZTEST()
223 strlen(expected_payload[i]), in ZTEST()
226 offset += strlen(expected_payload[i]); in ZTEST()
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/content_oma_tlv/src/
Dmain.c95 struct test_payload_buffer expected_payload[] = { in ZTEST() local
123 for (i = 0; i < ARRAY_SIZE(expected_payload); i++) { in ZTEST()
127 zassert_equal(ret, expected_payload[i].len, in ZTEST()
130 expected_payload[i].data, in ZTEST()
131 expected_payload[i].len, in ZTEST()
134 offset += expected_payload[i].len; in ZTEST()
159 struct test_payload_buffer expected_payload[] = { in ZTEST() local
189 for (i = 0; i < ARRAY_SIZE(expected_payload); i++) { in ZTEST()
193 zassert_equal(ret, expected_payload[i].len, in ZTEST()
196 expected_payload[i].data, in ZTEST()
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/content_senml_cbor/src/
Dmain.c181 struct test_payload_buffer expected_payload[] = { in ZTEST() local
233 for (i = 0; i < ARRAY_SIZE(expected_payload); i++) { in ZTEST()
242 expected_payload[i].data, in ZTEST()
243 expected_payload[i].len, in ZTEST()
246 offset += expected_payload[i].len; in ZTEST()
269 struct test_payload_buffer expected_payload[] = { in ZTEST() local
321 for (i = 0; i < ARRAY_SIZE(expected_payload); i++) { in ZTEST()
330 expected_payload[i].data, in ZTEST()
331 expected_payload[i].len, in ZTEST()
334 offset += expected_payload[i].len; in ZTEST()
[all …]