Searched refs:rel_file (Results 1 – 2 of 2) sorted by relevance
591 std::unique_ptr<File> rel_file(OS::OpenFileReadWrite(rel_filename.c_str())); in TEST_F() local592 rel_file->ClearContent(); in TEST_F()594 ASSERT_TRUE(rel_file->WriteFully(&buffer, SHA256_DIGEST_LENGTH)); in TEST_F()597 ASSERT_TRUE(rel_file->WriteFully(&buffer, leb_size)); in TEST_F()598 ASSERT_EQ(rel_file->FlushClose(), 0); in TEST_F()
258 std::unique_ptr<File> rel_file(OS::CreateEmptyFileWriteOnly(rel_filename.c_str())); in WriteRelFile() local259 if (rel_file.get() == nullptr) { in WriteRelFile()263 if (!rel_file->WriteFully(output.data(), output.size())) { in WriteRelFile()267 if (rel_file->FlushCloseOrErase() != 0) { in WriteRelFile()281 std::unique_ptr<File> rel_file(OS::OpenFileForReading(rel_filename.c_str())); in CheckImageIdenticalToOriginalExceptForRelocation() local282 if (rel_file.get() == nullptr) { in CheckImageIdenticalToOriginalExceptForRelocation()286 int64_t rel_size = rel_file->GetLength(); in CheckImageIdenticalToOriginalExceptForRelocation()293 if (!rel_file->ReadFully(rel.get(), rel_size)) { in CheckImageIdenticalToOriginalExceptForRelocation()