From e6324e71a03719b616332cf1ffdaacf295e596b4 Mon Sep 17 00:00:00 2001 From: jiangminsen Date: Sat, 26 Jul 2025 14:59:40 +0800 Subject: [PATCH] =?UTF-8?q?cleandata=E6=89=93=E7=82=B9=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E6=96=B9=E6=8C=91=E5=8D=955.1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiangminsen --- test/mock/mock_bundle_mgr_host.cpp | 3 ++- test/mock/mock_bundle_mgr_host.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/mock/mock_bundle_mgr_host.cpp b/test/mock/mock_bundle_mgr_host.cpp index 91a6704..7a12e10 100644 --- a/test/mock/mock_bundle_mgr_host.cpp +++ b/test/mock/mock_bundle_mgr_host.cpp @@ -45,7 +45,8 @@ ErrCode MockBundleMgrHost::CleanBundleCacheFiles(const std::string &bundleName, return ERR_OK; } -bool MockBundleMgrHost::CleanBundleDataFiles(const std::string &bundleName, const int userId, const int appIndex) +bool MockBundleMgrHost::CleanBundleDataFiles(const std::string &bundleName, const int userId, + const int appIndex, const int callerUid) { APP_LOGD("enter"); APP_LOGD("bundleName: %{public}s", bundleName.c_str()); diff --git a/test/mock/mock_bundle_mgr_host.h b/test/mock/mock_bundle_mgr_host.h index f6e1dc5..87318f7 100644 --- a/test/mock/mock_bundle_mgr_host.h +++ b/test/mock/mock_bundle_mgr_host.h @@ -27,7 +27,8 @@ class MockBundleMgrHost : public BundleMgrHost { public: ErrCode CleanBundleCacheFiles(const std::string &bundleName, const sptr cleanCacheCallback, int32_t userId = Constants::UNSPECIFIED_USERID, int32_t appIndex = 0) override; - bool CleanBundleDataFiles(const std::string &bundleName, const int userId = 0, const int appIndex = 0) override; + bool CleanBundleDataFiles(const std::string &bundleName, const int userId = 0, + const int appIndex = 0, const int callerUid = -1) override; bool DumpInfos( const DumpFlag flag, const std::string &bundleName, int32_t userId, std::string &result) override; ErrCode SetApplicationEnabled(const std::string &bundleName, bool isEnable, -- Gitee