From f0920a97e71169dc13f51621943e4d5577654760 Mon Sep 17 00:00:00 2001 From: shuaiyutao Date: Sun, 27 Feb 2022 12:42:41 +0800 Subject: [PATCH] fix GetAbilityIcon Change-Id: Id347e954d39385b69eadaede8973141a12155c3b --- .../moduletest/mock/include/mock_bundle_manager.h | 12 +----------- .../test/moduletest/mock/mock_bundle_mgr_proxy.cpp | 5 ----- .../test/moduletest/mock/mock_bundle_mgr_proxy.cpp | 5 ----- 3 files changed, 1 insertion(+), 21 deletions(-) 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 ce1ef007f..d3d62b2c3 100644 --- a/frameworks/ans/test/moduletest/mock/include/mock_bundle_manager.h +++ b/frameworks/ans/test/moduletest/mock/include/mock_bundle_manager.h @@ -479,16 +479,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. @@ -520,4 +510,4 @@ private: } // namespace AppExecFwk } // namespace OHOS -#endif // FOUNDATION_EVENT_CESFWK_SERVICES_TEST_UNITTEST_MOCK_INCLUDE_MOCK_BUNDLE_MANAGER_H \ No newline at end of file +#endif // FOUNDATION_EVENT_CESFWK_SERVICES_TEST_UNITTEST_MOCK_INCLUDE_MOCK_BUNDLE_MANAGER_H 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 3e5817f3e..6a59cf22d 100644 --- a/frameworks/ans/test/moduletest/mock/mock_bundle_mgr_proxy.cpp +++ b/frameworks/ans/test/moduletest/mock/mock_bundle_mgr_proxy.cpp @@ -220,11 +220,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/mock_bundle_mgr_proxy.cpp b/services/test/moduletest/mock/mock_bundle_mgr_proxy.cpp index f40336c90..83acee790 100644 --- a/services/test/moduletest/mock/mock_bundle_mgr_proxy.cpp +++ b/services/test/moduletest/mock/mock_bundle_mgr_proxy.cpp @@ -213,11 +213,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) { -- Gitee