Home
last modified time | relevance | path

Searched refs:test_utils (Results 1 – 25 of 42) sorted by relevance

12

/system/update_engine/payload_generator/
Dblock_mapping_unittest.cc39 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()
Dpayload_generation_config_android_unittest.cc141 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()
Dmapfile_filesystem_unittest.cc58 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()
Dfull_update_generator_unittest.cc29 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()
Dpayload_file_unittest.cc39 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()
Dboot_img_filesystem_unittest.cc51 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()
Dab_generator_unittest.cc65 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 …]
Dpayload_signer_unittest.cc33 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()
Dblob_file_writer_unittest.cc26 using chromeos_update_engine::test_utils::FillWithData;
Ddelta_diff_utils_unittest.cc104 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()
Dext2_filesystem_unittest.cc37 using chromeos_update_engine::test_utils::GetBuildArtifactsPath;
65 test_utils::ScopedTempFile fs_filename_{"Ext2FilesystemTest-XXXXXX"}; in TEST_F()
Dzip_unittest.cc33 using chromeos_update_engine::test_utils::kRandomString;
166 string path = test_utils::GetBuildArtifactsPath("delta_generator"); in TYPED_TEST()
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action_unittest.cc93 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 …]
Dverity_writer_android_unittest.cc42 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()
Ddelta_performer_unittest.cc56 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 …]
Dfile_writer_unittest.cc39 test_utils::ScopedTempFile file("FileWriterTest-XXXXXX"); in TEST()
63 test_utils::ScopedTempFile file("FileWriterTest-XXXXXX"); in TEST()
Dbzip_extent_writer_unittest.cc52 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()
Dextent_writer_unittest.cc34 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()
Ddelta_performer_integration_test.cc52 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 …]
Dpostinstall_runner_action_unittest.cc46 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/
Dhash_calculator_unittest.cc107 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()
Dutils_unittest.cc62 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/
Dchecker_unittest.py36 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/
DAndroid.bp10 "test_utils.cpp",
/system/update_engine/
Dhardware_chromeos_unittest.cc30 using chromeos_update_engine::test_utils::WriteFileString;

12