From 2396c22d030890f0ddc7b48ba92eb84a789166f0 Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Sat, 12 Feb 2022 16:22:42 +0800 Subject: [PATCH] IssueNo: #I4TE3B : bm adapt multi-user Description: bm adapt multi-user Sig:SIG_ApplicaitonFramework Feature or Bugfix:BugFix Binary Source:No Signed-off-by: wangtiantian --- .../mock/include/mock_bundle_manager.h | 33 ------------------- .../moduletest/mock/mock_bundle_mgr_proxy.cpp | 16 --------- .../mock/include/mock_bundle_manager.h | 22 ------------- .../moduletest/mock/mock_bundle_mgr_proxy.cpp | 15 --------- 4 files changed, 86 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 da5c07196..ce1ef007f 100644 --- a/frameworks/ans/test/moduletest/mock/include/mock_bundle_manager.h +++ b/frameworks/ans/test/moduletest/mock/include/mock_bundle_manager.h @@ -413,17 +413,6 @@ public: { return true; } - /** - * @brief Clears cache data of a specified application. - * @param bundleName Indicates the bundle name of the application whose cache data is to be cleared. - * @param cleanCacheCallback Indicates the callback to be invoked for returning the operation result. - * @return Returns true if this function is successfully called; returns false otherwise. - */ - virtual bool CleanBundleCacheFiles( - const std::string &bundleName, const sptr &cleanCacheCallback) override - { - return true; - } /** * @brief Clears application running data of a specified application. * @param bundleName Indicates the bundle name of the application whose data is to be cleared. @@ -481,17 +470,6 @@ public: { return true; } - /** - * @brief Sets whether to enable a specified application. - * @param bundleName Indicates the bundle name of the application. - * @param isEnable Specifies whether to enable the application. - * The value true means to enable it, and the value false means to disable it. - * @return Returns true if the application is enabled; returns false otherwise. - */ - virtual bool SetApplicationEnabled(const std::string &bundleName, bool isEnable) override - { - return true; - } /** * @brief Sets whether to enable a specified ability. * @param abilityInfo Indicates information about the ability to check. @@ -511,17 +489,6 @@ public: { return "abilityicon"; } - /** - * @brief Sets whether to enable a specified ability. - * @param abilityInfo Indicates information about the ability. - * @param isEnabled Specifies whether to enable the ability. - * The value true means to enable it, and the value false means to disable it. - * @return Returns true if the ability is enabled; returns false otherwise. - */ - virtual bool SetAbilityEnabled(const AbilityInfo &abilityInfo, bool isEnabled) override - { - return true; - } /** * @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 77116bd9a..3e5817f3e 100644 --- a/frameworks/ans/test/moduletest/mock/mock_bundle_mgr_proxy.cpp +++ b/frameworks/ans/test/moduletest/mock/mock_bundle_mgr_proxy.cpp @@ -185,12 +185,6 @@ bool BundleMgrProxy::IsSafeMode() return true; } -bool BundleMgrProxy::CleanBundleCacheFiles( - const std::string &bundleName, const sptr &cleanCacheCallback) -{ - return true; -} - bool BundleMgrProxy::CleanBundleDataFiles(const std::string &bundleName, const int userId) { return true; @@ -221,21 +215,11 @@ bool BundleMgrProxy::IsApplicationEnabled(const std::string &bundleName) return true; } -bool BundleMgrProxy::SetApplicationEnabled(const std::string &bundleName, bool isEnable) -{ - return true; -} - bool BundleMgrProxy::IsAbilityEnabled(const AbilityInfo &abilityInfo) { return true; } -bool BundleMgrProxy::SetAbilityEnabled(const AbilityInfo &abilityInfo, bool isEnabled) -{ - return true; -} - std::string BundleMgrProxy::GetAbilityIcon(const std::string &bundleName, const std::string &className) { return "AbilityIcon"; diff --git a/services/test/moduletest/mock/include/mock_bundle_manager.h b/services/test/moduletest/mock/include/mock_bundle_manager.h index 47b0164da..ab205c7aa 100644 --- a/services/test/moduletest/mock/include/mock_bundle_manager.h +++ b/services/test/moduletest/mock/include/mock_bundle_manager.h @@ -319,17 +319,6 @@ public: { return true; } - /** - * @brief Clears cache data of a specified application. - * @param bundleName Indicates the bundle name of the application whose cache data is to be cleared. - * @param cleanCacheCallback Indicates the callback to be invoked for returning the operation result. - * @return Returns true if this function is successfully called; returns false otherwise. - */ - virtual bool CleanBundleCacheFiles( - const std::string &bundleName, const sptr &cleanCacheCallback) override - { - return true; - } /** * @brief Clears application running data of a specified application. * @param bundleName Indicates the bundle name of the application whose data is to be cleared. @@ -387,17 +376,6 @@ public: { return true; } - /** - * @brief Sets whether to enable a specified application. - * @param bundleName Indicates the bundle name of the application. - * @param isEnable Specifies whether to enable the application. - * The value true means to enable it, and the value false means to disable it. - * @return Returns true if the application is enabled; returns false otherwise. - */ - virtual bool SetApplicationEnabled(const std::string &bundleName, bool isEnable) override - { - return true; - } /** * @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/services/test/moduletest/mock/mock_bundle_mgr_proxy.cpp b/services/test/moduletest/mock/mock_bundle_mgr_proxy.cpp index b80d03d7f..f40336c90 100644 --- a/services/test/moduletest/mock/mock_bundle_mgr_proxy.cpp +++ b/services/test/moduletest/mock/mock_bundle_mgr_proxy.cpp @@ -176,12 +176,6 @@ bool BundleMgrProxy::IsSafeMode() return true; } -bool BundleMgrProxy::CleanBundleCacheFiles( - const std::string &bundleName, const sptr &cleanCacheCallback) -{ - return true; -} - bool BundleMgrProxy::CleanBundleDataFiles(const std::string &bundleName, const int userId) { return true; @@ -213,21 +207,12 @@ bool BundleMgrProxy::IsApplicationEnabled(const std::string &bundleName) return true; } -bool BundleMgrProxy::SetApplicationEnabled(const std::string &bundleName, bool isEnable) -{ - return true; -} bool BundleMgrProxy::IsAbilityEnabled(const AbilityInfo &abilityInfo) { return true; } -bool BundleMgrProxy::SetAbilityEnabled(const AbilityInfo &abilityInfo, bool isEnabled) -{ - return true; -} - std::string BundleMgrProxy::GetAbilityIcon(const std::string &bundleName, const std::string &className) { return "AbilityIcon"; -- Gitee