Home
last modified time | relevance | path

Searched refs:test_out (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/net/lib/lwm2m/content_link_format/src/
Dmain.c83 static struct lwm2m_output_context test_out; variable
91 memset(&test_out, 0, sizeof(test_out)); in context_reset()
92 test_out.writer = &link_format_writer; in context_reset()
93 test_out.out_cpkt = &test_packet; in context_reset()
94 test_out.user_data = &test_formatter_data; in context_reset()
131 ret = link_format_writer.put_begin(&test_out, &test_path); in ZTEST()
134 zassert_mem_equal(test_out.out_cpkt->data, expected_payload, in ZTEST()
136 zassert_equal(test_out.out_cpkt->offset, strlen(expected_payload), in ZTEST()
147 ret = link_format_writer.put_begin(&test_out, &test_path); in ZTEST()
150 zassert_mem_equal(test_out.out_cpkt->data, expected_payload, in ZTEST()
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/content_plain_text/src/
Dmain.c12 static struct lwm2m_output_context test_out; variable
20 memset(&test_out, 0, sizeof(test_out)); in context_reset()
21 test_out.writer = &plain_text_writer; in context_reset()
22 test_out.out_cpkt = &test_packet; in context_reset()
75 ret = plain_text_writer.put_s8(&test_out, &test_path, value[i]); in ZTEST()
78 zassert_mem_equal(test_out.out_cpkt->data + offset, in ZTEST()
84 zassert_equal(test_out.out_cpkt->offset, offset, in ZTEST()
93 ret = plain_text_writer.put_s8(&test_out, &test_path, INT8_MAX); in ZTEST()
106 ret = plain_text_writer.put_s16(&test_out, &test_path, value[i]); in ZTEST()
109 zassert_mem_equal(test_out.out_cpkt->data + offset, in ZTEST()
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/content_raw_cbor/src/
Dmain.c20 static struct lwm2m_output_context test_out; variable
28 memset(&test_out, 0, sizeof(test_out)); in context_reset()
29 test_out.writer = &cbor_writer; in context_reset()
30 test_out.out_cpkt = &test_packet; in context_reset()
110 ret = cbor_writer.put_s8(&test_out, &test_path, value[i]); in ZTEST()
113 zassert_mem_equal(test_out.out_cpkt->data + offset, in ZTEST()
119 zassert_equal(test_out.out_cpkt->offset, offset, in ZTEST()
128 ret = cbor_writer.put_s8(&test_out, &test_path, INT8_MAX); in ZTEST()
168 ret = cbor_writer.put_s16(&test_out, &test_path, value[i]); in ZTEST()
171 zassert_mem_equal(test_out.out_cpkt->data + offset, in ZTEST()
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/content_oma_tlv/src/
Dmain.c28 static struct lwm2m_output_context test_out; variable
37 memset(&test_out, 0, sizeof(test_out)); in context_reset()
38 test_out.writer = &oma_tlv_writer; in context_reset()
39 test_out.out_cpkt = &test_packet; in context_reset()
40 test_out.user_data = &test_formatter_data; in context_reset()
126 ret = oma_tlv_writer.put_s8(&test_out, &test_path, value[i]); in ZTEST()
129 zassert_mem_equal(test_out.out_cpkt->data + offset, in ZTEST()
135 zassert_equal(test_out.out_cpkt->offset, offset, in ZTEST()
144 ret = oma_tlv_writer.put_s8(&test_out, &test_path, INT8_MAX); in ZTEST()
192 ret = oma_tlv_writer.put_s16(&test_out, &test_path, value[i]); in ZTEST()
[all …]