From b992e0317ae61fc065cdb88bea51c41ad8f6ec6c Mon Sep 17 00:00:00 2001 From: z30053788 Date: Wed, 6 Nov 2024 17:59:27 +0800 Subject: [PATCH] tdd Signed-off-by: z30053788 Change-Id: Iedf777e5198817db745c44686cb8c4a37f5c43e7 --- .../ans/test/unittest/notification_bundle_option_test.cpp | 2 +- services/ans/test/unittest/notification_preferences_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/ans/test/unittest/notification_bundle_option_test.cpp b/frameworks/ans/test/unittest/notification_bundle_option_test.cpp index 2d1a0577b..83089557f 100644 --- a/frameworks/ans/test/unittest/notification_bundle_option_test.cpp +++ b/frameworks/ans/test/unittest/notification_bundle_option_test.cpp @@ -75,7 +75,7 @@ HWTEST_F(NotificationBundleOptionTest, Dump_00001, Function | SmallTest | Level1 std::string bundleName = "BundleName"; int32_t uid = 10; auto rrc = std::make_shared(bundleName, uid); - std::string ret = "NotificationBundleOption{ bundleName = BundleName, uid = 10, instanceKey = 0 }"; + std::string ret = "NotificationBundleOption{ bundleName = BundleName, uid = 10, instanceKey = 0, appIndex = -1 }"; EXPECT_EQ(rrc->Dump(), ret); } diff --git a/services/ans/test/unittest/notification_preferences_test.cpp b/services/ans/test/unittest/notification_preferences_test.cpp index 9d3a053cf..3588a96c0 100644 --- a/services/ans/test/unittest/notification_preferences_test.cpp +++ b/services/ans/test/unittest/notification_preferences_test.cpp @@ -1501,7 +1501,7 @@ HWTEST_F(NotificationPreferencesTest, GetDoNotDisturbProfile_0200, TestSize.Leve int32_t userId = 1; sptr profile; auto res = NotificationPreferences::GetInstance()->GetDoNotDisturbProfile(profileId, userId, profile); - ASSERT_EQ(res, ERR_ANS_INVALID_PARAM); + ASSERT_EQ(res, ERR_ANS_NO_PROFILE_TEMPLATE); } /** -- Gitee