From c2f4ecb764868cc950d84ea3b31c63fef4bdc55e Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Thu, 4 Sep 2025 10:31:50 +0800 Subject: [PATCH] fix mock Signed-off-by: zhangzezhong --- .../include/bundlemgr/mock_app_control_manager.h | 3 ++- .../appexecfwk_core/src/bundlemgr/mock_app_control_manager.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/mock/services_abilitymgr_test/libs/appexecfwk_core/include/bundlemgr/mock_app_control_manager.h b/test/mock/services_abilitymgr_test/libs/appexecfwk_core/include/bundlemgr/mock_app_control_manager.h index 3334fd435b0..21a92506070 100644 --- a/test/mock/services_abilitymgr_test/libs/appexecfwk_core/include/bundlemgr/mock_app_control_manager.h +++ b/test/mock/services_abilitymgr_test/libs/appexecfwk_core/include/bundlemgr/mock_app_control_manager.h @@ -48,7 +48,8 @@ public: virtual ErrCode DeleteAppRunningControlRule( const std::vector& controlRule, int32_t userId) override; virtual ErrCode DeleteAppRunningControlRule(int32_t userId) override; - virtual ErrCode GetAppRunningControlRule(int32_t userId, std::vector& appIds) override; + virtual ErrCode GetAppRunningControlRule( + int32_t userId, std::vector& appIds, bool &allowRunning) override; virtual ErrCode GetAppRunningControlRule( const std::string& bundleName, int32_t userId, AppRunningControlRuleResult& controlRuleResult) override; diff --git a/test/mock/services_abilitymgr_test/libs/appexecfwk_core/src/bundlemgr/mock_app_control_manager.cpp b/test/mock/services_abilitymgr_test/libs/appexecfwk_core/src/bundlemgr/mock_app_control_manager.cpp index 0a9c9a17caa..a271acdc6d7 100644 --- a/test/mock/services_abilitymgr_test/libs/appexecfwk_core/src/bundlemgr/mock_app_control_manager.cpp +++ b/test/mock/services_abilitymgr_test/libs/appexecfwk_core/src/bundlemgr/mock_app_control_manager.cpp @@ -66,7 +66,7 @@ ErrCode AppControlProxy::DeleteAppRunningControlRule(int32_t userId) return ERR_OK; } -ErrCode AppControlProxy::GetAppRunningControlRule(int32_t userId, std::vector& appIds) +ErrCode AppControlProxy::GetAppRunningControlRule(int32_t userId, std::vector& appIds, bool &allowRunning) { return ERR_OK; } -- Gitee