From f5a01f71ce4bf1b617be978845cccdd4acb0f41e Mon Sep 17 00:00:00 2001 From: xdongs Date: Thu, 17 Apr 2025 19:07:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9ESetBadgeNumberForDhByBundle?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xdongs --- .../unittest/advanced_notification_publish_service_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/ans/test/unittest/advanced_notification_publish_service_test.cpp b/services/ans/test/unittest/advanced_notification_publish_service_test.cpp index 082570138..955de927e 100644 --- a/services/ans/test/unittest/advanced_notification_publish_service_test.cpp +++ b/services/ans/test/unittest/advanced_notification_publish_service_test.cpp @@ -2067,6 +2067,9 @@ HWTEST_F(AnsPublishServiceTest, SetBadgeNumberForDhByBundle_00001, Function | Sm MockGetTokenTypeFlag(Security::AccessToken::ATokenTypeEnum::TOKEN_HAP); ret = advancedNotificationService_->SetBadgeNumberForDhByBundle(bundle, 1); ASSERT_EQ(ret, ERR_OK); + + ret = advancedNotificationService_->SetBadgeNumberForDhByBundle(bundle, 0); + ASSERT_EQ(ret, ERR_OK); } /** -- Gitee