/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | permission_filter_test.cpp | 63 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), slots); in HWTEST_F() 65 record->bundleOption = new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID); in HWTEST_F() 89 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), slots); in HWTEST_F() 91 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), false); in HWTEST_F() 93 record->bundleOption = new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID); in HWTEST_F()
|
H A D | advanced_notification_service_branch_test.cpp | 85 IPCSkeleton::SetCallingUid(SYSTEM_APP_UID); in SetUp() 94 IPCSkeleton::SetCallingUid(SYSTEM_APP_UID); in TearDown() 322 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), slots), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F() 338 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), slots), ERR_ANS_PERMISSION_DENIED); in HWTEST_F() 356 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), slots), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F() 374 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), slots), ERR_ANS_PERMISSION_DENIED); in HWTEST_F() 566 std::string(), new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), false), in HWTEST_F() 630 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), allowed), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F() 646 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), allowed), ERR_ANS_PERMISSION_DENIED); in HWTEST_F() 663 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), allowe in HWTEST_F() [all...] |
H A D | ans_ut_constant.h | 26 constexpr int32_t SYSTEM_APP_UID = 100; member
|
H A D | advanced_notification_service_test.cpp | 95 IPCSkeleton::SetCallingUid(SYSTEM_APP_UID); in SetUp() 103 IPCSkeleton::SetCallingUid(SYSTEM_APP_UID); in TearDown() 227 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), slots), in HWTEST_F() 243 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), slots), in HWTEST_F() 426 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), slots), in HWTEST_F() 562 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), slots), in HWTEST_F() 578 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), slots), in HWTEST_F() 590 new NotificationBundleOption("", SYSTEM_APP_UID), true), in HWTEST_F() 775 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), allowed), in HWTEST_F() 791 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), allowe in HWTEST_F() [all...] |
H A D | notification_preferences_test.cpp | 898 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetDoNotDisturbDate(SYSTEM_APP_UID, date), (int)ERR_OK); in HWTEST_F() 936 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetDoNotDisturbDate(SYSTEM_APP_UID, date), (int)ERR_OK); in HWTEST_F() 939 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetDoNotDisturbDate(SYSTEM_APP_UID, getDate), (int)ERR_OK); in HWTEST_F() 960 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetDoNotDisturbDate(SYSTEM_APP_UID, date), (int)ERR_OK); in HWTEST_F() 963 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetDoNotDisturbDate(SYSTEM_APP_UID, getDate), (int)ERR_OK); in HWTEST_F()
|
/base/notification/common_event_service/services/test/unittest/ |
H A D | common_event_publish_system_event_test.cpp | 36 constexpr uint16_t SYSTEM_APP_UID = 1000; // system app member 116 data, publishInfo, nullptr, curTime, PID, SYSTEM_APP_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F() 177 subscribeInfo, commonEventListenerPtr, curTime, PID, SYSTEM_APP_UID, tokenID, "bundlename")); in HWTEST_F() 195 data, publishInfo, nullptr, curTime, PID, SYSTEM_APP_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F() 228 subscribeInfo, commonEventListenerPtr, curTime, PID, SYSTEM_APP_UID, tokenID, "bundlename")); in HWTEST_F() 246 data, publishInfo, nullptr, curTime, PID, SYSTEM_APP_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
|
/base/notification/common_event_service/services/test/unittest/mock/ |
H A D | ces_ut_constant.h | 26 constexpr int32_t SYSTEM_APP_UID = 100; member
|
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/ |
H A D | mock_bundle_manager_helper.cpp | 50 return (uid == SYSTEM_APP_UID || uid == NON_BUNDLE_NAME_UID); in IsSystemApp()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/bundle_manager_helper_branch_test/ |
H A D | bundle_manager_helper_branch_test.cpp | 131 sptr<NotificationBundleOption> bundleOption = new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID);
in HWTEST_F()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/ |
H A D | advanced_notification_service_publish_test.cpp | 95 IPCSkeleton::SetCallingUid(SYSTEM_APP_UID); in SetUp() 103 IPCSkeleton::SetCallingUid(SYSTEM_APP_UID); in TearDown() 583 std::string(), new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), false), in HWTEST_F() 605 std::string(), new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), false), in HWTEST_F() 841 sptr<NotificationBundleOption> bundleOption = new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID); in HWTEST_F() 874 std::string(), new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), false), in HWTEST_F() 905 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), in HWTEST_F() 935 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), in HWTEST_F()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/ |
H A D | notification_subscriber_manager_branch_test.cpp | 500 IPCSkeleton::SetCallingUid(SYSTEM_APP_UID);
in HWTEST_F() 518 IPCSkeleton::SetCallingUid(SYSTEM_APP_UID);
in HWTEST_F() 536 IPCSkeleton::SetCallingUid(SYSTEM_APP_UID);
in HWTEST_F() 555 IPCSkeleton::SetCallingUid(SYSTEM_APP_UID);
in HWTEST_F()
|