From ca1f5cd853ecebb8a285618a7a008a8bf0e2b45c Mon Sep 17 00:00:00 2001 From: wujiqin Date: Thu, 1 Dec 2022 15:14:35 +0800 Subject: [PATCH] =?UTF-8?q?IssueNo:https://gitee.com/openharmony/notificat?= =?UTF-8?q?ion=5Fdistributed=5Fnotification=5Fservice/issues/I644BY=3Ffrom?= =?UTF-8?q?=3Dproject-issue=20Description:=E5=A4=B1=E8=B4=A5=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E4=BF=AE=E5=A4=8D=20Sig:SIG=5FApplicationFramework=20?= =?UTF-8?q?Feature=20or=20Bugfix:Bugfig=20Binary=20Source:=20No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wujiqin Change-Id: I4912c89bf9e0d8b3003058f1e394c006b10ea1a3 --- .../test/unittest/notification_helper_test.cpp | 15 --------------- .../test/unittest/reminder_request_alarm_test.cpp | 14 -------------- 2 files changed, 29 deletions(-) diff --git a/frameworks/ans/test/unittest/notification_helper_test.cpp b/frameworks/ans/test/unittest/notification_helper_test.cpp index 5d62063c1..800e197e0 100644 --- a/frameworks/ans/test/unittest/notification_helper_test.cpp +++ b/frameworks/ans/test/unittest/notification_helper_test.cpp @@ -886,21 +886,6 @@ HWTEST_F(NotificationHelperTest, IsSupportTemplate_00001, Function | SmallTest | EXPECT_EQ(ret, (int)ERR_OK); } -/** - * @tc.name: IsAllowedNotify_00003 - * @tc.desc: Test IsAllowedNotify parameters. - * @tc.type: FUNC - * @tc.require: issueI5WRQ2 - */ -HWTEST_F(NotificationHelperTest, IsAllowedNotify_00003, Function | SmallTest | Level1) -{ - int32_t userId = 10; - bool allowed = true; - NotificationHelper notificationHelper; - ErrCode ret = notificationHelper.IsAllowedNotify(userId, allowed); - EXPECT_EQ(ret, (int)ERR_OK); -} - /** * @tc.name: SetNotificationsEnabledForAllBundles_00002 * @tc.desc: Test SetNotificationsEnabledForAllBundles parameters. diff --git a/frameworks/ans/test/unittest/reminder_request_alarm_test.cpp b/frameworks/ans/test/unittest/reminder_request_alarm_test.cpp index a3c2ba18c..4b825cf79 100644 --- a/frameworks/ans/test/unittest/reminder_request_alarm_test.cpp +++ b/frameworks/ans/test/unittest/reminder_request_alarm_test.cpp @@ -282,19 +282,5 @@ HWTEST_F(ReminderRequestAlarmTest, ReadFromParcel_00001, Function | SmallTest | auto rrc = std::make_shared(0, 0, daysOfWeek); EXPECT_EQ(rrc->ReadFromParcel(parcel), false); } - -/** - * @tc.name: OnTimeZoneChange_00100 - * @tc.desc: Test OnTimeZoneChange parameters. - * @tc.type: FUNC - * @tc.require: issue - */ -HWTEST_F(ReminderRequestAlarmTest, OnTimeZoneChange_00100, Function | SmallTest | Level1) -{ - uint8_t arr[] = {}; - std::vector daysOfWeek (arr, arr + sizeof(arr) / sizeof(uint8_t)); - auto rrc = std::make_shared(0, 0, daysOfWeek); - EXPECT_EQ(rrc->OnTimeZoneChange(), false); -} } } \ No newline at end of file -- Gitee