From 427774ebbcdfbac1409f91bdd88cc06f0d502625 Mon Sep 17 00:00:00 2001 From: wangsen1994 Date: Thu, 12 Sep 2024 14:52:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Eut=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangsen1994 --- ...dvanced_notification_live_view_service_test.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/services/ans/test/unittest/advanced_notification_live_view_service_test.cpp b/services/ans/test/unittest/advanced_notification_live_view_service_test.cpp index de6f6d997..621f2a822 100644 --- a/services/ans/test/unittest/advanced_notification_live_view_service_test.cpp +++ b/services/ans/test/unittest/advanced_notification_live_view_service_test.cpp @@ -310,5 +310,19 @@ HWTEST_F(AnsLiveViewServiceTest, IsSaCreateSystemLiveViewAsBundle_002, Function flag = advancedNotificationService_->IsSaCreateSystemLiveViewAsBundle(record, creatorUid); ASSERT_EQ(flag, false); } + +/** + * @tc.name: GetNotificationRequestFromDb_00002 + * @tc.desc: Test GetNotificationRequestFromDb + * @tc.type: FUNC + * @tc.require: issue + */ +HWTEST_F(AnsLiveViewServiceTest, GetNotificationRequestFromDb_00002, Function | SmallTest | Level1) +{ + AdvancedNotificationService::NotificationRequestDb requestsdb; + std::string key = "ans_live_view_001"; + auto ret = advancedNotificationService_->GetNotificationRequestFromDb(key, requestsdb); + EXPECT_NE(ret, (int)ERR_OK); +} } // namespace Notification } // namespace OHOS -- Gitee