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 1e5ea8bf9866c1152c159d1c67c74a9d478b64e8..0822dbf073d5cd43d57bffa8016a83f9aa1f476b 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;