diff --git a/frameworks/ans/test/unittest/reminder_request_timer_test.cpp b/frameworks/ans/test/unittest/reminder_request_timer_test.cpp index 1a6e8c8a32a9ad424c5e7e5311e6ba69c700a55a..fe539a7e366ac55481e5f3bd6d0145b30d685cbd 100644 --- a/frameworks/ans/test/unittest/reminder_request_timer_test.cpp +++ b/frameworks/ans/test/unittest/reminder_request_timer_test.cpp @@ -56,5 +56,63 @@ HWTEST_F(ReminderRequestTimerTest, initCountDownTime_00100, Function | SmallTest auto rrc3 = std::make_shared(countDownTimeInSeconds); EXPECT_TRUE(rrc3->GetInitInfo() == 100) << "countDownTime is not 1"; } + +/** + * @tc.number : ANS_OnDateTimeChange_01000 + * @tc.name : OnDateTimeChange01000 + * @tc.type : FUNC + * @tc.require : issueI5R30Z + */ +HWTEST_F(ReminderRequestTimerTest, OnDateTimeChange_00100, Function | SmallTest | Level1) +{ + uint64_t countDownTimeInSeconds = 1; + auto rrc = std::make_shared(countDownTimeInSeconds); + auto result = rrc->OnDateTimeChange(); + EXPECT_EQ(result, false); +} + +/** + * @tc.number : ANS_OnTimeZoneChange_01000 + * @tc.name : OnTimeZoneChange01000 + * @tc.type : FUNC + * @tc.require : issueI5R30Z + */ +HWTEST_F(ReminderRequestTimerTest, OnTimeZoneChange_00100, Function | SmallTest | Level1) +{ + uint64_t countDownTimeInSeconds = 1; + auto rrc = std::make_shared(countDownTimeInSeconds); + auto result = rrc->OnTimeZoneChange(); + EXPECT_EQ(result, false); +} + +/** + * @tc.number : ANS_Marshalling_01000 + * @tc.name : Marshalling01000 + * @tc.type : FUNC + * @tc.require : issueI5R30Z + */ +HWTEST_F(ReminderRequestTimerTest, Marshalling_00100, Function | SmallTest | Level1) +{ + uint64_t countDownTimeInSeconds = 1; + Parcel parcel; + auto rrc = std::make_shared(countDownTimeInSeconds); + auto result = rrc->Marshalling(parcel); + EXPECT_EQ(result, true); +} + +/** + * @tc.number : ANS_ReadFromParcel_01000 + * @tc.name : ReadFromParcel01000 + * @tc.type : FUNC + * @tc.require : issueI5R30Z + */ +HWTEST_F(ReminderRequestTimerTest, ReadFromParcel_00100, Function | SmallTest | Level1) +{ + uint64_t countDownTimeInSeconds = 1; + Parcel parcel; + auto rrc = std::make_shared(countDownTimeInSeconds); + auto result = rrc->ReadFromParcel(parcel); + EXPECT_EQ(result, false); +} } } \ No newline at end of file diff --git a/frameworks/test/moduletest/ans_innerkits_module_publish_test.cpp b/frameworks/test/moduletest/ans_innerkits_module_publish_test.cpp index 0befae4379beddaf12ab7cf3dd7e77639cf834fc..a9e2e45a417e28184eb28776f3cb825414c77042 100644 --- a/frameworks/test/moduletest/ans_innerkits_module_publish_test.cpp +++ b/frameworks/test/moduletest/ans_innerkits_module_publish_test.cpp @@ -1588,4 +1588,4 @@ HWTEST_F(AnsInnerKitsModulePublishTest, ANS_Interface_MT_Publish_09000, Function WaitOnUnsubscribeResult(); } } // namespace Notification -} // namespace OHOS \ No newline at end of file +} // namespace OHOS