Home
last modified time | relevance | path

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

12

/system/update_engine/payload_generator/
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.cc28 using chromeos_update_engine::test_utils::FillWithData;
78 EXPECT_TRUE(test_utils::WriteFileVector(new_part_conf.path, new_part)); in TEST_F()
109 EXPECT_TRUE(test_utils::WriteFileVector(new_part_conf.path, new_part)); in TEST_F()
130 EXPECT_TRUE(test_utils::WriteFileVector(new_part_conf.path, new_part)); in TEST_F()
Dblock_mapping_unittest.cc75 test_utils::WriteFileString(old_part_path_, string(block_size_, 'a')); in TEST_F()
110 test_utils::WriteFileString(old_part_path_, old_contents); in TEST_F()
117 test_utils::WriteFileString(new_part_path_, new_contents); in TEST_F()
Ddelta_diff_utils_unittest.cc101 return test_utils::WriteFileVector(part.path, file_data); in InitializePartitionWithUniqueBlocks()
167 test_utils::FillWithData(&data_blob); in TEST_F()
287 test_utils::FillWithData(&data_blob); in TEST_F()
378 test_utils::FillWithData(&data_blob); in TEST_F()
408 test_utils::FillWithData(&data_blob); in TEST_F()
587 EXPECT_TRUE(test_utils::WriteFileVector(old_part_.path, partition_data)); in TEST_F()
588 EXPECT_TRUE(test_utils::WriteFileVector(new_part_.path, partition_data)); in TEST_F()
709 test_utils::GetBuildArtifactsPath("gen/disk_ext2_1k.img"))); in TEST_F()
711 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;
Dpayload_signer_unittest.cc33 using chromeos_update_engine::test_utils::GetBuildArtifactsPath;
Dab_generator_unittest.cc67 test_utils::FillWithData(&part_data); in TestSplitReplaceOrReplaceBzOperation()
220 test_utils::FillWithData(&part_data); in TestMergeReplaceOrReplaceBzOperations()
584 test_utils::FillWithData(&src_data); in TEST_F()
/system/update_engine/scripts/update_payload/
Dchecker_unittest.py26 import test_utils
412 payload_gen = test_utils.PayloadGenerator()
416 payload_gen.SetBlockSize(test_utils.KiB(1))
418 payload_gen.SetBlockSize(test_utils.KiB(4))
433 rootfs_part_size = test_utils.MiB(8)
434 kernel_part_size = test_utils.KiB(512)
845 old_part_size = test_utils.MiB(4)
846 new_part_size = test_utils.MiB(8)
960 payload_gen = test_utils.PayloadGenerator()
962 block_size = test_utils.KiB(4)
[all …]
/system/update_engine/payload_consumer/
Dbzip_extent_writer_unittest.cc54 test_utils::ScopedTempFile temp_file_{"BzipExtentWriterTest-file.XXXXXX"};
124 test_utils::ExpectVectorsEq(original_compressed_data, compressed_data); in TEST_F()
129 test_utils::ExpectVectorsEq(decompressed_data, output); in TEST_F()
Dextent_writer_unittest.cc33 using chromeos_update_engine::test_utils::ExpectVectorsEq;
64 test_utils::ScopedTempFile temp_file_{"ExtentWriterTest-file.XXXXXX"};
133 test_utils::FillWithData(&data); in WriteAlignedExtents()
185 test_utils::FillWithData(&data); in TestZeroPad()
234 test_utils::FillWithData(&data); in TEST_F()
Dfilesystem_verifier_action_unittest.cc127 test_utils::FillWithData(&a_loop_data); in DoTest()
130 if (!(test_utils::WriteFileVector(a_loop_file, a_loop_data))) { in DoTest()
137 test_utils::ScopedLoopbackDeviceBinder a_dev_releaser( in DoTest()
213 test_utils::ExpectVectorsEq(a_loop_data, a_out); in DoTest()
Ddelta_performer_integration_test.cc51 using test_utils::GetBuildArtifactsPath;
52 using test_utils::ScopedLoopMounter;
53 using test_utils::System;
54 using test_utils::kRandomString;
270 ASSERT_TRUE(test_utils::WriteFileVector(sig_file, signature)); in SignGeneratedShellPayload()
279 ASSERT_TRUE(test_utils::WriteFileVector(sig_file2, signature)); in SignGeneratedShellPayload()
416 test_utils::WriteFileString(mnt_path.Append("foo").value(), "foo")); in GenerateDeltaFile()
440 EXPECT_TRUE(test_utils::WriteFileString( in GenerateDeltaFile()
473 test_utils::FillWithData(&state->old_kernel_data); in GenerateDeltaFile()
474 test_utils::FillWithData(&state->new_kernel_data); in GenerateDeltaFile()
[all …]
Dpostinstall_runner_action_unittest.cc45 using chromeos_update_engine::test_utils::ScopedLoopbackDeviceBinder;
94 test_utils::GetBuildArtifactsPath("gen/disk_ext2_unittest.img"); in SetUp()
112 test_utils::Readlink(base::StringPrintf( in SuspendRunningAction()
Ddownload_action_unittest.cc55 using test_utils::ScopedTempFile;
523 if (!test_utils::IsXAttrSupported(FilePath("/tmp"))) { in TEST_F()
546 if (!test_utils::IsXAttrSupported(FilePath("/tmp"))) { in TEST_F()
562 if (!test_utils::IsXAttrSupported(FilePath("/tmp"))) { in TEST_F()
599 if (!test_utils::IsXAttrSupported(FilePath("/tmp"))) { in TEST_F()
Ddelta_performer_unittest.cc53 using test_utils::GetBuildArtifactsPath;
54 using test_utils::System;
55 using test_utils::kRandomString;
904 test_utils::GetBuildArtifactsPath("zlib_fingerprint"); in TEST_F()
/system/update_engine/
Dtestrunner.cc53 ":" + chromeos_update_engine::test_utils::GetBuildArtifactsPath().value(); in main()
Dhardware_chromeos_unittest.cc30 using chromeos_update_engine::test_utils::WriteFileString;
Dp2p_manager_unittest.cc343 if (!test_utils::IsXAttrSupported(base::FilePath("/tmp"))) { in TEST_F()
365 if (!test_utils::IsXAttrSupported(base::FilePath("/tmp"))) { in TEST_F()
391 if (!test_utils::IsXAttrSupported(base::FilePath("/tmp"))) { in TEST_F()
Dimage_properties_chromeos_unittest.cc29 using chromeos_update_engine::test_utils::WriteFileString;
Domaha_response_handler_action_unittest.cc33 using chromeos_update_engine::test_utils::System;
34 using chromeos_update_engine::test_utils::WriteFileString;
Domaha_request_params_unittest.cc34 using chromeos_update_engine::test_utils::WriteFileString;
/system/update_engine/common/
Dutils_unittest.cc206 test_utils::ScopedTempFile file; in GetFileFormatTester()
471 test_utils::GetBuildArtifactsPath().Append("gen/disk_ext2_4k.img"), in TEST()
478 test_utils::ScopedLoopbackDeviceBinder loop_binder( in TEST()
/system/core/base/
DAndroid.bp54 "test_utils.cpp",

12