Lines Matching refs:fd
66 int fd[2]; in MtpFfsHandleTest() local
69 EXPECT_EQ(pipe(fd), 0); in MtpFfsHandleTest()
70 control.reset(fd[0]); in MtpFfsHandleTest()
71 handle->mControl.reset(fd[1]); in MtpFfsHandleTest()
73 EXPECT_EQ(pipe(fd), 0); in MtpFfsHandleTest()
74 EXPECT_EQ(fcntl(fd[0], F_SETPIPE_SZ, 1048576), 1048576); in MtpFfsHandleTest()
75 bulk_in.reset(fd[0]); in MtpFfsHandleTest()
76 handle->mBulkIn.reset(fd[1]); in MtpFfsHandleTest()
78 EXPECT_EQ(pipe(fd), 0); in MtpFfsHandleTest()
79 EXPECT_EQ(fcntl(fd[0], F_SETPIPE_SZ, 1048576), 1048576); in MtpFfsHandleTest()
80 bulk_out.reset(fd[1]); in MtpFfsHandleTest()
81 handle->mBulkOut.reset(fd[0]); in MtpFfsHandleTest()
83 EXPECT_EQ(pipe(fd), 0); in MtpFfsHandleTest()
84 intr.reset(fd[0]); in MtpFfsHandleTest()
85 handle->mIntr.reset(fd[1]); in MtpFfsHandleTest()
173 mfr.fd = this->dummy_file.fd; in TYPED_TEST()
178 EXPECT_EQ(read(this->dummy_file.fd, buf, size), size); in TYPED_TEST()
190 mfr.fd = this->dummy_file.fd; in TYPED_TEST()
197 EXPECT_EQ(read(this->dummy_file.fd, buf, size), size); in TYPED_TEST()
211 mfr.fd = this->dummy_file.fd; in TYPED_TEST()
218 EXPECT_EQ(read(this->dummy_file.fd, buf, size), size); in TYPED_TEST()
230 mfr.fd = this->dummy_file.fd; in TYPED_TEST()
249 EXPECT_EQ(read(this->dummy_file.fd, buf, size), size); in TYPED_TEST()
265 mfr.fd = this->dummy_file.fd; in TYPED_TEST()
269 EXPECT_EQ(write(this->dummy_file.fd, ss.str().c_str(), size), size); in TYPED_TEST()
294 mfr.fd = this->dummy_file.fd; in TYPED_TEST()
298 EXPECT_EQ(write(this->dummy_file.fd, ss.str().c_str(), size), size); in TYPED_TEST()
315 mfr.fd = this->dummy_file.fd; in TYPED_TEST()
325 EXPECT_EQ(write(this->dummy_file.fd, ss.str().c_str(), size), size); in TYPED_TEST()
362 mfr.fd = this->dummy_file.fd; in TYPED_TEST()