From 8e70a98e6baf5db5b4e9c1f203a39aa5dbe16d05 Mon Sep 17 00:00:00 2001 From: yanhuan Date: Mon, 19 May 2025 15:33:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E5=B7=A5=E5=85=B7=E9=80=9A?= =?UTF-8?q?=E7=94=A8=E8=A7=84=E8=8C=83=E5=91=8A=E8=AD=A6=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yanhuan --- .../app_packager_test/mock/mock_module_json_utils.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packing_tool/frameworks/test/unittest/app_packager_test/mock/mock_module_json_utils.cpp b/packing_tool/frameworks/test/unittest/app_packager_test/mock/mock_module_json_utils.cpp index 1e5ea8bf..0822dbf0 100644 --- a/packing_tool/frameworks/test/unittest/app_packager_test/mock/mock_module_json_utils.cpp +++ b/packing_tool/frameworks/test/unittest/app_packager_test/mock/mock_module_json_utils.cpp @@ -201,7 +201,8 @@ bool ModuleJsonUtils::GetHapVerifyInfosfromFileList(const std::list return true; } -bool ModuleJsonUtils::GetHapVerifyInfosMapfromFileList(const std::list& fileList, std::map>& hapVerifyInfoMap) +bool ModuleJsonUtils::GetHapVerifyInfosMapfromFileList(const std::list& fileList, + std::map>& hapVerifyInfoMap) { for (auto& hapPath : fileList) { if (hapPath.empty()) { @@ -236,7 +237,8 @@ bool ModuleJsonUtils::GetHapVerifyInfosMapfromFileList(const std::list parameterMap, std::map>& hapVerifyInfoMap) +bool ModuleJsonUtils::CheckAppAtomicServiceCompressedSizeValid(std::map parameterMap, + std::map>& hapVerifyInfoMap) { std::string packMode; std::string outPath; @@ -246,7 +248,8 @@ bool ModuleJsonUtils::CheckAppAtomicServiceCompressedSizeValid(std::map fileNameBuffer(fileInfo.size_filename + 1); if (unzGetCurrentFileInfo(zipApp, &fileInfo, fileNameBuffer.data(), fileNameBuffer.size(), - nullptr, 0, nullptr, 0) != UNZ_OK) { + nullptr, 0, nullptr, 0) != UNZ_OK) { unzClose(zipApp); LOGE("ModuleJsonUtils::CheckAppAtomicServiceCompressedSizeValid: failed to get file info (phase 2)"); return false; -- Gitee