Home
last modified time | relevance | path

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

/system/update_engine/payload_generator/
Dmapfile_filesystem_unittest.cc58 test_utils::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()
Dpayload_generation_config_android_unittest.cc137 image_config_.partitions[0].path = temp_file_.path(); in SetUp()
141 test_utils::ScopedTempFile temp_file_{ member in chromeos_update_engine::PayloadGenerationConfigAndroidTest
147 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
165 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
185 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
194 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
202 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
209 test_utils::WriteFileString(temp_file_.path(), "tiny"); in TEST_F()
/system/update_engine/payload_consumer/
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 test_utils::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()
Dextent_writer_unittest.cc51 ASSERT_TRUE(fd_->Open(temp_file_.path().c_str(), O_RDWR, 0600)); in SetUp()
62 test_utils::ScopedTempFile temp_file_{"ExtentWriterTest-file.XXXXXX"}; member in chromeos_update_engine::ExtentWriterTest
74 utils::FileSize(temp_file_.path())); in TEST_F()
77 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &result_file)); in TEST_F()
127 utils::FileSize(temp_file_.path())); in WriteAlignedExtents()
130 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &result_file)); in WriteAlignedExtents()
167 utils::FileSize(temp_file_.path())); in TEST_F()
170 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &resultant_data)); in TEST_F()
Dbzip_extent_writer_unittest.cc47 ASSERT_TRUE(fd_->Open(temp_file_.path().c_str(), O_RDWR, 0600)); in SetUp()
52 test_utils::ScopedTempFile temp_file_{"BzipExtentWriterTest-file.XXXXXX"}; member in chromeos_update_engine::BzipExtentWriterTest
73 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &buf)); in TEST_F()
115 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &output)); in TEST_F()
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 test_utils::ScopedTempFile temp_file_{"ExtentReaderTest-file.XXXXXX"}; member in chromeos_update_engine::ExtentReaderTest
Dverity_writer_android_unittest.cc30 partition_.target_path = temp_file_.path(); in SetUp()
42 test_utils::ScopedTempFile temp_file_; member in chromeos_update_engine::VerityWriterAndroidTest
/system/libbase/
Dtest_utils.cpp41 return temp_file_.fd; in fd()
/system/libbase/include/android-base/
Dtest_utils.h39 TemporaryFile temp_file_; variable
/system/libziparchive/
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()
/system/update_engine/common/
Dhttp_fetcher_unittest.cc342 test_utils::WriteFileString(temp_file_.path(), big_contents); in BigUrl()
343 return "file://" + temp_file_.path(); in BigUrl()
346 test_utils::WriteFileString(temp_file_.path(), "small contents"); in SmallUrl()
347 return "file://" + temp_file_.path(); in SmallUrl()
363 test_utils::ScopedTempFile temp_file_{"ue_file_fetcher.XXXXXX"}; member in chromeos_update_engine::FileFetcherTest