Lines Matching refs:stream

34 	assert_int_equal(audio_stream_get_avail_bytes(&buf->stream), 0);  in test_audio_buffer_write_10_bytes_out_of_256_and_read_back()
35 assert_int_equal(audio_stream_get_free_bytes(&buf->stream), 256); in test_audio_buffer_write_10_bytes_out_of_256_and_read_back()
36 assert_ptr_equal(buf->stream.w_ptr, buf->stream.r_ptr); in test_audio_buffer_write_10_bytes_out_of_256_and_read_back()
40 memcpy_s(buf->stream.w_ptr, test_buf_desc.size, &bytes, 10); in test_audio_buffer_write_10_bytes_out_of_256_and_read_back()
43 assert_int_equal(audio_stream_get_avail_bytes(&buf->stream), 10); in test_audio_buffer_write_10_bytes_out_of_256_and_read_back()
44 assert_int_equal(audio_stream_get_free_bytes(&buf->stream), 246); in test_audio_buffer_write_10_bytes_out_of_256_and_read_back()
45 assert_ptr_equal(buf->stream.w_ptr, (char *)buf->stream.r_ptr + 10); in test_audio_buffer_write_10_bytes_out_of_256_and_read_back()
47 assert_int_equal(memcmp(buf->stream.r_ptr, &bytes, 10), 0); in test_audio_buffer_write_10_bytes_out_of_256_and_read_back()
51 assert_int_equal(audio_stream_get_avail_bytes(&buf->stream), 0); in test_audio_buffer_write_10_bytes_out_of_256_and_read_back()
52 assert_int_equal(audio_stream_get_free_bytes(&buf->stream), 256); in test_audio_buffer_write_10_bytes_out_of_256_and_read_back()
53 assert_ptr_equal(buf->stream.w_ptr, buf->stream.r_ptr); in test_audio_buffer_write_10_bytes_out_of_256_and_read_back()
69 assert_int_equal(audio_stream_get_avail_bytes(&buf->stream), 0); in test_audio_buffer_fill_10_bytes()
70 assert_int_equal(audio_stream_get_free_bytes(&buf->stream), 10); in test_audio_buffer_fill_10_bytes()
71 assert_ptr_equal(buf->stream.w_ptr, buf->stream.r_ptr); in test_audio_buffer_fill_10_bytes()
75 memcpy_s(buf->stream.w_ptr, test_buf_desc.size, &bytes, 10); in test_audio_buffer_fill_10_bytes()
78 assert_int_equal(audio_stream_get_avail_bytes(&buf->stream), 10); in test_audio_buffer_fill_10_bytes()
79 assert_int_equal(audio_stream_get_free_bytes(&buf->stream), 0); in test_audio_buffer_fill_10_bytes()
80 assert_ptr_equal(buf->stream.w_ptr, buf->stream.r_ptr); in test_audio_buffer_fill_10_bytes()