Lines Matching refs:dest
38 const FdFile* dest,
229 art::ScratchFile dest; in TEST_F() local
230 const std::string& new_filename = dest.GetFilename(); in TEST_F()
277 FdFile dest(dest_tmp.GetFilename(), O_RDWR, false); in TEST_F() local
278 ASSERT_GE(dest.Fd(), 0); in TEST_F()
279 ASSERT_TRUE(dest.IsOpened()); in TEST_F()
281 ASSERT_TRUE(dest.Copy(&src, 0, sizeof(src_data))); in TEST_F()
282 ASSERT_EQ(0, dest.Flush()); in TEST_F()
283 ASSERT_EQ(static_cast<int64_t>(sizeof(src_data)), dest.GetLength()); in TEST_F()
286 ASSERT_TRUE(dest.PreadFully(check_data, sizeof(src_data), 0u)); in TEST_F()
289 ASSERT_EQ(0, dest.Close()); in TEST_F()
295 const FdFile* dest, in TestDataMatches() argument
313 dest->Fd(), in TestDataMatches()
316 dest->GetPath().c_str(), in TestDataMatches()
359 art::ScratchFile dest; in TEST_F() local
360 ASSERT_TRUE(dest.GetFile()->IsOpened()); in TEST_F()
363 EXPECT_TRUE(dest.GetFile()->Copy(src->GetFile(), /*offset=*/0, copy_size)); in TEST_F()
364 EXPECT_EQ(dest.GetFile()->Flush(), 0); in TEST_F()
367 EXPECT_EQ(dest.GetFile()->GetLength(), copy_size); in TEST_F()
370 EXPECT_EQ(lseek(dest.GetFd(), /*offset=*/0, SEEK_CUR), dest.GetFile()->GetLength()); in TEST_F()
376 ASSERT_EQ(fstat(dest.GetFd(), &dest_stat), 0); in TEST_F()
381 dest.GetFile(), in TEST_F()
436 art::ScratchFile dest; in TEST_F() local
437 ASSERT_TRUE(dest.GetFile()->IsOpened()); in TEST_F()
440 EXPECT_TRUE(dest.GetFile()->Copy(src->GetFile(), copy_start_offset, copy_size)); in TEST_F()
441 EXPECT_EQ(dest.GetFile()->Flush(), 0); in TEST_F()
444 EXPECT_EQ(dest.GetFile()->GetLength(), copy_size); in TEST_F()
447 EXPECT_EQ(lseek(dest.GetFd(), /*offset=*/0, SEEK_CUR), copy_size); in TEST_F()
461 ASSERT_EQ(fstat(dest.GetFd(), &dest_stat), 0); in TEST_F()
474 dest.GetFile(), in TEST_F()
508 art::ScratchFile dest; in TEST_F() local
509 FdFile* dest_file = dest.GetFile(); in TEST_F()
514 EXPECT_EQ(lseek(dest.GetFd(), existing_length, SEEK_SET), existing_length); in TEST_F()
525 EXPECT_EQ(lseek(dest.GetFd(), /*offset=*/0, SEEK_CUR), dest_file->GetLength()); in TEST_F()