Home
last modified time | relevance | path

Searched refs:data_file (Results 1 – 4 of 4) sorted by relevance

/system/update_engine/common/
Dhash_calculator_unittest.cc107 ScopedTempFile data_file("data.XXXXXX"); in TEST_F() local
108 ASSERT_TRUE(test_utils::WriteFileString(data_file.path(), "hi")); in TEST_F()
112 EXPECT_EQ(2, calc.UpdateFile(data_file.path(), length)); in TEST_F()
120 EXPECT_EQ(0, calc.UpdateFile(data_file.path(), 0)); in TEST_F()
121 EXPECT_EQ(1, calc.UpdateFile(data_file.path(), 1)); in TEST_F()
129 ScopedTempFile data_file("data.XXXXXX"); in TEST_F() local
130 ASSERT_TRUE(test_utils::WriteFileString(data_file.path(), "hi")); in TEST_F()
137 2, HashCalculator::RawHashOfFile(data_file.path(), length, &raw_hash)); in TEST_F()
/system/update_engine/payload_generator/
Dpayload_properties_unittest.cc85 ScopedTempFile data_file("temp_data.XXXXXX", true); in SetUp() local
86 BlobFileWriter blob_file_writer(data_file.fd(), &data_file_size); in SetUp()
95 payload_file_.path(), data_file.path(), "", &metadata_size)); in SetUp()
Ddelta_diff_generator.cc176 ScopedTempFile data_file("CrAU_temp_data.XXXXXX", true); in GenerateUpdatePayloadFile() local
179 BlobFileWriter blob_file(data_file.fd(), &data_file_size); in GenerateUpdatePayloadFile()
247 data_file.CloseFd(); in GenerateUpdatePayloadFile()
252 output_path, data_file.path(), private_key_path, metadata_size)); in GenerateUpdatePayloadFile()
Dab_generator_unittest.cc109 ScopedTempFile data_file("SplitReplaceOrReplaceXzTest_data.XXXXXX"); in TestSplitReplaceOrReplaceXzOperation() local
110 EXPECT_TRUE(test_utils::WriteFileVector(data_file.path(), op_blob)); in TestSplitReplaceOrReplaceXzOperation()
111 int data_fd = open(data_file.path().c_str(), O_RDWR, 000); in TestSplitReplaceOrReplaceXzOperation()
271 ScopedTempFile data_file("MergeReplaceOrReplaceXzTest_data.XXXXXX"); in TestMergeReplaceOrReplaceXzOperations() local
272 EXPECT_TRUE(test_utils::WriteFileVector(data_file.path(), blob_data)); in TestMergeReplaceOrReplaceXzOperations()
273 int data_fd = open(data_file.path().c_str(), O_RDWR, 000); in TestMergeReplaceOrReplaceXzOperations()