Lines Matching refs:rc
24 int rc; in SetUp() local
41 rc = socketpair(AF_UNIX, SOCK_STREAM, 0, sock); in SetUp()
42 ASSERT_EQ(0, rc); in SetUp()
61 int rc; in stub_client_reply() local
69 rc = write(client_fd_, &aud_msg, sizeof(aud_msg)); in stub_client_reply()
70 EXPECT_EQ(sizeof(aud_msg), rc); in stub_client_reply()
81 int rc; in TEST_F() local
84 rc = cras_rstream_create(&config_, &s); in TEST_F()
85 EXPECT_NE(0, rc); in TEST_F()
90 int rc; in TEST_F() local
93 rc = cras_rstream_create(&config_, &s); in TEST_F()
94 EXPECT_NE(0, rc); in TEST_F()
99 int rc; in TEST_F() local
102 rc = cras_rstream_create(&config_, &s); in TEST_F()
103 EXPECT_NE(0, rc); in TEST_F()
108 int rc; in TEST_F() local
111 rc = cras_rstream_create(&config_, &s); in TEST_F()
112 EXPECT_NE(0, rc); in TEST_F()
116 int rc; in TEST_F() local
118 rc = cras_rstream_create(&config_, NULL); in TEST_F()
119 EXPECT_NE(0, rc); in TEST_F()
127 int rc, fd_ret; in TEST_F() local
130 rc = cras_rstream_create(&config_, &s); in TEST_F()
131 EXPECT_EQ(0, rc); in TEST_F()
138 rc = cras_rstream_get_format(s, &fmt_ret); in TEST_F()
139 EXPECT_EQ(0, rc); in TEST_F()
163 int rc, fd_ret; in TEST_F() local
167 rc = cras_rstream_create(&config_, &s); in TEST_F()
168 EXPECT_EQ(0, rc); in TEST_F()
175 rc = cras_rstream_get_format(s, &fmt_ret); in TEST_F()
176 EXPECT_EQ(0, rc); in TEST_F()
197 int rc; in TEST_F() local
200 rc = cras_rstream_create(&config_, &s); in TEST_F()
201 EXPECT_EQ(0, rc); in TEST_F()
207 rc = cras_rstream_create(&config_, &s); in TEST_F()
208 EXPECT_EQ(0, rc); in TEST_F()
214 rc = cras_rstream_create(&config_, &s); in TEST_F()
215 EXPECT_EQ(0, rc); in TEST_F()
220 rc = cras_rstream_create(&config_, &s); in TEST_F()
221 EXPECT_EQ(0, rc); in TEST_F()
228 int rc; in TEST_F() local
231 rc = cras_rstream_create(&config_, &s); in TEST_F()
232 EXPECT_EQ(0, rc); in TEST_F()
235 rc = cras_rstream_is_pending_reply(s); in TEST_F()
236 EXPECT_EQ(0, rc); in TEST_F()
239 rc = cras_rstream_request_audio(s, &ts); in TEST_F()
240 EXPECT_GT(rc, 0); in TEST_F()
243 rc = cras_rstream_is_pending_reply(s); in TEST_F()
244 EXPECT_EQ(1, rc); in TEST_F()
251 int rc; in TEST_F() local
254 rc = cras_rstream_create(&config_, &s); in TEST_F()
255 EXPECT_EQ(0, rc); in TEST_F()
258 rc = cras_rstream_is_pending_reply(s); in TEST_F()
259 EXPECT_EQ(0, rc); in TEST_F()
262 rc = cras_rstream_request_audio(s, &ts); in TEST_F()
263 EXPECT_GT(rc, 0); in TEST_F()
266 rc = cras_rstream_is_pending_reply(s); in TEST_F()
267 EXPECT_EQ(1, rc); in TEST_F()
276 rc = cras_rstream_is_pending_reply(s); in TEST_F()
277 EXPECT_EQ(0, rc); in TEST_F()
284 int rc; in TEST_F() local
288 rc = cras_rstream_create(&config_, &s); in TEST_F()
289 EXPECT_EQ(0, rc); in TEST_F()
292 rc = cras_rstream_is_pending_reply(s); in TEST_F()
293 EXPECT_EQ(0, rc); in TEST_F()
296 rc = cras_rstream_audio_ready(s, 10); in TEST_F()
297 EXPECT_GT(rc, 0); in TEST_F()
300 rc = cras_rstream_is_pending_reply(s); in TEST_F()
301 EXPECT_EQ(1, rc); in TEST_F()
308 int rc; in TEST_F() local
312 rc = cras_rstream_create(&config_, &s); in TEST_F()
313 EXPECT_EQ(0, rc); in TEST_F()
316 rc = cras_rstream_is_pending_reply(s); in TEST_F()
317 EXPECT_EQ(0, rc); in TEST_F()
320 rc = cras_rstream_audio_ready(s, 10); in TEST_F()
321 EXPECT_GT(rc, 0); in TEST_F()
324 rc = cras_rstream_is_pending_reply(s); in TEST_F()
325 EXPECT_EQ(1, rc); in TEST_F()
334 rc = cras_rstream_is_pending_reply(s); in TEST_F()
335 EXPECT_EQ(0, rc); in TEST_F()