Lines Matching refs:payload

138 	const uint8_t *payload = coap_packet_get_payload(&msg->cpkt, &payload_len);  in ZTEST_F()  local
140 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
147 zassert_equal(payload, msg->cpkt.data + EXPECTED_HEADERS_LEN, in ZTEST_F()
157 zassert_equal(payload[i], i, "Byte %i in payload is wrong", i); in ZTEST_F()
161 zassert_equal(payload[payload_len], 0x00, "Byte after payload is wrong"); in ZTEST_F()
209 const uint8_t *payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F() local
211 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
213 zassert_equal(0x00, payload[0], "First byte in payload wrong"); in ZTEST_F()
214 zassert_equal(0x3f, payload[CONFIG_LWM2M_COAP_BLOCK_SIZE - 1], in ZTEST_F()
223 const uint8_t *payload; in ZTEST_F() local
265 payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F()
267 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
269 zassert_equal(0x00, payload[0], "First byte in payload wrong"); in ZTEST_F()
270 zassert_equal(0x3f, payload[CONFIG_LWM2M_COAP_BLOCK_SIZE - 1], in ZTEST_F()
280 payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F()
282 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
284 zassert_equal(0x40, payload[0], "First byte in payload wrong"); in ZTEST_F()
285 zassert_equal(0x7f, payload[CONFIG_LWM2M_COAP_BLOCK_SIZE - 1], in ZTEST_F()
298 const uint8_t *payload; in ZTEST_F() local
341 payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F()
343 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
345 zassert_equal(0x00, payload[0], "First byte in payload wrong"); in ZTEST_F()
346 zassert_equal(0x3f, payload[CONFIG_LWM2M_COAP_BLOCK_SIZE - 1], in ZTEST_F()
356 payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F()
358 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
360 zassert_equal(0x40, payload[0], "First byte in payload wrong"); in ZTEST_F()
361 zassert_equal(0x7f, payload[CONFIG_LWM2M_COAP_BLOCK_SIZE - 1], in ZTEST_F()
371 payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F()
373 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
375 zassert_equal(0x80, payload[0], "First (and only) byte in payload wrong"); in ZTEST_F()