Home
last modified time | relevance | path

Searched refs:temp_file_ (Results 1 – 13 of 13) sorted by relevance

/aosp12/system/update_engine/payload_generator/
H A Dmapfile_filesystem_unittest.cc58 ScopedTempFile temp_file_{"mapfile_file.XXXXXX"}; member in chromeos_update_engine::MapfileFilesystemTest
64 temp_file_.path(), temp_mapfile_.path()); in TEST_F()
80 EXPECT_EQ(0, HANDLE_EINTR(truncate(temp_file_.path().c_str(), 4096 * 20))); in TEST_F()
83 temp_file_.path(), temp_mapfile_.path()); in TEST_F()
112 EXPECT_EQ(0, HANDLE_EINTR(truncate(temp_file_.path().c_str(), 4096 * 3))); in TEST_F()
115 temp_file_.path(), temp_mapfile_.path()); in TEST_F()
124 EXPECT_EQ(0, HANDLE_EINTR(truncate(temp_file_.path().c_str(), 4096 * 3))); in TEST_F()
127 temp_file_.path(), temp_mapfile_.path()); in TEST_F()
H A Dpayload_generation_config_android_unittest.cc137 image_config_.partitions[0].path = temp_file_.path(); in SetUp()
141 ScopedTempFile temp_file_{"PayloadGenerationConfigAndroidTest.XXXXXX"}; member in chromeos_update_engine::PayloadGenerationConfigAndroidTest
146 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
164 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
184 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
193 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
201 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
208 test_utils::WriteFileString(temp_file_.path(), "tiny"); in TEST_F()
/aosp12/system/update_engine/payload_consumer/
H A Dcached_file_descriptor_unittest.cc47 EXPECT_TRUE(cfd_->Open(temp_file_.path().c_str(), O_RDWR, 0600)); in Open()
65 temp_file_.path().c_str(), zero_blob.data(), zero_blob.size())); in SetUp()
76 ScopedTempFile temp_file_{"CachedFileDescriptor-file.XXXXXX"}; member in chromeos_update_engine::CachedFileDescriptorTest
92 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
105 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
126 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
154 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
167 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
183 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
200 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
H A Dextent_writer_unittest.cc51 ASSERT_TRUE(fd_->Open(temp_file_.path().c_str(), O_RDWR, 0600)); in SetUp()
62 ScopedTempFile temp_file_{"ExtentWriterTest-file.XXXXXX"}; member in chromeos_update_engine::ExtentWriterTest
73 utils::FileSize(temp_file_.path())); in TEST_F()
76 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &result_file)); in TEST_F()
124 utils::FileSize(temp_file_.path())); in WriteAlignedExtents()
127 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &result_file)); in WriteAlignedExtents()
163 utils::FileSize(temp_file_.path())); in TEST_F()
166 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &resultant_data)); in TEST_F()
H A Dbzip_extent_writer_unittest.cc46 ASSERT_TRUE(fd_->Open(temp_file_.path().c_str(), O_RDWR, 0600)); in SetUp()
51 ScopedTempFile temp_file_{"BzipExtentWriterTest-file.XXXXXX"}; member in chromeos_update_engine::BzipExtentWriterTest
71 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &buf)); in TEST_F()
112 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &output)); in TEST_F()
H A Dextent_reader_unittest.cc57 temp_file_.path().c_str(), sample_.data(), sample_.size())); in SetUp()
60 ASSERT_TRUE(fd_->Open(temp_file_.path().c_str(), O_RDONLY, 0600)); in SetUp()
75 ScopedTempFile temp_file_{"ExtentReaderTest-file.XXXXXX"}; member in chromeos_update_engine::ExtentReaderTest
H A Dverity_writer_android_unittest.cc33 partition_.target_path = temp_file_.path(); in SetUp()
48 ScopedTempFile temp_file_; member in chromeos_update_engine::VerityWriterAndroidTest
/aosp12/bootable/recovery/tests/unit/
H A Dpackage_test.cpp38 TemporaryFile temp_file_; // test package file. member in PackageTest
44 FILE* file_ptr = fdopen(temp_file_.release(), "wb"); in SetUp()
54 ASSERT_TRUE(android::base::ReadFileToString(temp_file_.path, &file_content_)); in SetUp()
55 auto memory_package = Package::CreateMemoryPackage(temp_file_.path, nullptr); in SetUp()
59 auto file_package = Package::CreateFilePackage(temp_file_.path, nullptr); in SetUp()
/aosp12/system/core/fastboot/
H A Dvendor_boot_img_utils_test.cpp191 std::unique_ptr<TemporaryFile> temp_file_; member
199 temp_file_ = std::make_unique<TemporaryFile>(); in Transform()
200 if (temp_file_->fd == -1) in Transform()
202 if (!android::base::WriteStringToFd(*content, temp_file_->fd)) in Transform()
205 return temp_file_->fd; in Transform()
/aosp12/system/libziparchive/
H A Dzip_writer_test.cc31 TemporaryFile* temp_file_; member
36 temp_file_ = new TemporaryFile(); in SetUp()
37 fd_ = temp_file_->fd; in SetUp()
44 delete temp_file_; in TearDown()
/aosp12/system/libbase/
H A Dtest_utils.cpp41 return temp_file_.fd; in fd()
/aosp12/system/libbase/include/android-base/
H A Dtest_utils.h39 TemporaryFile temp_file_; variable
/aosp12/system/update_engine/common/
H A Dhttp_fetcher_unittest.cc351 test_utils::WriteFileString(temp_file_.path(), big_contents); in BigUrl()
352 return "file://" + temp_file_.path(); in BigUrl()
355 test_utils::WriteFileString(temp_file_.path(), "small contents"); in SmallUrl()
356 return "file://" + temp_file_.path(); in SmallUrl()
372 ScopedTempFile temp_file_{"ue_file_fetcher.XXXXXX"}; member in chromeos_update_engine::FileFetcherTest