Home
last modified time | relevance | path

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

123

/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()
Dverity_writer_android_unittest.cc53 test_utils::WriteFileVector(partition_.target_path, part_data); in TEST_F()
101 test_utils::WriteFileVector(partition_.target_path, part_data); in TEST_F()
124 test_utils::WriteFileVector(partition_.target_path, part_data); in TEST_F()
150 test_utils::WriteFileVector(partition_.target_path, part_data); in TEST_F()
Dfilesystem_verifier_action_unittest.cc90 test_utils::FillWithData(&part_data); in SetUp()
95 test_utils::FillWithData(&part_data); in SetUp()
261 test_utils::FillWithData(&a_loop_data); in DoTest()
264 if (!(test_utils::WriteFileVector(a_loop_file.path(), a_loop_data))) { in DoTest()
271 test_utils::ScopedLoopbackDeviceBinder a_dev_releaser( in DoTest()
336 test_utils::ExpectVectorsEq(a_loop_data, a_out); in DoTest()
447 ASSERT_TRUE(test_utils::WriteFileVector(part_file.path(), part_data)); in TEST_F()
449 test_utils::ScopedLoopbackDeviceBinder target_device( in TEST_F()
507 test_utils::FillWithData(&part_data); in TEST_F()
508 ASSERT_TRUE(test_utils::WriteFileVector(part_file.path(), part_data)); in TEST_F()
[all …]
Dbzip_extent_writer_unittest.cc109 test_utils::ExpectVectorsEq(original_compressed_data, compressed_data); in TEST_F()
114 test_utils::ExpectVectorsEq(decompressed_data, output); in TEST_F()
Dextent_writer_unittest.cc34 using chromeos_update_engine::test_utils::ExpectVectorsEq;
108 test_utils::FillWithData(&data); in WriteAlignedExtents()
148 test_utils::FillWithData(&data); in TEST_F()
Ddelta_performer_integration_test.cc59 using test_utils::GetBuildArtifactsPath;
60 using test_utils::kRandomString;
61 using test_utils::ScopedLoopMounter;
62 using test_utils::System;
288 test_utils::WriteFileVector(sig_files.back().path(), signature)); in SignGeneratedShellPayloadWithKeys()
297 ASSERT_TRUE(test_utils::WriteFileVector(metadata_sig_files.back().path(), in SignGeneratedShellPayloadWithKeys()
478 test_utils::WriteFileString(mnt_path.Append("foo").value(), "foo")); in GenerateDeltaFile()
506 EXPECT_TRUE(test_utils::WriteFileString( in GenerateDeltaFile()
528 test_utils::FillWithData(&state->old_kernel_data); in GenerateDeltaFile()
529 test_utils::FillWithData(&state->new_kernel_data); in GenerateDeltaFile()
[all …]
Dpartition_writer_unittest.cc127 EXPECT_TRUE(test_utils::WriteFileVector(source.path(), expected_data)); in TEST_F()
180 EXPECT_TRUE(test_utils::WriteFileVector(source.path(), invalid_data)); in TEST_F()
/system/update_engine/payload_generator/
Dpayload_generation_config_android_unittest.cc146 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
164 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
184 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
193 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
201 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
208 test_utils::WriteFileString(temp_file_.path(), "tiny"); in TEST_F()
Dfull_update_generator_unittest.cc29 using chromeos_update_engine::test_utils::FillWithData;
70 EXPECT_TRUE(test_utils::WriteFileVector(new_part_conf.path, new_part)); in TEST_F()
101 EXPECT_TRUE(test_utils::WriteFileVector(new_part_conf.path, new_part)); in TEST_F()
122 EXPECT_TRUE(test_utils::WriteFileVector(new_part_conf.path, new_part)); in TEST_F()
Dblock_mapping_unittest.cc57 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()
Dmapfile_filesystem_unittest.cc79 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()
Dboot_img_filesystem_unittest.cc70 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()
Ddelta_diff_utils_unittest.cc103 return test_utils::WriteFileVector(part.path, file_data); in InitializePartitionWithUniqueBlocks()
242 test_utils::FillWithData(&data_blob); in TEST_F()
274 test_utils::FillWithData(&data_blob); in TEST_F()
422 EXPECT_TRUE(test_utils::WriteFileVector(old_part_.path, partition_data)); in TEST_F()
423 EXPECT_TRUE(test_utils::WriteFileVector(new_part_.path, partition_data)); in TEST_F()
544 test_utils::GetBuildArtifactsPath("gen/disk_ext2_1k.img"))); in TEST_F()
546 test_utils::GetBuildArtifactsPath("gen/disk_ext2_4k.img"))); in TEST_F()
Dblob_file_writer_unittest.cc26 using chromeos_update_engine::test_utils::FillWithData;
Dab_generator_unittest.cc65 test_utils::FillWithData(&part_data); in TestSplitReplaceOrReplaceXzOperation()
74 ASSERT_TRUE(test_utils::WriteFileVector(part_file.path(), part_data)); in TestSplitReplaceOrReplaceXzOperation()
110 EXPECT_TRUE(test_utils::WriteFileVector(data_file.path(), op_blob)); in TestSplitReplaceOrReplaceXzOperation()
213 test_utils::FillWithData(&part_data); in TestMergeReplaceOrReplaceXzOperations()
222 ASSERT_TRUE(test_utils::WriteFileVector(part_file.path(), part_data)); in TestMergeReplaceOrReplaceXzOperations()
272 EXPECT_TRUE(test_utils::WriteFileVector(data_file.path(), blob_data)); in TestMergeReplaceOrReplaceXzOperations()
562 test_utils::FillWithData(&src_data); in TEST_F()
563 ASSERT_TRUE(test_utils::WriteFileVector(src_part_file.path(), src_data)); in TEST_F()
Dzip_unittest.cc33 using chromeos_update_engine::test_utils::kRandomString;
164 string path = test_utils::GetBuildArtifactsPath("delta_generator"); in TYPED_TEST()
Dpayload_file_unittest.cc46 EXPECT_TRUE(test_utils::WriteFileString(orig_blobs.path(), orig_data)); in TEST_F()
/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/extras/simpleperf/scripts/test/
Drun_simpleperf_on_device_test.py17 from . test_utils import TestBase
Dinferno_test.py21 from . test_utils import INFERNO_SCRIPT, TestBase, TestHelper
Dpurgatorio_test.py22 from . test_utils import TestBase, TestHelper
Ddebug_unwind_reporter_test.py19 from . test_utils import TestBase, TestHelper
/system/update_engine/common/
Dhash_calculator_unittest.cc108 ASSERT_TRUE(test_utils::WriteFileString(data_file.path(), "hi")); in TEST_F()
130 ASSERT_TRUE(test_utils::WriteFileString(data_file.path(), "hi")); in TEST_F()
/system/update_engine/cros/
Drequisition_util_unittest.cc28 using chromeos_update_engine::test_utils::WriteFileString;
Dhardware_chromeos_unittest.cc30 using chromeos_update_engine::test_utils::WriteFileString;

123