/system/update_engine/payload_generator/ |
D | block_mapping_unittest.cc | 39 test_utils::ScopedTempFile old_part_{"BlockMappingTest_old.XXXXXX"}; 40 test_utils::ScopedTempFile new_part_{"BlockMappingTest_new.XXXXXX"}; 57 test_utils::WriteFileString(old_part_.path(), string(block_size_, 'a')); in TEST_F() 92 test_utils::WriteFileString(old_part_.path(), old_contents); in TEST_F() 99 test_utils::WriteFileString(new_part_.path(), new_contents); in TEST_F()
|
D | payload_generation_config_android_unittest.cc | 141 test_utils::ScopedTempFile temp_file_{ 147 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F() 167 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F() 176 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F() 184 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F() 191 test_utils::WriteFileString(temp_file_.path(), "tiny"); in TEST_F()
|
D | mapfile_filesystem_unittest.cc | 58 test_utils::ScopedTempFile temp_file_{"mapfile_file.XXXXXX"}; 59 test_utils::ScopedTempFile temp_mapfile_{"mapfile_mapfile.XXXXXX"}; 79 test_utils::WriteFileString(temp_mapfile_.path(), text); in TEST_F() 111 test_utils::WriteFileString(temp_mapfile_.path(), "/some/file 1-4\n"); in TEST_F() 123 test_utils::WriteFileString(temp_mapfile_.path(), "/some/file 2-1\n"); in TEST_F()
|
D | full_update_generator_unittest.cc | 29 using chromeos_update_engine::test_utils::FillWithData; 61 test_utils::ScopedTempFile part_file_{"FullUpdateTest_partition.XXXXXX"}; 75 EXPECT_TRUE(test_utils::WriteFileVector(new_part_conf.path, new_part)); in TEST_F() 106 EXPECT_TRUE(test_utils::WriteFileVector(new_part_conf.path, new_part)); in TEST_F() 127 EXPECT_TRUE(test_utils::WriteFileVector(new_part_conf.path, new_part)); in TEST_F()
|
D | payload_file_unittest.cc | 39 test_utils::ScopedTempFile orig_blobs("ReorderBlobsTest.orig.XXXXXX"); in TEST_F() 46 EXPECT_TRUE(test_utils::WriteFileString(orig_blobs.path(), orig_data)); in TEST_F() 48 test_utils::ScopedTempFile new_blobs("ReorderBlobsTest.new.XXXXXX"); in TEST_F()
|
D | boot_img_filesystem_unittest.cc | 51 test_utils::ScopedTempFile boot_file_; 55 test_utils::WriteFileVector( in TEST_F() 82 test_utils::WriteFileVector(boot_file_.path(), boot_img); in TEST_F() 94 test_utils::WriteFileVector(boot_file_.path(), in TEST_F()
|
D | ab_generator_unittest.cc | 65 test_utils::FillWithData(&part_data); in TestSplitReplaceOrReplaceBzOperation() 73 test_utils::ScopedTempFile part_file( in TestSplitReplaceOrReplaceBzOperation() 75 ASSERT_TRUE(test_utils::WriteFileVector(part_file.path(), part_data)); in TestSplitReplaceOrReplaceBzOperation() 110 test_utils::ScopedTempFile data_file( in TestSplitReplaceOrReplaceBzOperation() 112 EXPECT_TRUE(test_utils::WriteFileVector(data_file.path(), op_blob)); in TestSplitReplaceOrReplaceBzOperation() 215 test_utils::FillWithData(&part_data); in TestMergeReplaceOrReplaceBzOperations() 223 test_utils::ScopedTempFile part_file( in TestMergeReplaceOrReplaceBzOperations() 225 ASSERT_TRUE(test_utils::WriteFileVector(part_file.path(), part_data)); in TestMergeReplaceOrReplaceBzOperations() 274 test_utils::ScopedTempFile data_file( in TestMergeReplaceOrReplaceBzOperations() 276 EXPECT_TRUE(test_utils::WriteFileVector(data_file.path(), blob_data)); in TestMergeReplaceOrReplaceBzOperations() [all …]
|
D | payload_signer_unittest.cc | 33 using chromeos_update_engine::test_utils::GetBuildArtifactsPath; 166 test_utils::ScopedTempFile payload_file("payload.XXXXXX"); in TEST_F() 193 test_utils::ScopedTempFile payload_file("payload.XXXXXX"); in TEST_F()
|
D | blob_file_writer_unittest.cc | 26 using chromeos_update_engine::test_utils::FillWithData;
|
D | delta_diff_utils_unittest.cc | 104 return test_utils::WriteFileVector(part.path, file_data); in InitializePartitionWithUniqueBlocks() 199 test_utils::FillWithData(&data_blob); in TEST_F() 316 test_utils::FillWithData(&data_blob); in TEST_F() 411 test_utils::FillWithData(&data_blob); in TEST_F() 443 test_utils::FillWithData(&data_blob); in TEST_F() 657 EXPECT_TRUE(test_utils::WriteFileVector(old_part_.path, partition_data)); in TEST_F() 658 EXPECT_TRUE(test_utils::WriteFileVector(new_part_.path, partition_data)); in TEST_F() 780 test_utils::GetBuildArtifactsPath("gen/disk_ext2_1k.img"))); in TEST_F() 782 test_utils::GetBuildArtifactsPath("gen/disk_ext2_4k.img"))); in TEST_F()
|
D | ext2_filesystem_unittest.cc | 37 using chromeos_update_engine::test_utils::GetBuildArtifactsPath; 65 test_utils::ScopedTempFile fs_filename_{"Ext2FilesystemTest-XXXXXX"}; in TEST_F()
|
D | zip_unittest.cc | 33 using chromeos_update_engine::test_utils::kRandomString; 166 string path = test_utils::GetBuildArtifactsPath("delta_generator"); in TYPED_TEST()
|
/system/update_engine/payload_consumer/ |
D | filesystem_verifier_action_unittest.cc | 93 test_utils::ScopedTempFile a_loop_file("a_loop_file.XXXXXX"); in DoTest() 98 test_utils::FillWithData(&a_loop_data); in DoTest() 101 if (!(test_utils::WriteFileVector(a_loop_file.path(), a_loop_data))) { in DoTest() 108 test_utils::ScopedLoopbackDeviceBinder a_dev_releaser( in DoTest() 178 test_utils::ExpectVectorsEq(a_loop_data, a_out); in DoTest() 277 test_utils::ScopedTempFile part_file("part_file.XXXXXX"); in TEST_F() 282 ASSERT_TRUE(test_utils::WriteFileVector(part_file.path(), part_data)); in TEST_F() 284 test_utils::ScopedLoopbackDeviceBinder target_device( in TEST_F() 339 test_utils::ScopedTempFile part_file("part_file.XXXXXX"); in TEST_F() 343 test_utils::FillWithData(&part_data); in TEST_F() [all …]
|
D | verity_writer_android_unittest.cc | 42 test_utils::ScopedTempFile temp_file_; 47 test_utils::WriteFileVector(partition_.target_path, part_data); in TEST_F() 85 test_utils::WriteFileVector(partition_.target_path, part_data); in TEST_F() 107 test_utils::WriteFileVector(partition_.target_path, part_data); in TEST_F()
|
D | delta_performer_unittest.cc | 56 using test_utils::GetBuildArtifactsPath; 57 using test_utils::kRandomString; 58 using test_utils::System; 196 test_utils::ScopedTempFile blob_file("Blob-XXXXXX"); in GeneratePayload() 197 EXPECT_TRUE(test_utils::WriteFileVector(blob_file.path(), blob_data)); in GeneratePayload() 230 test_utils::ScopedTempFile payload_file("Payload-XXXXXX"); in GeneratePayload() 281 test_utils::ScopedTempFile new_part("Partition-XXXXXX"); in ApplyPayloadToData() 282 EXPECT_TRUE(test_utils::WriteFileVector(new_part.path(), target_data)); in ApplyPayloadToData() 583 test_utils::ScopedTempFile source("Source-XXXXXX"); in TEST_F() 584 EXPECT_TRUE(test_utils::WriteFileVector(source.path(), expected_data)); in TEST_F() [all …]
|
D | file_writer_unittest.cc | 39 test_utils::ScopedTempFile file("FileWriterTest-XXXXXX"); in TEST() 63 test_utils::ScopedTempFile file("FileWriterTest-XXXXXX"); in TEST()
|
D | bzip_extent_writer_unittest.cc | 52 test_utils::ScopedTempFile temp_file_{"BzipExtentWriterTest-file.XXXXXX"}; 112 test_utils::ExpectVectorsEq(original_compressed_data, compressed_data); in TEST_F() 117 test_utils::ExpectVectorsEq(decompressed_data, output); in TEST_F()
|
D | extent_writer_unittest.cc | 34 using chromeos_update_engine::test_utils::ExpectVectorsEq; 62 test_utils::ScopedTempFile temp_file_{"ExtentWriterTest-file.XXXXXX"}; 110 test_utils::FillWithData(&data); in WriteAlignedExtents() 151 test_utils::FillWithData(&data); in TEST_F()
|
D | delta_performer_integration_test.cc | 52 using test_utils::GetBuildArtifactsPath; 53 using test_utils::kRandomString; 54 using test_utils::ScopedLoopMounter; 55 using test_utils::System; 233 test_utils::ScopedTempFile hash_file("hash.XXXXXX"); in SignGeneratedShellPayload() 255 test_utils::ScopedTempFile sig_file("signature.XXXXXX"); in SignGeneratedShellPayload() 256 ASSERT_TRUE(test_utils::WriteFileVector(sig_file.path(), signature)); in SignGeneratedShellPayload() 259 test_utils::ScopedTempFile sig_file2("signature.XXXXXX"); in SignGeneratedShellPayload() 264 ASSERT_TRUE(test_utils::WriteFileVector(sig_file2.path(), signature)); in SignGeneratedShellPayload() 400 test_utils::WriteFileString(mnt_path.Append("foo").value(), "foo")); in GenerateDeltaFile() [all …]
|
D | postinstall_runner_action_unittest.cc | 46 using chromeos_update_engine::test_utils::ScopedLoopbackDeviceBinder; 94 test_utils::GetBuildArtifactsPath("gen/disk_ext2_unittest.img"); in SetUp() 113 test_utils::Readlink(base::StringPrintf( in SuspendRunningAction()
|
/system/update_engine/common/ |
D | hash_calculator_unittest.cc | 107 test_utils::ScopedTempFile data_file("data.XXXXXX"); in TEST_F() 108 ASSERT_TRUE(test_utils::WriteFileString(data_file.path(), "hi")); in TEST_F() 129 test_utils::ScopedTempFile data_file("data.XXXXXX"); in TEST_F() 130 ASSERT_TRUE(test_utils::WriteFileString(data_file.path(), "hi")); in TEST_F()
|
D | utils_unittest.cc | 62 test_utils::ScopedTempFile file; in TEST() 76 test_utils::ScopedTempFile file; in TEST() 82 EXPECT_TRUE(test_utils::WriteFileVector(file.path(), data)); in TEST() 200 test_utils::ScopedTempFile file; in GetFileFormatTester() 429 test_utils::ScopedTempFile tmp_image("img.XXXXXX"); in TEST() 432 test_utils::GetBuildArtifactsPath().Append("gen/disk_ext2_4k.img"), in TEST() 439 test_utils::ScopedLoopbackDeviceBinder loop_binder( in TEST() 469 test_utils::ScopedTempFile file; in TEST()
|
/system/update_engine/scripts/update_payload/ |
D | checker_unittest.py | 36 from update_payload import test_utils 423 payload_gen = test_utils.PayloadGenerator() 427 payload_gen.SetBlockSize(test_utils.KiB(1)) 429 payload_gen.SetBlockSize(test_utils.KiB(4)) 444 rootfs_part_size = test_utils.MiB(8) 445 kernel_part_size = test_utils.KiB(512) 869 old_part_size = test_utils.MiB(4) 870 new_part_size = test_utils.MiB(8) 999 payload_gen = test_utils.PayloadGenerator() 1001 block_size = test_utils.KiB(4) [all …]
|
/system/core/fastboot/fuzzy_fastboot/ |
D | Android.bp | 10 "test_utils.cpp",
|
/system/update_engine/ |
D | hardware_chromeos_unittest.cc | 30 using chromeos_update_engine::test_utils::WriteFileString;
|