Lines Matching refs:recv_buf
26 static uint8_t recv_buf[MAX(sizeof(lorem_ipsum), MAX_RECV_BUF_LEN)]; variable
113 ctx.recv_buf.buf = temp_recv_buf; in test_recv()
114 ctx.recv_buf.size = sizeof(temp_recv_buf); in test_recv()
115 ctx.recv_buf.count = 0; in test_recv()
126 recv_buf + total_read, in test_recv()
127 sizeof(recv_buf) - total_read); in test_recv()
143 recv_buf + total_read, in test_recv()
144 sizeof(recv_buf) - total_read); in test_recv()
145 zassert_true(ret <= (sizeof(recv_buf) - total_read), in test_recv()
159 recv_buf + total_read, in test_recv()
160 sizeof(recv_buf) - total_read); in test_recv()
166 zassert_mem_equal(recv_buf, frame1_msg, sizeof(frame1_msg) - 1, in test_recv()
168 frame1_msg, recv_buf); in test_recv()
233 ctx.recv_buf.buf = temp_recv_buf; in ZTEST()
234 ctx.recv_buf.size = sizeof(temp_recv_buf); in ZTEST()
235 ctx.recv_buf.count = 0; in ZTEST()
240 recv_buf, sizeof(recv_buf)); in ZTEST()
256 ctx.recv_buf.buf = temp_recv_buf; in test_recv_2()
257 ctx.recv_buf.size = sizeof(temp_recv_buf); 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()
269 frame1_msg, recv_buf); 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()
281 "Invalid 2nd message, should be '%s' was '%s'", frame1_msg, recv_buf); in test_recv_2()
302 ctx.recv_buf.buf = temp_recv_buf; 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()
338 if (memcmp(recv_buf, lorem_ipsum + total_read, ret) != 0) { in verify_sent_and_received_msg()
341 LOG_HEXDUMP_ERR(recv_buf, ret, "but it was instead"); in verify_sent_and_received_msg()
366 ctx.recv_buf.buf = temp_recv_buf; in ZTEST()
367 ctx.recv_buf.size = sizeof(temp_recv_buf); in ZTEST()
389 ctx.recv_buf.buf = temp_recv_buf; in ZTEST()
390 ctx.recv_buf.size = sizeof(temp_recv_buf); in ZTEST()
412 ctx.recv_buf.buf = temp_recv_buf; in ZTEST()
413 ctx.recv_buf.size = sizeof(temp_recv_buf); in ZTEST()
438 ctx.recv_buf.buf = temp_recv_buf; in ZTEST()
439 ctx.recv_buf.size = sizeof(temp_recv_buf); in ZTEST()
444 ret = test_recv_buf(&feed_buf[0], sizeof(frame1), &ctx, &msg_type, &remaining, recv_buf, in ZTEST()
452 &recv_buf[recv_buf_size], recv_buf_size); in ZTEST()
460 zassert_mem_equal(recv_buf, frame1_msg, frame1_msg_size, in ZTEST()
461 "Invalid message, should be '%s' was '%s'", frame1_msg, recv_buf); in ZTEST()