Home
last modified time | relevance | path

Searched refs:TEST_PATH_FROM (Results 1 – 9 of 9) sorted by relevance

/base/update/updater/test/unittest/diffpatch/
Ddiffpatch_unittest.cpp49 int32_t ret = UpdatePatch::UpdateDiff::DiffBlock(TEST_PATH_FROM + oldFile, in BlockDiffPatchTest()
50 TEST_PATH_FROM + newFile, TEST_PATH_FROM + patchFile); in BlockDiffPatchTest()
52 ret = UpdatePatch::UpdateApplyPatch::ApplyPatch(TEST_PATH_FROM + patchFile, in BlockDiffPatchTest()
53 TEST_PATH_FROM + oldFile, TEST_PATH_FROM + restoreFile); in BlockDiffPatchTest()
56 std::string expected = GeneraterHash(TEST_PATH_FROM + newFile); in BlockDiffPatchTest()
57 std::string restoreHash = GeneraterHash(TEST_PATH_FROM + restoreFile); in BlockDiffPatchTest()
65 int32_t ret = UpdatePatch::UpdateDiff::DiffImage(limit, TEST_PATH_FROM + oldFile, in ImgageDiffPatchFileTest()
66 TEST_PATH_FROM + newFile, TEST_PATH_FROM + patchFile); in ImgageDiffPatchFileTest()
68 ret = UpdatePatch::UpdateApplyPatch::ApplyPatch(TEST_PATH_FROM + patchFile, in ImgageDiffPatchFileTest()
69 TEST_PATH_FROM + oldFile, TEST_PATH_FROM + restoreFile); in ImgageDiffPatchFileTest()
[all …]
Dbzip2_unittest.cpp75 std::string fileName = TEST_PATH_FROM; in BZip2AdapterBufferTest()
129 std::string fileName = TEST_PATH_FROM; in BZip2AdapterAddMoreTest()
221 if (PatchMapFile(TEST_PATH_FROM + fileName, memInfo) != 0) { in DeflateAdapterTest()
/base/update/updater/test/unittest/
Dunittest_comm.h28 const std::string TEST_PATH_FROM = "/data/updater/src/"; variable
33 std::string name = TEST_PATH_FROM;
44 std::string name = TEST_PATH_FROM;
/base/update/updater/test/unittest/script/
Dscript_unittest.cpp64 fileInfo.unpackedSize = GetFileSize(TEST_PATH_FROM + fileId); in GetFileInfo()
86 auto fd = open((TEST_PATH_FROM + fileId).c_str(), O_RDWR); in ExtractFile()
88 PKG_LOGE("file %s not existed", (TEST_PATH_FROM + fileId).c_str()); in ExtractFile()
118 if (realpath((TEST_PATH_FROM + fileNameReal).c_str(), realPath) == nullptr) { in CreatePkgStream()
119 LOG(ERROR) << (TEST_PATH_FROM + fileNameReal) << " realpath failed"; in CreatePkgStream()
228 verifier.LoadHashDataAndPkcs7(TEST_PATH_FROM + "updater_fake_pkg.zip"); in TestUscriptExecute()
/base/update/updater/test/unittest/utils/
Dutils_unittest.cpp89 path = TEST_PATH_FROM + "../utils/nonExistDir";
/base/update/updater/test/unittest/package/
Dpackage_unittest.cpp104 filePath = TEST_PATH_FROM; in TestPackagePack()
153 …return CreateZipPackage(testFileNames_, TEST_PATH_TO + testZipPackageName, TEST_PATH_FROM, digestM… in TestZipPkgCompress()
Dpkg_algo_unittest.cpp119 …SignAlgorithm::SignAlgorithmPtr sign = PkgAlgorithmFactory::GetSignAlgorithm(TEST_PATH_FROM, inval… in TestInvalidParam()
Dpkg_manager_unittest.cpp112 filePath = TEST_PATH_FROM; in GetUpgradePkgInfo()
404 std::string testFileName = TEST_PATH_FROM + "../diffpatch/PatchLz4test_new.lz4"; in TestDecompressLz4()
516 std::string testFileName = TEST_PATH_FROM + "../applypatch/TestDecompressGzip.new.gz"; in TestDecompressGzip()
/base/update/updater/test/unittest/updater_binary/
Dupdater_binary_unittest.cpp197 std::string filePath = TEST_PATH_FROM; in BuildCompnentInfo()