Home
last modified time | relevance | path

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

/external/adhd/cras/src/tests/
Dempty_iodev_unittest.cc15 static struct cras_audio_format fake_format; variable
30 fake_format.frame_rate = 48000; in TEST()
31 iodev->format = &fake_format; in TEST()
Dhfp_iodev_unittest.cc20 struct cras_audio_format fake_format; variable
131 iodev->format = &fake_format; in TEST_F()
156 iodev->format = &fake_format; in TEST_F()
182 iodev->format = &fake_format; in TEST_F()
205 iodev->format = &fake_format; in TEST_F()
Dhfp_alsa_iodev_unittest.cc25 static struct cras_audio_format fake_format; variable
251 iodev->format = &fake_format; in TEST_F()
254 EXPECT_EQ(fake_format.num_channels, hfp_alsa_io->aio->format->num_channels); in TEST_F()
255 EXPECT_EQ(fake_format.frame_rate, hfp_alsa_io->aio->format->frame_rate); in TEST_F()
256 EXPECT_EQ(fake_format.format, hfp_alsa_io->aio->format->format); in TEST_F()
258 EXPECT_EQ(fake_format.channel_layout[i], in TEST_F()
Dalsa_io_unittest.cc77 static cras_audio_format* fake_format; variable
408 free(fake_format); in TEST()
604 free(fake_format); in TEST()
647 free(fake_format); in TEST()
685 free(fake_format); in TEST()
715 free(fake_format); in TEST()
2305 free(fake_format); in TEST()
2846 fake_format = (struct cras_audio_format*)calloc(1, sizeof(cras_audio_format)); in cras_iodev_set_format()
2848 memcpy(fake_format, fmt, sizeof(cras_audio_format)); in cras_iodev_set_format()
2849 iodev->format = fake_format; in cras_iodev_set_format()