Home
last modified time | relevance | path

Searched refs:test_utils (Results 1 – 25 of 47) 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()
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()
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.cc66 test_utils::ScopedTempFile boot_file_;
70 test_utils::WriteFileVector( in TEST_F()
95 test_utils::WriteFileVector( in TEST_F()
122 test_utils::WriteFileVector(boot_file_.path(), boot_img); in TEST_F()
134 test_utils::WriteFileVector(boot_file_.path(), in TEST_F()
Dab_generator_unittest.cc65 test_utils::FillWithData(&part_data); in TestSplitReplaceOrReplaceXzOperation()
73 test_utils::ScopedTempFile part_file( in TestSplitReplaceOrReplaceXzOperation()
75 ASSERT_TRUE(test_utils::WriteFileVector(part_file.path(), part_data)); in TestSplitReplaceOrReplaceXzOperation()
110 test_utils::ScopedTempFile data_file( in TestSplitReplaceOrReplaceXzOperation()
112 EXPECT_TRUE(test_utils::WriteFileVector(data_file.path(), op_blob)); in TestSplitReplaceOrReplaceXzOperation()
215 test_utils::FillWithData(&part_data); in TestMergeReplaceOrReplaceXzOperations()
223 test_utils::ScopedTempFile part_file( in TestMergeReplaceOrReplaceXzOperations()
225 ASSERT_TRUE(test_utils::WriteFileVector(part_file.path(), part_data)); in TestMergeReplaceOrReplaceXzOperations()
274 test_utils::ScopedTempFile data_file( in TestMergeReplaceOrReplaceXzOperations()
276 EXPECT_TRUE(test_utils::WriteFileVector(data_file.path(), blob_data)); in TestMergeReplaceOrReplaceXzOperations()
[all …]
Dpayload_signer_unittest.cc34 using chromeos_update_engine::test_utils::GetBuildArtifactsPath;
170 test_utils::ScopedTempFile payload_file("payload.XXXXXX"); in TEST_F()
197 test_utils::ScopedTempFile payload_file("payload.XXXXXX"); in TEST_F()
Ddelta_diff_utils_unittest.cc104 return test_utils::WriteFileVector(part.path, file_data); in InitializePartitionWithUniqueBlocks()
252 test_utils::FillWithData(&data_blob); in TEST_F()
284 test_utils::FillWithData(&data_blob); in TEST_F()
432 EXPECT_TRUE(test_utils::WriteFileVector(old_part_.path, partition_data)); in TEST_F()
433 EXPECT_TRUE(test_utils::WriteFileVector(new_part_.path, partition_data)); in TEST_F()
554 test_utils::GetBuildArtifactsPath("gen/disk_ext2_1k.img"))); in TEST_F()
556 test_utils::GetBuildArtifactsPath("gen/disk_ext2_4k.img"))); in TEST_F()
Dblob_file_writer_unittest.cc26 using chromeos_update_engine::test_utils::FillWithData;
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/
Dcertificate_parser_android_unittest.cc37 test_utils::GetBuildArtifactsPath(kUnittestOtacertsPath); in TEST()
52 test_utils::GetBuildArtifactsPath(kUnittestPrivateKeyPath), in TEST()
56 test_utils::GetBuildArtifactsPath(kUnittestOtacertsPath)); in TEST()
Dfilesystem_verifier_action_unittest.cc95 test_utils::ScopedTempFile a_loop_file("a_loop_file.XXXXXX"); in DoTest()
100 test_utils::FillWithData(&a_loop_data); in DoTest()
103 if (!(test_utils::WriteFileVector(a_loop_file.path(), a_loop_data))) { in DoTest()
110 test_utils::ScopedLoopbackDeviceBinder a_dev_releaser( in DoTest()
180 test_utils::ExpectVectorsEq(a_loop_data, a_out); in DoTest()
281 test_utils::ScopedTempFile part_file("part_file.XXXXXX"); in TEST_F()
286 ASSERT_TRUE(test_utils::WriteFileVector(part_file.path(), part_data)); in TEST_F()
288 test_utils::ScopedLoopbackDeviceBinder target_device( in TEST_F()
343 test_utils::ScopedTempFile part_file("part_file.XXXXXX"); in TEST_F()
347 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()
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()
Ddelta_performer_unittest.cc58 using test_utils::GetBuildArtifactsPath;
59 using test_utils::kRandomString;
60 using test_utils::System;
203 test_utils::ScopedTempFile blob_file("Blob-XXXXXX"); in GeneratePayload()
204 EXPECT_TRUE(test_utils::WriteFileVector(blob_file.path(), blob_data)); in GeneratePayload()
237 test_utils::ScopedTempFile payload_file("Payload-XXXXXX"); in GeneratePayload()
288 test_utils::ScopedTempFile new_part("Partition-XXXXXX"); in ApplyPayloadToData()
289 EXPECT_TRUE(test_utils::WriteFileVector(new_part.path(), target_data)); in ApplyPayloadToData()
592 test_utils::ScopedTempFile source("Source-XXXXXX"); in TEST_F()
593 EXPECT_TRUE(test_utils::WriteFileVector(source.path(), expected_data)); in TEST_F()
[all …]
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.cc54 using test_utils::GetBuildArtifactsPath;
55 using test_utils::kRandomString;
56 using test_utils::ScopedLoopMounter;
57 using test_utils::System;
225 test_utils::ScopedTempFile hash_file("hash.XXXXXX"), in SignGeneratedShellPayloadWithKeys()
239 vector<test_utils::ScopedTempFile> sig_files, metadata_sig_files; in SignGeneratedShellPayloadWithKeys()
246 test_utils::ScopedTempFile sig_file("signature.XXXXXX"); in SignGeneratedShellPayloadWithKeys()
247 ASSERT_TRUE(test_utils::WriteFileVector(sig_file.path(), signature)); in SignGeneratedShellPayloadWithKeys()
256 test_utils::ScopedTempFile metadata_sig_file("signature.XXXXXX"); in SignGeneratedShellPayloadWithKeys()
257 ASSERT_TRUE(test_utils::WriteFileVector(metadata_sig_file.path(), in SignGeneratedShellPayloadWithKeys()
[all …]
/system/update_engine/scripts/update_payload/
Dchecker_unittest.py39 from update_payload import test_utils
453 payload_gen = test_utils.PayloadGenerator()
457 payload_gen.SetBlockSize(test_utils.KiB(1))
459 payload_gen.SetBlockSize(test_utils.KiB(4))
474 rootfs_part_size = test_utils.MiB(8)
475 kernel_part_size = test_utils.KiB(512)
770 old_part_size = test_utils.MiB(4)
771 new_part_size = test_utils.MiB(8)
889 payload_gen = test_utils.PayloadGenerator()
891 block_size = test_utils.KiB(4)
[all …]
/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()
165 test_utils::ScopedTempFile file; in GetFileFormatTester()
394 test_utils::ScopedTempFile tmp_image("img.XXXXXX"); in TEST()
397 test_utils::GetBuildArtifactsPath().Append("gen/disk_ext2_4k.img"), in TEST()
404 test_utils::ScopedLoopbackDeviceBinder loop_binder( in TEST()
434 test_utils::ScopedTempFile file; in TEST()
476 test_utils::ScopedTempFile file; in TEST()
/system/update_engine/
Dhardware_chromeos_unittest.cc30 using chromeos_update_engine::test_utils::WriteFileString;
/system/core/fastboot/fuzzy_fastboot/
DAndroid.bp10 "test_utils.cpp",

12