Home
last modified time | relevance | path

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

12

/system/update_engine/payload_generator/
Dext2_filesystem_unittest.cc64 test_utils::ScopedTempFile fs_filename_{"Ext2FilesystemTest-XXXXXX"}; in TEST_F()
76 test_utils::GetBuildArtifactsPath().Append("gen/disk_ext2_4k_empty.img"); in TEST_F()
104 base::FilePath build_path = test_utils::GetBuildArtifactsPath().Append("gen"); in TEST_F()
181 base::FilePath path = test_utils::GetBuildArtifactsPath().Append( in TEST_F()
193 test_utils::GetBuildArtifactsPath().Append("gen/disk_ext2_unittest.img"); 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()
Dblob_file_writer_unittest.cc26 using chromeos_update_engine::test_utils::FillWithData;
Ddelta_diff_utils_unittest.cc100 return test_utils::WriteFileVector(part.path, file_data); in InitializePartitionWithUniqueBlocks()
166 test_utils::FillWithData(&data_blob); in TEST_F()
286 test_utils::FillWithData(&data_blob); in TEST_F()
377 test_utils::FillWithData(&data_blob); in TEST_F()
407 test_utils::FillWithData(&data_blob); in TEST_F()
586 EXPECT_TRUE(test_utils::WriteFileVector(old_part_.path, partition_data)); in TEST_F()
587 EXPECT_TRUE(test_utils::WriteFileVector(new_part_.path, partition_data)); in TEST_F()
Dzip_unittest.cc33 using chromeos_update_engine::test_utils::kRandomString;
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/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.cc146 test_utils::FillWithData(&a_loop_data); in DoTest()
149 if (!(test_utils::WriteFileVector(a_loop_file, a_loop_data))) { in DoTest()
156 test_utils::ScopedLoopbackDeviceBinder a_dev_releaser( in DoTest()
238 test_utils::ExpectVectorsEq(a_loop_data, a_out); in DoTest()
339 test_utils::CreateExtImageAtPath(img, nullptr); in TEST_F()
Ddownload_action_unittest.cc55 using test_utils::ScopedTempFile;
520 if (!test_utils::IsXAttrSupported(FilePath("/tmp"))) { in TEST_F()
543 if (!test_utils::IsXAttrSupported(FilePath("/tmp"))) { in TEST_F()
559 if (!test_utils::IsXAttrSupported(FilePath("/tmp"))) { in TEST_F()
596 if (!test_utils::IsXAttrSupported(FilePath("/tmp"))) { in TEST_F()
Dpostinstall_runner_action_unittest.cc44 using chromeos_update_engine::test_utils::ScopedLoopbackDeviceBinder;
96 postinstall_image_ = test_utils::GetBuildArtifactsPath() in SetUp()
122 test_utils::Readlink(base::StringPrintf( in SuspendRunningAction()
Ddelta_performer_integration_test.cc50 using test_utils::ScopedLoopMounter;
51 using test_utils::System;
52 using test_utils::kRandomString;
252 ASSERT_TRUE(test_utils::WriteFileVector(hash_file, hash)); in SignGeneratedShellPayload()
313 test_utils::CreateExtImageAtPath(state->a_img, nullptr); in GenerateDeltaFile()
392 test_utils::CreateExtImageAtPath(state->b_img, nullptr); in GenerateDeltaFile()
474 test_utils::FillWithData(&state->old_kernel_data); in GenerateDeltaFile()
475 test_utils::FillWithData(&state->new_kernel_data); in GenerateDeltaFile()
476 test_utils::FillWithData(&state->result_kernel_data); in GenerateDeltaFile()
Ddelta_performer_unittest.cc52 using test_utils::System;
53 using test_utils::kRandomString;
/system/update_engine/update_manager/
Dreal_config_provider_unittest.cc31 using chromeos_update_engine::test_utils::WriteFileString;
/system/update_engine/
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()
Domaha_response_handler_action_unittest.cc32 using chromeos_update_engine::test_utils::System;
33 using chromeos_update_engine::test_utils::WriteFileString;
Domaha_request_params_unittest.cc33 using chromeos_update_engine::test_utils::WriteFileString;
Dupdate_engine.gyp494 'common/test_utils.cc',
DAndroid.mk835 common/test_utils.cc \
Domaha_request_action_unittest.cc54 using chromeos_update_engine::test_utils::System;
55 using chromeos_update_engine::test_utils::WriteFileString;
/system/core/base/
DAndroid.mk25 test_utils.cpp \
/system/update_engine/common/
Dutils_unittest.cc199 test_utils::CreateExtImageAtPath(img, nullptr); in TEST()
201 EXPECT_EQ(0, test_utils::System(base::StringPrintf( in TEST()
282 test_utils::ScopedTempFile file; in GetFileFormatTester()
Dtest_utils.h49 namespace test_utils {
Dtest_utils.cc61 namespace test_utils { namespace

12