diff --git a/test/mock/mock_bundle_mgr_host.cpp b/test/mock/mock_bundle_mgr_host.cpp index 91a67043fe568fcd5c4400e1e3efad686af6f3cf..7a12e10102ef0d1239530e0f345d33541641702f 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 f6e1dc5c51072b85d3d2c677a1e1433cb21049ea..87318f79996382900a0c399f58f0af0b4f60b231 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,