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 da5c0719644c357dea6541ce9cdee06fd4138da6..ce1ef007f3d3239be5a04cfe8b1770fc8b760e9c 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 77116bd9ab40d3c96e336a84361c588167802c7e..3e5817f3e8639b0c48b6625580e5737b482f6d2f 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 47b0164dacf12ad42cdabdc6c127c209bd4e3124..ab205c7aa8765526693d8c76fde33c9ca1a94e62 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 b80d03d7f51d67dcca64b51b3166cf6caea5b8a0..f40336c905ff100728728da1c1ae7b9bf6567122 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";