Lines Matching full:sizeof
26 static uint8_t recv_buf[MAX(sizeof(lorem_ipsum), MAX_RECV_BUF_LEN)];
101 #define FRAME1_HDR_SIZE (sizeof(frame1) - (sizeof(frame1_msg) - 1))
111 memset(&ctx, 0, sizeof(ctx)); in test_recv()
114 ctx.recv_buf.size = sizeof(temp_recv_buf); in test_recv()
117 memcpy(feed_buf, &frame1, sizeof(frame1)); in test_recv()
120 sizeof(frame1), FRAME1_HDR_SIZE); in test_recv()
123 for (i = 0; i < sizeof(frame1) / count; i++) { in test_recv()
127 sizeof(recv_buf) - total_read); in test_recv()
138 left = sizeof(frame1) % count; in test_recv()
141 ret = test_recv_buf(&feed_buf[sizeof(frame1) - left], left, in test_recv()
144 sizeof(recv_buf) - total_read); in test_recv()
145 zassert_true(ret <= (sizeof(recv_buf) - total_read), in test_recv()
148 zassert_equal(total_read, sizeof(frame1) - FRAME1_HDR_SIZE, in test_recv()
151 } else if (total_read < (sizeof(frame1) - FRAME1_HDR_SIZE)) { in test_recv()
157 sizeof(frame1) - FRAME1_HDR_SIZE - total_read, in test_recv()
160 sizeof(recv_buf) - total_read); in test_recv()
162 zassert_equal(total_read, sizeof(frame1) - FRAME1_HDR_SIZE, in test_recv()
166 zassert_mem_equal(recv_buf, frame1_msg, sizeof(frame1_msg) - 1, in test_recv()
221 test_recv(sizeof(frame1)); in ZTEST()
231 memset(&ctx, 0, sizeof(ctx)); in ZTEST()
234 ctx.recv_buf.size = sizeof(temp_recv_buf); in ZTEST()
237 memcpy(feed_buf, &ping, sizeof(ping)); in ZTEST()
239 total_read = test_recv_buf(&feed_buf[0], sizeof(ping), &ctx, &msg_type, &remaining, in ZTEST()
240 recv_buf, sizeof(recv_buf)); in ZTEST()
254 memset(&ctx, 0, sizeof(ctx)); in test_recv_2()
257 ctx.recv_buf.size = sizeof(temp_recv_buf); in test_recv_2()
259 memcpy(feed_buf, &frame2, sizeof(frame2)); in test_recv_2()
262 sizeof(frame2), FRAME1_HDR_SIZE); in test_recv_2()
265 &remaining, recv_buf, sizeof(recv_buf)); in test_recv_2()
267 zassert_mem_equal(recv_buf, frame1_msg, sizeof(frame1_msg) - 1, in test_recv_2()
277 ret = test_recv_buf(&feed_buf[count], sizeof(frame2) - count, &ctx, &msg_type, &remaining, in test_recv_2()
278 recv_buf, sizeof(recv_buf)); in test_recv_2()
280 zassert_mem_equal(recv_buf, frame1_msg, sizeof(frame1_msg) - 1, in test_recv_2()
289 test_recv_2(sizeof(frame1) + FRAME1_HDR_SIZE / 2); in ZTEST()
300 memset(&ctx, 0, sizeof(ctx)); in verify_sent_and_received_msg()
303 ctx.recv_buf.size = sizeof(temp_recv_buf); in verify_sent_and_received_msg()
309 recv_buf, sizeof(recv_buf)); in verify_sent_and_received_msg()
323 recv_buf, sizeof(recv_buf)); in verify_sent_and_received_msg()
335 recv_buf, sizeof(recv_buf)); in verify_sent_and_received_msg()
364 memset(&ctx, 0, sizeof(ctx)); in ZTEST()
367 ctx.recv_buf.size = sizeof(temp_recv_buf); in ZTEST()
369 test_msg_len = sizeof(lorem_ipsum) - 1; in ZTEST()
387 memset(&ctx, 0, sizeof(ctx)); in ZTEST()
390 ctx.recv_buf.size = sizeof(temp_recv_buf); in ZTEST()
392 test_msg_len = sizeof(lorem_ipsum) - 1; in ZTEST()
410 memset(&ctx, 0, sizeof(ctx)); in ZTEST()
413 ctx.recv_buf.size = sizeof(temp_recv_buf); in ZTEST()
433 const size_t frame1_msg_size = sizeof(frame1_msg) - 1; in ZTEST()
436 memset(&ctx, 0, sizeof(ctx)); in ZTEST()
439 ctx.recv_buf.size = sizeof(temp_recv_buf); in ZTEST()
441 memcpy(feed_buf, &frame1, sizeof(frame1)); in ZTEST()
444 ret = test_recv_buf(&feed_buf[0], sizeof(frame1), &ctx, &msg_type, &remaining, recv_buf, in ZTEST()
451 ret = test_recv_buf(&feed_buf[sizeof(frame1)], 0, &ctx, &msg_type, &remaining, in ZTEST()