From b928b50cfd07dc800b59a1e57d92252a7467786c Mon Sep 17 00:00:00 2001 From: wangsen1994 Date: Tue, 27 Aug 2024 16:38:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Etdd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangsen1994 --- .../advanced_notification_publish_service_test.cpp | 12 ++++++++++++ 1 file changed, 12 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 ad5fcf14e..babddda32 100644 --- a/services/ans/test/unittest/advanced_notification_publish_service_test.cpp +++ b/services/ans/test/unittest/advanced_notification_publish_service_test.cpp @@ -1104,5 +1104,17 @@ HWTEST_F(AnsPublishServiceTest, CanPopEnableNotificationDialog_001, Function | S ASSERT_EQ(result, ERROR_INTERNAL_ERROR); } +/** + * @tc.name: CheckReminderListFlag_001 + * @tc.desc: Test CheckReminderListFlag + * @tc.type: FUNC + * @tc.require: issue + */ +HWTEST_F(AnsPublishServiceTest, CheckReminderListFlag, Function | SmallTest | Level1) +{ + std::string bundleName = "com.example.application"; + bool result = advancedNotificationService_->AllowUseReminder(bundleName); + ASSERT_EQ(result, true); +} } // namespace Notification } // namespace OHOS -- Gitee