Searched refs:image_file (Results 1 – 3 of 3) sorted by relevance
58 ScratchFile image_file(OS::CreateEmptyFile(image_filename.c_str())); in TEST_F() local100 bool success_image = writer.Write(image_file.GetFilename(), requested_image_base, in TEST_F()108 std::unique_ptr<File> file(OS::OpenFileForReading(image_file.GetFilename().c_str())); in TEST_F()187 image_file.Unlink(); in TEST_F()
147 std::unique_ptr<File> image_file(OS::CreateEmptyFile(image_filename.c_str())); in Write() local149 if (image_file.get() == NULL) { in Write()153 if (fchmod(image_file->Fd(), 0644) != 0) { in Write()160 if (!image_file->WriteFully(image_->Begin(), image_end_)) { in Write()167 if (!image_file->Write(reinterpret_cast<char*>(image_bitmap_->Begin()), in Write()
214 std::unique_ptr<File> image_file(OS::OpenFileForReading(filename)); in ReadSpecificImageHeader() local215 if (image_file.get() == nullptr) { in ReadSpecificImageHeader()218 const bool success = image_file->ReadFully(image_header, sizeof(ImageHeader)); in ReadSpecificImageHeader()