Lines Matching refs:fd
139 ASSERT_NE(tf.fd, -1); in TEST()
142 TEMP_FAILURE_RETRY(write(tf.fd, kDexData, sizeof(art::DexFile::Header) - 1)))); in TEST()
145 EXPECT_EQ(DexFile::OpenFromFd(tf.fd, 0, tf.path, &error_msg), nullptr); in TEST()
151 ASSERT_NE(tf.fd, -1); in TEST()
154 TEMP_FAILURE_RETRY(write(tf.fd, kDexData, sizeof(art::DexFile::Header))))); in TEST()
157 EXPECT_EQ(DexFile::OpenFromFd(tf.fd, 0, tf.path, &error_msg), nullptr); in TEST()
163 ASSERT_NE(tf.fd, -1); in TEST()
165 static_cast<size_t>(TEMP_FAILURE_RETRY(write(tf.fd, kDexData, sizeof(kDexData))))); in TEST()
168 EXPECT_NE(DexFile::OpenFromFd(tf.fd, 0, tf.path, &error_msg), nullptr); in TEST()
174 ASSERT_NE(tf.fd, -1); in TEST()
175 ASSERT_EQ(0x100, lseek(tf.fd, 0x100, SEEK_SET)); in TEST()
177 static_cast<size_t>(TEMP_FAILURE_RETRY(write(tf.fd, kDexData, sizeof(kDexData))))); in TEST()
180 EXPECT_NE(DexFile::OpenFromFd(tf.fd, 0x100, tf.path, &error_msg), nullptr); in TEST()