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 5a86fcb283b3e579cef72fde78ffef92b8a4de6b..74ff547ad76e877bd49c9142a4a3cf5190f33756 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 11a5eefb082ea6884f4d9def0efdbf82de48beb9..e1a877eb044e16ebfc5684f96ec872c422c274f1 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;