diff --git a/frameworks/src/bundle_test_tool.cpp b/frameworks/src/bundle_test_tool.cpp index 43479fd4a20aae529a79d1f83a38c9924fac634d..1e804d774dab0bf6f556e042fc08075bea4b660d 100644 --- a/frameworks/src/bundle_test_tool.cpp +++ b/frameworks/src/bundle_test_tool.cpp @@ -1073,10 +1073,7 @@ public: bool WaitForStatCompletion(); void OnGetAllBundleCacheFinished(uint64_t cacheStat) override; void OnCleanAllBundleCacheFinished(int32_t result) override; - uint64_t GetCacheStat() - { - return cacheSize_; - } + uint64_t GetCacheStat() override; int32_t GetDelRet() { return cleanRet_; @@ -1092,7 +1089,12 @@ private: std::future statFuture_ = stat_.get_future(); DISALLOW_COPY_AND_MOVE(ProcessCacheCallbackImpl); }; - + +uint64_t ProcessCacheCallbackImpl::GetCacheStat() +{ + return cacheSize_; +} + void ProcessCacheCallbackImpl::OnGetAllBundleCacheFinished(uint64_t cacheStat) { std::lock_guard lock(mutex_);