diff --git a/frameworks/ans/test/moduletest/mock/include/mock_bundle_manager.h b/frameworks/ans/test/moduletest/mock/include/mock_bundle_manager.h index 3f04edd54e985e20434f983247b3b69aa334c971..ef8c340aa619f52ae091bc7069378f9e9da6153f 100644 --- a/frameworks/ans/test/moduletest/mock/include/mock_bundle_manager.h +++ b/frameworks/ans/test/moduletest/mock/include/mock_bundle_manager.h @@ -205,16 +205,6 @@ public: { return true; }; - /** - * @brief Obtains the label of a specified ability. - * @param bundleName Indicates the bundle name. - * @param className Indicates the ability class name. - * @return Returns the label of the ability if exist; returns empty string otherwise. - */ - virtual std::string GetAbilityLabel(const std::string &bundleName, const std::string &className) override - { - return ""; - } /** * @brief Obtains information about an application bundle contained in a ohos Ability Package (HAP). * @param hapFilePath Indicates the absolute file path of the HAP. @@ -479,16 +469,6 @@ public: { return true; } - /** - * @brief Obtains the icon of a specified ability. - * @param bundleName Indicates the bundle name. - * @param className Indicates the ability class name. - * @return Returns the icon resource string of the ability if exist; returns empty string otherwise. - */ - virtual std::string GetAbilityIcon(const std::string &bundleName, const std::string &className) override - { - return "abilityicon"; - } /** * @brief Obtains the interface used to install and uninstall bundles. * @return Returns a pointer to IBundleInstaller class if exist; returns nullptr otherwise. diff --git a/frameworks/ans/test/moduletest/mock/mock_bundle_mgr_proxy.cpp b/frameworks/ans/test/moduletest/mock/mock_bundle_mgr_proxy.cpp index 3e5817f3e8639b0c48b6625580e5737b482f6d2f..33f47e0207d0087a89516a950c8efc5674a481fa 100644 --- a/frameworks/ans/test/moduletest/mock/mock_bundle_mgr_proxy.cpp +++ b/frameworks/ans/test/moduletest/mock/mock_bundle_mgr_proxy.cpp @@ -124,11 +124,6 @@ bool BundleMgrProxy::QueryKeepAliveBundleInfos(std::vector &bundleIn return true; } -std::string BundleMgrProxy::GetAbilityLabel(const std::string &bundleName, const std::string &className) -{ - return "reply.ReadString()"; -} - bool BundleMgrProxy::GetBundleArchiveInfo(const std::string &hapFilePath, const BundleFlag flag, BundleInfo &bundleInfo) { return true; @@ -220,11 +215,6 @@ bool BundleMgrProxy::IsAbilityEnabled(const AbilityInfo &abilityInfo) return true; } -std::string BundleMgrProxy::GetAbilityIcon(const std::string &bundleName, const std::string &className) -{ - return "AbilityIcon"; -} - bool BundleMgrProxy::CanRequestPermission( const std::string &bundleName, const std::string &permissionName, const int userId) { diff --git a/services/test/moduletest/mock/include/mock_bundle_manager.h b/services/test/moduletest/mock/include/mock_bundle_manager.h index feedce914e6c444cc7e32db5a597ac1413532035..fce122935b23cf45c31243fef746dcdc82f2f8f8 100644 --- a/services/test/moduletest/mock/include/mock_bundle_manager.h +++ b/services/test/moduletest/mock/include/mock_bundle_manager.h @@ -175,16 +175,6 @@ public: { return true; }; - /** - * @brief Obtains the label of a specified ability. - * @param bundleName Indicates the bundle name. - * @param className Indicates the ability class name. - * @return Returns the label of the ability if exist; returns empty string otherwise. - */ - virtual std::string GetAbilityLabel(const std::string &bundleName, const std::string &className) override - { - return ""; - } /** * @brief Obtains information about an application bundle contained in a ohos Ability Package (HAP). * @param hapFilePath Indicates the absolute file path of the HAP. diff --git a/services/test/moduletest/mock/mock_bundle_mgr_proxy.cpp b/services/test/moduletest/mock/mock_bundle_mgr_proxy.cpp index f40336c905ff100728728da1c1ae7b9bf6567122..fb865c55d9a4ffdc23ca82016e6295d7b9fe5430 100644 --- a/services/test/moduletest/mock/mock_bundle_mgr_proxy.cpp +++ b/services/test/moduletest/mock/mock_bundle_mgr_proxy.cpp @@ -115,11 +115,6 @@ bool BundleMgrProxy::QueryKeepAliveBundleInfos(std::vector &bundleIn return true; } -std::string BundleMgrProxy::GetAbilityLabel(const std::string &bundleName, const std::string &className) -{ - return "reply.ReadString()"; -} - bool BundleMgrProxy::GetBundleArchiveInfo(const std::string &hapFilePath, const BundleFlag flag, BundleInfo &bundleInfo) { return true; @@ -213,11 +208,6 @@ bool BundleMgrProxy::IsAbilityEnabled(const AbilityInfo &abilityInfo) return true; } -std::string BundleMgrProxy::GetAbilityIcon(const std::string &bundleName, const std::string &className) -{ - return "AbilityIcon"; -} - bool BundleMgrProxy::CanRequestPermission( const std::string &bundleName, const std::string &permissionName, const int userId) {