From 492cec90c95d5aad9f515869fb1144426e08a304 Mon Sep 17 00:00:00 2001 From: wanchengzhen Date: Mon, 14 Feb 2022 15:58:27 +0800 Subject: [PATCH] Fix code for lts Signed-off-by: wanchengzhen --- .../test/mock/include/mock_bundle_manager_form.cpp | 12 ++++++------ .../test/mock/include/mock_bundle_manager_form.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frameworks/kits/ability/native/test/mock/include/mock_bundle_manager_form.cpp b/frameworks/kits/ability/native/test/mock/include/mock_bundle_manager_form.cpp index 5a86fcb283b..74ff547ad76 100644 --- a/frameworks/kits/ability/native/test/mock/include/mock_bundle_manager_form.cpp +++ b/frameworks/kits/ability/native/test/mock/include/mock_bundle_manager_form.cpp @@ -21,7 +21,7 @@ namespace OHOS { namespace AppExecFwk { -const std::string FORM_PROVIDER_BUNDLE_NAME = "com.form.provider.service"; +const std::string FORM_PROVIDER_BUNDLE_NAME = "com.form.supply.service"; const std::string PARAM_PROVIDER_PACKAGE_NAME = "com.form.provider.app.test.abiliy"; const std::string PARAM_PROVIDER_MODULE_NAME = "com.form.provider.app.test.abiliy"; const std::string FORM_PROVIDER_ABILITY_NAME = "com.form.provider.app.test.abiliy"; @@ -52,8 +52,8 @@ bool BundleMgrProxy::GetFormsInfoByApp(const std::string &bundleName, std::vecto return true; } bool BundleMgrProxy::GetFormsInfoByModule( - const std::string &bundleName, - const std::string &moduleName, + const std::string &bundleName, + const std::string &moduleName, std::vector &formInfo) { return true; @@ -90,7 +90,7 @@ bool BundleMgrService::GetBundleInfo(const std::string &bundleName, const Bundle std::vector abilityInfos; ApplicationInfo applicationInfo; ModuleInfo moduleInfo; - + moduleInfo.moduleSourceDir = FORM_PROVIDER_MODULE_SOURCE_DIR; moduleInfo.moduleName = PARAM_PROVIDER_MODULE_NAME; bundleInfo.name = bundleName; @@ -148,8 +148,8 @@ bool BundleMgrService::GetFormsInfoByApp(const std::string &bundleName, std::vec return true; } bool BundleMgrService::GetFormsInfoByModule( - const std::string &bundleName, - const std::string &moduleName, + const std::string &bundleName, + const std::string &moduleName, std::vector &formInfo) { FormInfo form; diff --git a/frameworks/kits/ability/native/test/mock/include/mock_bundle_manager_form.h b/frameworks/kits/ability/native/test/mock/include/mock_bundle_manager_form.h index 11a5eefb082..e1a877eb044 100644 --- a/frameworks/kits/ability/native/test/mock/include/mock_bundle_manager_form.h +++ b/frameworks/kits/ability/native/test/mock/include/mock_bundle_manager_form.h @@ -80,7 +80,7 @@ public: } virtual bool GetBundleNameForUid(const int uid, std::string &bundleName) override { - bundleName = "com.form.provider.service"; + bundleName = "com.form.supply.service"; return true; } virtual bool GetBundleGids(const std::string &bundleName, std::vector &gids) override @@ -269,7 +269,7 @@ public: }; virtual bool GetBundleNameForUid(const int uid, std::string &bundleName) override { - bundleName = "com.form.provider.service"; + bundleName = "com.form.supply.service"; return true; }; virtual bool GetBundleGids(const std::string &bundleName, std::vector &gids) override; -- Gitee