From 72dec6adb60922554e6c5ce4587903b3a5eb0fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=95=8F=E6=9D=B0?= Date: Mon, 11 Aug 2025 03:11:19 +0000 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BB=A3=E7=A2=BC=E5=B7=AE=E7=95=B0?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴敏杰 --- .../src/system_ability_mgr_stub_load_test.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/services/samgr/native/test/unittest/src/system_ability_mgr_stub_load_test.cpp b/services/samgr/native/test/unittest/src/system_ability_mgr_stub_load_test.cpp index bb43b9c5..7435eddd 100644 --- a/services/samgr/native/test/unittest/src/system_ability_mgr_stub_load_test.cpp +++ b/services/samgr/native/test/unittest/src/system_ability_mgr_stub_load_test.cpp @@ -41,17 +41,6 @@ const string DEFAULT_LOAD_NAME = "loadevent"; constexpr uint32_t SAID = 1499; constexpr int64_t DEFAULT_EVENTID = 0; constexpr int32_t INVALID_SAID = -1; -void InitSaMgr(sptr& saMgr) -{ - saMgr->abilityDeath_ = sptr(new AbilityDeathRecipient()); - saMgr->systemProcessDeath_ = sptr(new SystemProcessDeathRecipient()); - saMgr->abilityStatusDeath_ = sptr(new AbilityStatusDeathRecipient()); - saMgr->abilityCallbackDeath_ = sptr(new AbilityCallbackDeathRecipient()); - saMgr->remoteCallbackDeath_ = sptr(new RemoteCallbackDeathRecipient()); - saMgr->workHandler_ = make_shared("workHandler"); - saMgr->collectManager_ = sptr(new DeviceStatusCollectManager()); - saMgr->abilityStateScheduler_ = std::make_shared(); -} } void SystemAbilityMgrStubLoadTest::SetUpTestCase() -- Gitee From 6595b7f5c55338c609071695ab579763a6c5c9e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=95=8F=E6=9D=B0?= Date: Mon, 11 Aug 2025 03:12:58 +0000 Subject: [PATCH 2/3] daim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴敏杰 --- .../native/test/unittest/src/system_ability_mgr_util_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/samgr/native/test/unittest/src/system_ability_mgr_util_test.cpp b/services/samgr/native/test/unittest/src/system_ability_mgr_util_test.cpp index 427b30f6..beb944d6 100644 --- a/services/samgr/native/test/unittest/src/system_ability_mgr_util_test.cpp +++ b/services/samgr/native/test/unittest/src/system_ability_mgr_util_test.cpp @@ -37,7 +37,8 @@ namespace system { const std::u16string PROCESS_NAME = u"test_process_name"; constexpr const char* PENG_LAI = "penglai"; -struct CfgFiles { +struct CfgFiles +{ const char* paths[MAX_CFG_POLICY_DIRS_CNT]; }; -- Gitee From 162c1200f539c9085e90e33a896b6cb836cac38c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=95=8F=E6=9D=B0?= Date: Mon, 11 Aug 2025 03:29:48 +0000 Subject: [PATCH 3/3] update services/samgr/native/test/unittest/src/system_ability_mgr_util_test.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴敏杰 --- .../native/test/unittest/src/system_ability_mgr_util_test.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/samgr/native/test/unittest/src/system_ability_mgr_util_test.cpp b/services/samgr/native/test/unittest/src/system_ability_mgr_util_test.cpp index beb944d6..427b30f6 100644 --- a/services/samgr/native/test/unittest/src/system_ability_mgr_util_test.cpp +++ b/services/samgr/native/test/unittest/src/system_ability_mgr_util_test.cpp @@ -37,8 +37,7 @@ namespace system { const std::u16string PROCESS_NAME = u"test_process_name"; constexpr const char* PENG_LAI = "penglai"; -struct CfgFiles -{ +struct CfgFiles { const char* paths[MAX_CFG_POLICY_DIRS_CNT]; }; -- Gitee