From ee6bc456b576296411e68d80637fb793f9dc9964 Mon Sep 17 00:00:00 2001 From: wangsen1994 Date: Wed, 3 Sep 2025 14:40:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E8=A1=A8=E5=85=B3=E9=97=AD=E5=88=86?= =?UTF-8?q?=E5=B8=83=E5=BC=8Fdb=E5=8D=8F=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangsen1994 --- frameworks/ans/test/unittest/BUILD.gn | 2 +- frameworks/reminder/test/unittest/BUILD.gn | 2 +- frameworks/test/moduletest/BUILD.gn | 6 ++--- services/BUILD.gn | 2 +- services/ans/BUILD.gn | 4 ++-- .../ans/src/advanced_notification_service.cpp | 2 +- .../src/utils/notification_liveview_utils.cpp | 3 ++- services/ans/test/unittest/BUILD.gn | 22 +++++++++---------- ...anced_notification_service_branch_test.cpp | 2 -- services/distributed/test/unittest/BUILD.gn | 2 +- services/reminder/BUILD.gn | 6 ++--- services/reminder/test/unittest/BUILD.gn | 6 ++--- services/test/moduletest/BUILD.gn | 2 +- ...cednotificationservice_fuzztest_common.gni | 8 +++---- .../BUILD.gn | 2 +- test/fuzztest/ansmanagerstub_fuzzer/BUILD.gn | 4 ++-- .../ansmanagerstubannex_fuzzer/BUILD.gn | 4 ++-- .../ansmanagerstubannexthree_fuzzer/BUILD.gn | 4 ++-- .../ansmanagerstubannextwo_fuzzer/BUILD.gn | 4 ++-- test/fuzztest/reminderservice_fuzzer/BUILD.gn | 2 +- tools/dump/BUILD.gn | 2 +- 21 files changed, 45 insertions(+), 46 deletions(-) diff --git a/frameworks/ans/test/unittest/BUILD.gn b/frameworks/ans/test/unittest/BUILD.gn index 66a60a2a1..008e32123 100644 --- a/frameworks/ans/test/unittest/BUILD.gn +++ b/frameworks/ans/test/unittest/BUILD.gn @@ -81,7 +81,7 @@ ohos_unittest("ans_test") { ] defines = [] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] } diff --git a/frameworks/reminder/test/unittest/BUILD.gn b/frameworks/reminder/test/unittest/BUILD.gn index edddef55a..2a23300f8 100644 --- a/frameworks/reminder/test/unittest/BUILD.gn +++ b/frameworks/reminder/test/unittest/BUILD.gn @@ -43,7 +43,7 @@ ohos_unittest("reminder_test") { ] defines = [] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] } diff --git a/frameworks/test/moduletest/BUILD.gn b/frameworks/test/moduletest/BUILD.gn index 276ac36b8..099feafc4 100644 --- a/frameworks/test/moduletest/BUILD.gn +++ b/frameworks/test/moduletest/BUILD.gn @@ -67,7 +67,7 @@ ohos_moduletest("ans_innerkits_module_publish_test") { ] defines = [] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] } @@ -140,7 +140,7 @@ ohos_moduletest("ans_innerkits_module_slot_test") { ] defines = [] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] } @@ -214,7 +214,7 @@ ohos_moduletest("ans_innerkits_module_setting_test") { ] defines = [] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] } diff --git a/services/BUILD.gn b/services/BUILD.gn index df05c8768..7c8817c59 100644 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -16,7 +16,7 @@ import("//base/notification/distributed_notification_service/notification.gni") group("ans_service") { deps = [ "ans:ans_targets" ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { deps += [ "distributed:libans_distributed" ] } if (distributed_notification_service_feature_all_scenario_collaboration) { diff --git a/services/ans/BUILD.gn b/services/ans/BUILD.gn index c5389eda9..754e060d5 100644 --- a/services/ans/BUILD.gn +++ b/services/ans/BUILD.gn @@ -153,7 +153,7 @@ ohos_source_set("ans_service_sources") { cflags += [ "-DCONFIG_DUAL_FRAMEWORK" ] } - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -303,7 +303,7 @@ ohos_shared_library("libans") { "../ans:external.json", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { deps += [ "${services_path}/distributed:libans_distributed" ] } diff --git a/services/ans/src/advanced_notification_service.cpp b/services/ans/src/advanced_notification_service.cpp index 95b950d76..15ecc6b13 100644 --- a/services/ans/src/advanced_notification_service.cpp +++ b/services/ans/src/advanced_notification_service.cpp @@ -1669,7 +1669,7 @@ ErrCode AdvancedNotificationService::RegisterPushCallback( ANS_LOGD("insert pushCallBack, slot type %{public}d", slotType); notificationCheckRequest->SetUid(uid); checkRequests_.insert_or_assign(slotType, notificationCheckRequest); - ANS_LOGD("insert notificationCheckRequest, slot type %{public}d, content type %{public}d", + ANS_LOGI("insert notificationCheckRequest, slot type %{public}d, content type %{public}d", slotType, notificationCheckRequest->GetContentType()); ANS_LOGD("end"); diff --git a/services/ans/src/utils/notification_liveview_utils.cpp b/services/ans/src/utils/notification_liveview_utils.cpp index d033b3b74..b55388ee8 100644 --- a/services/ans/src/utils/notification_liveview_utils.cpp +++ b/services/ans/src/utils/notification_liveview_utils.cpp @@ -68,7 +68,8 @@ bool NotificationLiveViewUtils::CheckLiveViewConfigByBundle(const std::string& b bool configEnable = false; if (LIVEVIEW_ALL_SCENARIOS_EXTENTION_WRAPPER->CheckLiveViewConfig(bundleName, event, userId, configEnable) != ERR_OK) { - return false; + ANS_LOGE("Get config failed %{public}s", bundleName.c_str()); + return true; } return configEnable; } diff --git a/services/ans/test/unittest/BUILD.gn b/services/ans/test/unittest/BUILD.gn index 352c85c04..8f1b1fac7 100644 --- a/services/ans/test/unittest/BUILD.gn +++ b/services/ans/test/unittest/BUILD.gn @@ -60,7 +60,7 @@ ohos_unittest("ans_unit_test") { "${services_path}/ans:libans", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -153,7 +153,7 @@ ohos_unittest("notification_preferences_database_test") { "${services_path}/ans:libans", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -243,7 +243,7 @@ ohos_unittest("notification_subscriber_manager_test") { "${services_path}/ans:libans", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -346,7 +346,7 @@ ohos_unittest("notification_service_test") { "${services_path}/ans:libans", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -445,7 +445,7 @@ ohos_unittest("notification_clone_test") { "${services_path}/ans:libans", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -540,7 +540,7 @@ ohos_unittest("notification_publish_service_test") { "${services_path}/ans:libans", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -637,7 +637,7 @@ ohos_unittest("notification_service_publish_test") { "${services_path}/ans:libans", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -760,7 +760,7 @@ ohos_unittest("notification_preferences_test") { "${services_path}/ans:libans", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -1009,7 +1009,7 @@ ohos_unittest("notification_subscriber_manager_branch_test") { "${services_path}/ans:libans", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -1082,7 +1082,7 @@ ohos_unittest("advanced_notification_service_branch_test") { "${services_path}/ans:libans", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -1517,7 +1517,7 @@ ohos_unittest("advanced_notification_service_unit_test") { "${services_path}/ans:libans", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] diff --git a/services/ans/test/unittest/advanced_notification_service_branch_test.cpp b/services/ans/test/unittest/advanced_notification_service_branch_test.cpp index f011432da..2089e0981 100644 --- a/services/ans/test/unittest/advanced_notification_service_branch_test.cpp +++ b/services/ans/test/unittest/advanced_notification_service_branch_test.cpp @@ -1344,8 +1344,6 @@ HWTEST_F(AnsBranchTest, AnsBranchTest_286001, Function | SmallTest | Level1) ASSERT_EQ(result, ERR_ANS_PERMISSION_DENIED); MockIsVerfyPermisson(true); - result = advancedNotificationService_->SetCheckConfig(response, requestId, key, value); - ASSERT_EQ(result, ERR_OK); result = advancedNotificationService_->SetCheckConfig(6, requestId, key, value); ASSERT_EQ(result, ERR_OK); result = advancedNotificationService_->SetCheckConfig(10, requestId, key, value); diff --git a/services/distributed/test/unittest/BUILD.gn b/services/distributed/test/unittest/BUILD.gn index 20e8a5dbd..88541ce61 100644 --- a/services/distributed/test/unittest/BUILD.gn +++ b/services/distributed/test/unittest/BUILD.gn @@ -22,7 +22,7 @@ group("ans_unit_test") { testonly = true deps = [] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { deps += [ ":ans_distributed_unit_test", ":distributed_database_branch_test", diff --git a/services/reminder/BUILD.gn b/services/reminder/BUILD.gn index 6944fba83..fc4f92880 100644 --- a/services/reminder/BUILD.gn +++ b/services/reminder/BUILD.gn @@ -75,7 +75,7 @@ ohos_source_set("reminder_service_sources") { cflags += [ "-DCONFIG_DUAL_FRAMEWORK" ] } - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -209,7 +209,7 @@ ohos_shared_library("libreminder") { deps = [ "${services_path}/reminder:reminder_service_sources" ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { deps += [ "${services_path}/distributed:libans_distributed" ] } @@ -312,7 +312,7 @@ ohos_static_library("libreminder_static") { deps = [ "${services_path}/reminder:reminder_service_sources" ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { deps += [ "${services_path}/distributed:libans_distributed" ] } diff --git a/services/reminder/test/unittest/BUILD.gn b/services/reminder/test/unittest/BUILD.gn index 3419ce493..8963d357e 100644 --- a/services/reminder/test/unittest/BUILD.gn +++ b/services/reminder/test/unittest/BUILD.gn @@ -41,7 +41,7 @@ ohos_unittest("reminder_unit_test") { "${services_path}/reminder:libreminder_static", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -257,7 +257,7 @@ ohos_unittest("reminder_service_test") { "${services_path}/reminder:libreminder_static", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] @@ -342,7 +342,7 @@ ohos_unittest("reminder_agent_service_ability_test") { "${services_path}/reminder:libreminder_static", ] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] diff --git a/services/test/moduletest/BUILD.gn b/services/test/moduletest/BUILD.gn index 3a8b6faf5..95fb8b76a 100644 --- a/services/test/moduletest/BUILD.gn +++ b/services/test/moduletest/BUILD.gn @@ -86,7 +86,7 @@ ohos_moduletest("ans_module_test") { defines += [ "PLAYER_FRAMEWORK_ENABLE" ] } - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] } diff --git a/test/fuzztest/advancednotificationservice/advancednotificationservice_fuzztest_common.gni b/test/fuzztest/advancednotificationservice/advancednotificationservice_fuzztest_common.gni index e25f90b5f..0cff7aad4 100644 --- a/test/fuzztest/advancednotificationservice/advancednotificationservice_fuzztest_common.gni +++ b/test/fuzztest/advancednotificationservice/advancednotificationservice_fuzztest_common.gni @@ -3,7 +3,7 @@ # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -19,7 +19,7 @@ import("//build/test.gni") template("advancednotificationservice_fuzztest_target") { assert(defined(invoker.sources_value), "sources_value must be defined") assert(defined(invoker.fuzz_config_file_value), "fuzz_config_file_value must be defined") - + ohos_fuzztest(target_name) { module_out_path = service_fuzz_test_path sources = [ "${component_path}/test/fuzztest/fuzz_common_base/mock/mock_notification_func.cpp", ] @@ -83,13 +83,13 @@ template("advancednotificationservice_fuzztest_target") { "time_service:time_client", ] external_deps += component_external_deps - + # 条件编译标志 if (is_double_framework) { cflags += [ "-DCONFIG_DUAL_FRAMEWORK" ] } - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] diff --git a/test/fuzztest/advancednotificationservice_fuzzer/BUILD.gn b/test/fuzztest/advancednotificationservice_fuzzer/BUILD.gn index 8c373778e..2b40a6f6d 100644 --- a/test/fuzztest/advancednotificationservice_fuzzer/BUILD.gn +++ b/test/fuzztest/advancednotificationservice_fuzzer/BUILD.gn @@ -44,7 +44,7 @@ ohos_fuzztest("AdvancedNotificationServiceFuzzTest") { cflags += [ "-DCONFIG_DUAL_FRAMEWORK" ] } - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] diff --git a/test/fuzztest/ansmanagerstub_fuzzer/BUILD.gn b/test/fuzztest/ansmanagerstub_fuzzer/BUILD.gn index c92305f56..8100a6526 100644 --- a/test/fuzztest/ansmanagerstub_fuzzer/BUILD.gn +++ b/test/fuzztest/ansmanagerstub_fuzzer/BUILD.gn @@ -20,7 +20,7 @@ import("//build/test.gni") ohos_fuzztest("AnsManagerStubFuzzTest") { module_out_path = service_fuzz_test_path fuzz_config_file = "${component_path}/test/fuzztest/ansmanagerstub_fuzzer" - include_dirs = [ + include_dirs = [ "${component_path}/test/fuzztest/fuzz_common_base", "${services_path}/ans/include", "${core_path}/include" @@ -57,7 +57,7 @@ ohos_fuzztest("AnsManagerStubFuzzTest") { cflags += [ "-DCONFIG_DUAL_FRAMEWORK" ] } - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] diff --git a/test/fuzztest/ansmanagerstubannex_fuzzer/BUILD.gn b/test/fuzztest/ansmanagerstubannex_fuzzer/BUILD.gn index 86a06d8dd..0774a1c8e 100644 --- a/test/fuzztest/ansmanagerstubannex_fuzzer/BUILD.gn +++ b/test/fuzztest/ansmanagerstubannex_fuzzer/BUILD.gn @@ -22,7 +22,7 @@ ohos_fuzztest("AnsManagerStubAnnexFuzzTest") { fuzz_config_file = "${component_path}/test/fuzztest/ansmanagerstubannex_fuzzer" - include_dirs = [ + include_dirs = [ "${component_path}/test/fuzztest/fuzz_common_base", "${services_path}/ans/include", "${core_path}/include" @@ -59,7 +59,7 @@ ohos_fuzztest("AnsManagerStubAnnexFuzzTest") { cflags += [ "-DCONFIG_DUAL_FRAMEWORK" ] } - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] diff --git a/test/fuzztest/ansmanagerstubannexthree_fuzzer/BUILD.gn b/test/fuzztest/ansmanagerstubannexthree_fuzzer/BUILD.gn index 1e7611ce0..6a033f8ac 100644 --- a/test/fuzztest/ansmanagerstubannexthree_fuzzer/BUILD.gn +++ b/test/fuzztest/ansmanagerstubannexthree_fuzzer/BUILD.gn @@ -22,7 +22,7 @@ ohos_fuzztest("AnsManagerStubAnnexThreeFuzzTest") { fuzz_config_file = "${component_path}/test/fuzztest/ansmanagerstubannexthree_fuzzer" - include_dirs = [ + include_dirs = [ "${component_path}/test/fuzztest/fuzz_common_base", "${services_path}/ans/include", "${core_path}/include" @@ -60,7 +60,7 @@ ohos_fuzztest("AnsManagerStubAnnexThreeFuzzTest") { cflags += [ "-DCONFIG_DUAL_FRAMEWORK" ] } - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] diff --git a/test/fuzztest/ansmanagerstubannextwo_fuzzer/BUILD.gn b/test/fuzztest/ansmanagerstubannextwo_fuzzer/BUILD.gn index c2f4e2097..22fc1330f 100644 --- a/test/fuzztest/ansmanagerstubannextwo_fuzzer/BUILD.gn +++ b/test/fuzztest/ansmanagerstubannextwo_fuzzer/BUILD.gn @@ -22,7 +22,7 @@ ohos_fuzztest("AnsManagerStubAnnexTwoFuzzTest") { fuzz_config_file = "${component_path}/test/fuzztest/ansmanagerstubannextwo_fuzzer" - include_dirs = [ + include_dirs = [ "${component_path}/test/fuzztest/fuzz_common_base", "${services_path}/ans/include", "${core_path}/include" @@ -60,7 +60,7 @@ ohos_fuzztest("AnsManagerStubAnnexTwoFuzzTest") { cflags += [ "-DCONFIG_DUAL_FRAMEWORK" ] } - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] diff --git a/test/fuzztest/reminderservice_fuzzer/BUILD.gn b/test/fuzztest/reminderservice_fuzzer/BUILD.gn index cfc257392..973b01eb5 100644 --- a/test/fuzztest/reminderservice_fuzzer/BUILD.gn +++ b/test/fuzztest/reminderservice_fuzzer/BUILD.gn @@ -45,7 +45,7 @@ ohos_fuzztest("ReminderServiceFuzzTest") { cflags += [ "-DCONFIG_DUAL_FRAMEWORK" ] } - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] deps += [ "${services_path}/distributed:libans_distributed" ] include_dirs += [ "${services_path}/distributed/include" ] diff --git a/tools/dump/BUILD.gn b/tools/dump/BUILD.gn index 23dc78a2c..182eade23 100644 --- a/tools/dump/BUILD.gn +++ b/tools/dump/BUILD.gn @@ -51,7 +51,7 @@ ohos_executable("anm") { configs = [ "${frameworks_module_ans_path}:ans_innerkits_public_config" ] defines = [] - if (distributed_notification_supported) { + if (distributed_notification_service_feature_distributed_db) { defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] } -- Gitee