diff --git a/bundle.json b/bundle.json index 2617c996d758e5b7215676b0c47d43166329b8ef..9d41c2c36debb1691762b8f9fd2fef8c41555cea 100644 --- a/bundle.json +++ b/bundle.json @@ -108,7 +108,10 @@ "libxml2", "node", "googletest", - "icu" + "icu", + "node", + "cJSON", + "selinux_adapter" ], "third_party": [ "libuv", diff --git a/frameworks/ans/BUILD.gn b/frameworks/ans/BUILD.gn index eaaba778a34395c92e5d5ba1dfed31c2229197b8..22bc47c61a37fafbadb906025ed15eac9f0e7ce7 100644 --- a/frameworks/ans/BUILD.gn +++ b/frameworks/ans/BUILD.gn @@ -43,7 +43,6 @@ config("ans_innerkits_public_config") { "${core_path}/include", "${target_gen_dir}", ] - configs = [ "${multimedia_path}/interfaces/innerkits:image_external_config" ] } config("ans_innerkits_config") { @@ -56,7 +55,6 @@ config("ans_innerkits_config") { "${core_path}/include", "${target_gen_dir}", ] - configs = [ "${multimedia_path}/interfaces/innerkits:image_external_config" ] } ohos_shared_library("ans_innerkits") { @@ -158,6 +156,7 @@ ohos_shared_library("ans_innerkits") { "ability_runtime:appkit_native", "bundle_framework:appexecfwk_base", "bundle_framework:appexecfwk_core", + "cJSON:cjson_static", "c_utils:utils", "eventhandler:libeventhandler", "hicollie:libhicollie", diff --git a/frameworks/ans/test/unittest/BUILD.gn b/frameworks/ans/test/unittest/BUILD.gn index a00976229e1a42fcffe06e1f6eab8af812199654..0db5c73f7735e077af4d9118ce9bb9c2abe0cedb 100644 --- a/frameworks/ans/test/unittest/BUILD.gn +++ b/frameworks/ans/test/unittest/BUILD.gn @@ -106,6 +106,7 @@ ohos_unittest("ans_test") { "relational_store:native_rdb", "safwk:system_ability_fwk", "samgr:samgr_proxy", + "selinux_adapter:librestorecon", ] subsystem_name = "${subsystem_name}" diff --git a/frameworks/js/napi/include/cancel.h b/frameworks/js/napi/include/cancel.h index c641f7520dcfd3c03abdebf8f378ba14cb0752b8..ecea9c5d49d8a25ec28f0ed981805385cf538d7a 100644 --- a/frameworks/js/napi/include/cancel.h +++ b/frameworks/js/napi/include/cancel.h @@ -17,7 +17,6 @@ #define BASE_NOTIFICATION_DISTRIBUTED_NOTIFICATION_SERVICE_FRAMEWORKS_JS_NAPI_CANCEL_H #include "common.h" -#include "commonlibrary/utils_lite/include/ohos_types.h" namespace OHOS { namespace NotificationNapi { diff --git a/frameworks/reminder/test/unittest/BUILD.gn b/frameworks/reminder/test/unittest/BUILD.gn index 3a9396e646945a5a9d740c0ae4d8159fc2204f51..edddef55a1ba7168141c4598b21350b902c5604b 100644 --- a/frameworks/reminder/test/unittest/BUILD.gn +++ b/frameworks/reminder/test/unittest/BUILD.gn @@ -69,6 +69,7 @@ ohos_unittest("reminder_test") { "relational_store:native_rdb", "safwk:system_ability_fwk", "samgr:samgr_proxy", + "selinux_adapter:librestorecon", ] subsystem_name = "${subsystem_name}" @@ -112,6 +113,7 @@ ohos_unittest("reminder_request_test") { "ability_base:want", "ability_base:zuri", "c_utils:utils", + "hilog:libhilog", "relational_store:native_rdb", ] cflags = [ @@ -147,6 +149,7 @@ ohos_unittest("reminder_request_branch_test") { "ability_base:want", "ability_base:zuri", "c_utils:utils", + "hilog:libhilog", "relational_store:native_rdb", ] cflags = [ @@ -181,6 +184,7 @@ ohos_unittest("reminder_agent_idl_test") { "ability_base:zuri", "c_utils:utils", "googletest:gmock_main", + "hilog:libhilog", "ipc:ipc_core", "relational_store:native_rdb", ] diff --git a/frameworks/test/moduletest/BUILD.gn b/frameworks/test/moduletest/BUILD.gn index f925a8d00a7404871fdf41ccaae2ec3751914d35..25ce679c2e6af28ddba62f22b6eacb16f20a077d 100644 --- a/frameworks/test/moduletest/BUILD.gn +++ b/frameworks/test/moduletest/BUILD.gn @@ -167,6 +167,7 @@ ohos_moduletest("ans_innerkits_module_publish_test") { "relational_store:native_rdb", "safwk:system_ability_fwk", "samgr:samgr_proxy", + "selinux_adapter:librestorecon", ] subsystem_name = "${subsystem_name}" @@ -225,6 +226,7 @@ ohos_moduletest("ans_innerkits_module_slot_test") { "common_event_service:cesfwk_innerkits", "eventhandler:libeventhandler", "ffrt:libffrt", + "googletest:gtest_main", "hilog:libhilog", "image_framework:image_native", "ipc:ipc_core", @@ -233,10 +235,9 @@ ohos_moduletest("ans_innerkits_module_slot_test") { "relational_store:native_rdb", "safwk:system_ability_fwk", "samgr:samgr_proxy", + "selinux_adapter:librestorecon", ] - public_external_deps = [ "googletest:gtest_main" ] - subsystem_name = "${subsystem_name}" part_name = "${component_name}" } @@ -299,6 +300,7 @@ ohos_moduletest("ans_innerkits_module_setting_test") { "common_event_service:cesfwk_innerkits", "eventhandler:libeventhandler", "ffrt:libffrt", + "googletest:gtest_main", "hilog:libhilog", "image_framework:image_native", "ipc:ipc_core", @@ -307,10 +309,9 @@ ohos_moduletest("ans_innerkits_module_setting_test") { "relational_store:native_rdb", "safwk:system_ability_fwk", "samgr:samgr_proxy", + "selinux_adapter:librestorecon", ] - public_external_deps = [ "googletest:gtest_main" ] - subsystem_name = "${subsystem_name}" part_name = "${component_name}" } diff --git a/services/ans/test/unittest/BUILD.gn b/services/ans/test/unittest/BUILD.gn index 58a18318eed12c7107adeb1716ba501532fb6b62..2a7d21546292b7615ba0c335e11336fc592c7551 100644 --- a/services/ans/test/unittest/BUILD.gn +++ b/services/ans/test/unittest/BUILD.gn @@ -1449,6 +1449,7 @@ ohos_unittest("advanced_notification_service_unit_test") { "data_share:datashare_common", "data_share:datashare_consumer", "ffrt:libffrt", + "hilog:libhilog", "ipc:ipc_core", "kv_store:distributeddata_inner", "time_service:time_client", @@ -1491,6 +1492,7 @@ ohos_unittest("common_utils_test") { external_deps = [ "ability_base:zuri", "c_utils:utils", + "hilog:libhilog", ] subsystem_name = "${subsystem_name}" diff --git a/test/bechmarktest/notification_publish_test/BUILD.gn b/test/bechmarktest/notification_publish_test/BUILD.gn index 1cd96d741e197f43e1f709c8c3b700c74cd9b221..8bfe962d959880562ed834e35c706c6bcd48605c 100644 --- a/test/bechmarktest/notification_publish_test/BUILD.gn +++ b/test/bechmarktest/notification_publish_test/BUILD.gn @@ -34,6 +34,7 @@ ohos_benchmarktest("Benchmark_Publish_Test") { "ability_runtime:wantagent_innerkits", "c_utils:utils", "googletest:gtest_main", + "hilog:libhilog", "image_framework:image_native", "relational_store:native_rdb", ] diff --git a/test/bechmarktest/notification_services_test/BUILD.gn b/test/bechmarktest/notification_services_test/BUILD.gn index 414e4629aa68654dd36741b8e6b422016b04a96a..96f1229660378d1de518af22bb645a151b642ce5 100644 --- a/test/bechmarktest/notification_services_test/BUILD.gn +++ b/test/bechmarktest/notification_services_test/BUILD.gn @@ -48,9 +48,11 @@ ohos_benchmarktest("Benchmark_Notification_Servece_Test") { "common_event_service:cesfwk_innerkits", "ffrt:libffrt", "googletest:gtest_main", + "hilog:libhilog", "image_framework:image_native", "kv_store:distributeddata_inner", "relational_store:native_rdb", + "selinux_adapter:librestorecon", ] subsystem_name = "${subsystem_name}" diff --git a/test/fuzztest/addnotificationslot_fuzzer/addnotificationslot_fuzzer.cpp b/test/fuzztest/addnotificationslot_fuzzer/addnotificationslot_fuzzer.cpp index 66ac398df37248480568a172b7ea6ddb3937f148..8f36542fdfbe3a058f0c4ef4084dde5d3a78749e 100644 --- a/test/fuzztest/addnotificationslot_fuzzer/addnotificationslot_fuzzer.cpp +++ b/test/fuzztest/addnotificationslot_fuzzer/addnotificationslot_fuzzer.cpp @@ -15,7 +15,6 @@ #include "addnotificationslot_fuzzer.h" -#include "base/accesscontrol/sandbox_manager/test/fuzztest/common/alloc_token.h" #include "notification_helper.h" #include #include diff --git a/test/fuzztest/fuzz_common_base/BUILD.gn b/test/fuzztest/fuzz_common_base/BUILD.gn index c12b70c85592e543c3cfc533bfd861ba2fc559a3..778d1750239062be1560c9c26945e1a8f1ad2d4c 100644 --- a/test/fuzztest/fuzz_common_base/BUILD.gn +++ b/test/fuzztest/fuzz_common_base/BUILD.gn @@ -31,6 +31,7 @@ static_library("fuzz_common_base") { "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", + "selinux_adapter:librestorecon", ] public_external_deps = [ "c_utils:utils" ] diff --git a/tools/test/unittest/dump/BUILD.gn b/tools/test/unittest/dump/BUILD.gn index 144fd6fe62e401edf0fddfce908a7a48c5f44144..45e3d7dba2fa5682d7a3814369af380a8f7a018f 100644 --- a/tools/test/unittest/dump/BUILD.gn +++ b/tools/test/unittest/dump/BUILD.gn @@ -77,6 +77,7 @@ ohos_unittest("notification_shell_command_dump_test") { "hilog:libhilog", "ipc:ipc_core", "relational_store:native_rdb", + "selinux_adapter:librestorecon", ] }