Lines Matching refs:frames_
28 frames_ = 0; in SetUp()
38 size_t frames_; member in __anonaa4ab4040111::ShmTestSuite
43 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F()
44 EXPECT_EQ(0, frames_); in TEST_F()
45 cras_shm_buffer_read(&shm_, frames_); in TEST_F()
52 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F()
53 EXPECT_EQ(100, frames_); in TEST_F()
55 cras_shm_buffer_read(&shm_, frames_ - 9); in TEST_F()
56 EXPECT_EQ((frames_ - 9) * shm_.config.frame_bytes, in TEST_F()
67 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F()
68 EXPECT_EQ(50, frames_); in TEST_F()
70 cras_shm_buffer_read(&shm_, frames_ - 10); in TEST_F()
81 buf_ = cras_shm_get_readable_frames(&shm_, 25, &frames_); in TEST_F()
82 EXPECT_EQ(25, frames_); in TEST_F()
95 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F()
96 EXPECT_EQ(used_frames / 4, frames_); in TEST_F()
98 buf_ = cras_shm_get_readable_frames(&shm_, frames_, &frames_); in TEST_F()
99 EXPECT_EQ(used_frames / 2, frames_); in TEST_F()
116 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F()
117 EXPECT_EQ(used_frames / 4, frames_); in TEST_F()
119 buf_ = cras_shm_get_readable_frames(&shm_, frames_, &frames_); in TEST_F()
120 EXPECT_EQ(used_frames / 2, frames_); in TEST_F()
139 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F()
140 EXPECT_EQ(used_frames / 4, frames_); in TEST_F()
144 buf_ = cras_shm_get_readable_frames(&shm_, frames_, &frames_); in TEST_F()
145 EXPECT_EQ(used_frames / 2, frames_); in TEST_F()
220 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F()
221 EXPECT_EQ(shm_.config.used_size / 4, frames_); in TEST_F()
228 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F()
229 EXPECT_EQ(shm_.header->write_offset[0] / shm_.config.frame_bytes, frames_); in TEST_F()
236 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F()
237 EXPECT_EQ(shm_.config.used_size / 4, frames_); in TEST_F()
306 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F()
307 EXPECT_EQ(used_frames / 4, frames_); in TEST_F()
310 buf_ = cras_shm_get_readable_frames(&shm_, frames_, &frames_); in TEST_F()
311 EXPECT_EQ(used_frames / 3, frames_); in TEST_F()
341 frames_ = MIN(10 + i, used_frames); in TEST_F()
342 cras_shm_buffer_written(&shm_, frames_); in TEST_F()
343 total_frames_written += frames_; in TEST_F()
350 while ((buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_))) { in TEST_F()
351 total_frames_available += frames_; in TEST_F()
354 EXPECT_LE(buf_ + frames_, shm_.samples + samples_length); in TEST_F()
355 cras_shm_buffer_read(&shm_, frames_); in TEST_F()
367 frames_ = MIN(3 + 2 * i, used_frames); in TEST_F()
368 cras_shm_buffer_written(&shm_, frames_); in TEST_F()
369 total_frames_written += frames_; in TEST_F()
374 while ((buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_))) { in TEST_F()
375 total_frames_available += frames_; in TEST_F()
378 EXPECT_LE(buf_ + frames_, shm_.samples + samples_length); in TEST_F()
379 cras_shm_buffer_read(&shm_, frames_); in TEST_F()
390 frames_ = MIN(3 + 2 * i, used_frames); in TEST_F()
391 cras_shm_buffer_written(&shm_, frames_); in TEST_F()
392 total_frames_written += frames_; in TEST_F()
397 while ((buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_))) { in TEST_F()
398 total_frames_available += frames_; in TEST_F()
401 EXPECT_LE(buf_ + frames_, shm_.samples + samples_length); in TEST_F()
402 cras_shm_buffer_read(&shm_, frames_); in TEST_F()