From 10b24a827067e11752e20ec02ce6f59bcbf8ae47 Mon Sep 17 00:00:00 2001 From: qinlong Date: Tue, 6 Sep 2022 14:44:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4FuzzTest=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E5=86=97=E4=BD=99=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: qinlong --- .../handlerinitsink_fuzzer/BUILD.gn | 14 +++----------- .../BUILD.gn | 9 +-------- .../BUILD.gn | 14 +++----------- .../BUILD.gn | 14 +++----------- .../proxyinitsink_fuzzer/BUILD.gn | 7 +------ .../BUILD.gn | 7 +------ .../BUILD.gn | 7 +------ .../sinkproxydscreennotify_fuzzer/BUILD.gn | 7 +------ .../BUILD.gn | 10 ++-------- .../handlerinitsource_fuzzer/BUILD.gn | 10 ++-------- .../BUILD.gn | 5 +---- .../BUILD.gn | 10 ++-------- .../BUILD.gn | 10 ++-------- .../BUILD.gn | 3 --- .../proxydscreennotify_fuzzer/BUILD.gn | 3 --- .../proxyinitsource_fuzzer/BUILD.gn | 3 --- .../BUILD.gn | 3 --- .../BUILD.gn | 3 --- .../fuzztest/pluginhardware_fuzzer/BUILD.gn | 19 ++++++++++--------- .../registerpluginlistener_fuzzer/BUILD.gn | 19 ++++++++++--------- .../fuzztest/unpluginhardware_fuzzer/BUILD.gn | 19 ++++++++++--------- 21 files changed, 53 insertions(+), 143 deletions(-) diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerinitsink_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerinitsink_fuzzer/BUILD.gn index 140a766a..52d2f871 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerinitsink_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerinitsink_fuzzer/BUILD.gn @@ -32,6 +32,7 @@ ohos_fuzztest("HandlerInitSinkFuzzTest") { "include", "${common_path}/include", "${interfaces_path}/innerkits/native_cpp/screen_sink/include", + "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", ] cflags = [ @@ -43,10 +44,7 @@ ohos_fuzztest("HandlerInitSinkFuzzTest") { sources = [ "initsink_fuzzer.cpp" ] - deps = [ - "${common_path}:distributed_screen_utils", - "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk", - ] + deps = [ "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk" ] defines = [ "HI_LOG_ENABLE", @@ -54,13 +52,7 @@ ohos_fuzztest("HandlerInitSinkFuzzTest") { "LOG_DOMAIN=0xD004100", ] - external_deps = [ - "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] + external_deps = [ "c_utils:utils" ] } ############################################################################### diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handleronremotesinksvrdied_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handleronremotesinksvrdied_fuzzer/BUILD.gn index 687e5b8d..14599431 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handleronremotesinksvrdied_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handleronremotesinksvrdied_fuzzer/BUILD.gn @@ -32,6 +32,7 @@ ohos_fuzztest("HandlerOnRemoteSinkSvrDiedFuzzTest") { "include", "${common_path}/include", "${interfaces_path}/innerkits/native_cpp/screen_sink/include", + "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", ] cflags = [ @@ -43,11 +44,6 @@ ohos_fuzztest("HandlerOnRemoteSinkSvrDiedFuzzTest") { sources = [ "onremotesinksvrdied_fuzzer.cpp" ] - deps = [ - "${common_path}:distributed_screen_utils", - "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk", - ] - defines = [ "HI_LOG_ENABLE", "DH_LOG_TAG=\"HandlerOnRemoteSinkSvrDiedFuzzTest\"", @@ -56,9 +52,6 @@ ohos_fuzztest("HandlerOnRemoteSinkSvrDiedFuzzTest") { external_deps = [ "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", - "ipc:ipc_core", - "safwk:system_ability_fwk", "samgr:samgr_proxy", ] } diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlersubscribelocalhardware_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlersubscribelocalhardware_fuzzer/BUILD.gn index c248a0af..a5e7b487 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlersubscribelocalhardware_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlersubscribelocalhardware_fuzzer/BUILD.gn @@ -32,6 +32,7 @@ ohos_fuzztest("HandlerSubscribeLocalHardwareFuzzTest") { "include", "${common_path}/include", "${interfaces_path}/innerkits/native_cpp/screen_sink/include", + "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", ] cflags = [ @@ -43,10 +44,7 @@ ohos_fuzztest("HandlerSubscribeLocalHardwareFuzzTest") { sources = [ "subscribelocalhardware_fuzzer.cpp" ] - deps = [ - "${common_path}:distributed_screen_utils", - "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk", - ] + deps = [ "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk" ] defines = [ "HI_LOG_ENABLE", @@ -54,13 +52,7 @@ ohos_fuzztest("HandlerSubscribeLocalHardwareFuzzTest") { "LOG_DOMAIN=0xD004100", ] - external_deps = [ - "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] + external_deps = [ "c_utils:utils" ] } ############################################################################### diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerunsubscribelocalhardware_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerunsubscribelocalhardware_fuzzer/BUILD.gn index 2e00cf10..0682eade 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerunsubscribelocalhardware_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_handler/handlerunsubscribelocalhardware_fuzzer/BUILD.gn @@ -32,6 +32,7 @@ ohos_fuzztest("HandlerUnsubscribeLocalHardwareFuzzTest") { "include", "${common_path}/include", "${interfaces_path}/innerkits/native_cpp/screen_sink/include", + "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", ] cflags = [ @@ -43,10 +44,7 @@ ohos_fuzztest("HandlerUnsubscribeLocalHardwareFuzzTest") { sources = [ "unsubscribelocalhardware_fuzzer.cpp" ] - deps = [ - "${common_path}:distributed_screen_utils", - "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk", - ] + deps = [ "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk" ] defines = [ "HI_LOG_ENABLE", @@ -54,13 +52,7 @@ ohos_fuzztest("HandlerUnsubscribeLocalHardwareFuzzTest") { "LOG_DOMAIN=0xD004100", ] - external_deps = [ - "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] + external_deps = [ "c_utils:utils" ] } ############################################################################### diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyinitsink_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyinitsink_fuzzer/BUILD.gn index 7ad4c5bb..1e8a6eee 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyinitsink_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyinitsink_fuzzer/BUILD.gn @@ -43,10 +43,7 @@ ohos_fuzztest("ProxyInitSinkFuzzTest") { sources = [ "initsink_fuzzer.cpp" ] - deps = [ - "${common_path}:distributed_screen_utils", - "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk", - ] + deps = [ "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk" ] defines = [ "HI_LOG_ENABLE", @@ -56,9 +53,7 @@ ohos_fuzztest("ProxyInitSinkFuzzTest") { external_deps = [ "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", - "safwk:system_ability_fwk", "samgr:samgr_proxy", ] } diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxysubscribelocalhardware_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxysubscribelocalhardware_fuzzer/BUILD.gn index 4f3951e7..b1df95b9 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxysubscribelocalhardware_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxysubscribelocalhardware_fuzzer/BUILD.gn @@ -43,10 +43,7 @@ ohos_fuzztest("ProxySubscribeLocalHardwareFuzzTest") { sources = [ "subscribelocalhardware_fuzzer.cpp" ] - deps = [ - "${common_path}:distributed_screen_utils", - "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk", - ] + deps = [ "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk" ] defines = [ "HI_LOG_ENABLE", @@ -56,9 +53,7 @@ ohos_fuzztest("ProxySubscribeLocalHardwareFuzzTest") { external_deps = [ "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", - "safwk:system_ability_fwk", "samgr:samgr_proxy", ] } diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyunsubscribelocalhardware_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyunsubscribelocalhardware_fuzzer/BUILD.gn index 5d36af55..5d5e4a5d 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyunsubscribelocalhardware_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxyunsubscribelocalhardware_fuzzer/BUILD.gn @@ -43,10 +43,7 @@ ohos_fuzztest("ProxyUnsubscribeLocalHardwareFuzzTest") { sources = [ "unsubscribelocalhardware_fuzzer.cpp" ] - deps = [ - "${common_path}:distributed_screen_utils", - "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk", - ] + deps = [ "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk" ] defines = [ "HI_LOG_ENABLE", @@ -56,9 +53,7 @@ ohos_fuzztest("ProxyUnsubscribeLocalHardwareFuzzTest") { external_deps = [ "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", - "safwk:system_ability_fwk", "samgr:samgr_proxy", ] } diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/sinkproxydscreennotify_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/sinkproxydscreennotify_fuzzer/BUILD.gn index 0ba80693..adf6fd4f 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/sinkproxydscreennotify_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/sinkproxydscreennotify_fuzzer/BUILD.gn @@ -43,10 +43,7 @@ ohos_fuzztest("SinkProxyDScreenNotifyFuzzTest") { sources = [ "sinkproxydscreennotify_fuzzer.cpp" ] - deps = [ - "${common_path}:distributed_screen_utils", - "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk", - ] + deps = [ "${interfaces_path}/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk" ] defines = [ "HI_LOG_ENABLE", @@ -56,9 +53,7 @@ ohos_fuzztest("SinkProxyDScreenNotifyFuzzTest") { external_deps = [ "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", - "safwk:system_ability_fwk", "samgr:samgr_proxy", ] } diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerconfigdistributedhardware_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerconfigdistributedhardware_fuzzer/BUILD.gn index b9a36fc7..1bfa68f9 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerconfigdistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerconfigdistributedhardware_fuzzer/BUILD.gn @@ -36,6 +36,7 @@ ohos_fuzztest("HandlerConfigDistributedHardwareFuzzTest") { "${interfaces_path}/innerkits/native_cpp/screen_source/include/callback", "${fwk_services_path}/distributedhardwarefwkservice/include", "${fwk_services_path}/distributedhardwarefwkservice/include/componentmanager", + "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", ] cflags = [ @@ -48,7 +49,6 @@ ohos_fuzztest("HandlerConfigDistributedHardwareFuzzTest") { sources = [ "configdistributedhardware_fuzzer.cpp" ] deps = [ - "${common_path}:distributed_screen_utils", "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", "${interfaces_path}/innerkits/native_cpp/screen_source:distributed_screen_source_sdk", ] @@ -59,13 +59,7 @@ ohos_fuzztest("HandlerConfigDistributedHardwareFuzzTest") { "LOG_DOMAIN=0xD004100", ] - external_deps = [ - "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] + external_deps = [ "c_utils:utils" ] } ############################################################################### diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerinitsource_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerinitsource_fuzzer/BUILD.gn index eefc55bf..d18b4fa3 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerinitsource_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerinitsource_fuzzer/BUILD.gn @@ -36,6 +36,7 @@ ohos_fuzztest("HandlerInitSourceFuzzTest") { "${interfaces_path}/innerkits/native_cpp/screen_source/include/callback", "${fwk_services_path}/distributedhardwarefwkservice/include", "${fwk_services_path}/distributedhardwarefwkservice/include/componentmanager", + "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", ] cflags = [ @@ -48,7 +49,6 @@ ohos_fuzztest("HandlerInitSourceFuzzTest") { sources = [ "initsource_fuzzer.cpp" ] deps = [ - "${common_path}:distributed_screen_utils", "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", "${interfaces_path}/innerkits/native_cpp/screen_source:distributed_screen_source_sdk", ] @@ -59,13 +59,7 @@ ohos_fuzztest("HandlerInitSourceFuzzTest") { "LOG_DOMAIN=0xD004100", ] - external_deps = [ - "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] + external_deps = [ "c_utils:utils" ] } ############################################################################### diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handleronremotesourcesvrdied_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handleronremotesourcesvrdied_fuzzer/BUILD.gn index 3fb6293a..4a3e62d6 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handleronremotesourcesvrdied_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handleronremotesourcesvrdied_fuzzer/BUILD.gn @@ -36,6 +36,7 @@ ohos_fuzztest("HandlerOnRemoteSourceSvrDiedFuzzTest") { "${interfaces_path}/innerkits/native_cpp/screen_source/include/callback", "${fwk_services_path}/distributedhardwarefwkservice/include", "${fwk_services_path}/distributedhardwarefwkservice/include/componentmanager", + "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", ] cflags = [ @@ -48,7 +49,6 @@ ohos_fuzztest("HandlerOnRemoteSourceSvrDiedFuzzTest") { sources = [ "onremotesourcesvrdied_fuzzer.cpp" ] deps = [ - "${common_path}:distributed_screen_utils", "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", "${interfaces_path}/innerkits/native_cpp/screen_source:distributed_screen_source_sdk", ] @@ -61,9 +61,6 @@ ohos_fuzztest("HandlerOnRemoteSourceSvrDiedFuzzTest") { external_deps = [ "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", - "ipc:ipc_core", - "safwk:system_ability_fwk", "samgr:samgr_proxy", ] } diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerregisterdistributedhardware_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerregisterdistributedhardware_fuzzer/BUILD.gn index 91633c3a..42c6aa43 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerregisterdistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerregisterdistributedhardware_fuzzer/BUILD.gn @@ -36,6 +36,7 @@ ohos_fuzztest("HandlerRegisterDistributedHardwareFuzzTest") { "${interfaces_path}/innerkits/native_cpp/screen_source/include/callback", "${fwk_services_path}/distributedhardwarefwkservice/include", "${fwk_services_path}/distributedhardwarefwkservice/include/componentmanager", + "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", ] cflags = [ @@ -48,7 +49,6 @@ ohos_fuzztest("HandlerRegisterDistributedHardwareFuzzTest") { sources = [ "registerdistributedhardware_fuzzer.cpp" ] deps = [ - "${common_path}:distributed_screen_utils", "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", "${interfaces_path}/innerkits/native_cpp/screen_source:distributed_screen_source_sdk", ] @@ -59,13 +59,7 @@ ohos_fuzztest("HandlerRegisterDistributedHardwareFuzzTest") { "LOG_DOMAIN=0xD004100", ] - external_deps = [ - "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] + external_deps = [ "c_utils:utils" ] } ############################################################################### diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerunregisterdistributedhardware_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerunregisterdistributedhardware_fuzzer/BUILD.gn index 71f840bb..5deee259 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerunregisterdistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handlerunregisterdistributedhardware_fuzzer/BUILD.gn @@ -36,6 +36,7 @@ ohos_fuzztest("HandlerUnregisterDistributedHardwareFuzzTest") { "${interfaces_path}/innerkits/native_cpp/screen_source/include/callback", "${fwk_services_path}/distributedhardwarefwkservice/include", "${fwk_services_path}/distributedhardwarefwkservice/include/componentmanager", + "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", ] cflags = [ @@ -48,7 +49,6 @@ ohos_fuzztest("HandlerUnregisterDistributedHardwareFuzzTest") { sources = [ "unregisterdistributedhardware_fuzzer.cpp" ] deps = [ - "${common_path}:distributed_screen_utils", "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", "${interfaces_path}/innerkits/native_cpp/screen_source:distributed_screen_source_sdk", ] @@ -59,13 +59,7 @@ ohos_fuzztest("HandlerUnregisterDistributedHardwareFuzzTest") { "LOG_DOMAIN=0xD004100", ] - external_deps = [ - "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] + external_deps = [ "c_utils:utils" ] } ############################################################################### diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyconfigdistributedhardware_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyconfigdistributedhardware_fuzzer/BUILD.gn index 723d3350..b6b130ad 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyconfigdistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyconfigdistributedhardware_fuzzer/BUILD.gn @@ -48,7 +48,6 @@ ohos_fuzztest("ProxyConfigDistributedHardwareFuzzTest") { sources = [ "configdistributedhardware_fuzzer.cpp" ] deps = [ - "${common_path}:distributed_screen_utils", "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", "${interfaces_path}/innerkits/native_cpp/screen_source:distributed_screen_source_sdk", ] @@ -61,9 +60,7 @@ ohos_fuzztest("ProxyConfigDistributedHardwareFuzzTest") { external_deps = [ "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", - "safwk:system_ability_fwk", "samgr:samgr_proxy", ] } diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxydscreennotify_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxydscreennotify_fuzzer/BUILD.gn index e2a8662d..bbf50f9c 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxydscreennotify_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxydscreennotify_fuzzer/BUILD.gn @@ -48,7 +48,6 @@ ohos_fuzztest("ProxyDScreenNotifyFuzzTest") { sources = [ "dscreennotify_fuzzer.cpp" ] deps = [ - "${common_path}:distributed_screen_utils", "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", "${interfaces_path}/innerkits/native_cpp/screen_source:distributed_screen_source_sdk", ] @@ -61,9 +60,7 @@ ohos_fuzztest("ProxyDScreenNotifyFuzzTest") { external_deps = [ "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", - "safwk:system_ability_fwk", "samgr:samgr_proxy", ] } diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyinitsource_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyinitsource_fuzzer/BUILD.gn index 07b61465..acd421f9 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyinitsource_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyinitsource_fuzzer/BUILD.gn @@ -48,7 +48,6 @@ ohos_fuzztest("ProxyInitSourceFuzzTest") { sources = [ "initsource_fuzzer.cpp" ] deps = [ - "${common_path}:distributed_screen_utils", "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", "${interfaces_path}/innerkits/native_cpp/screen_source:distributed_screen_source_sdk", ] @@ -61,9 +60,7 @@ ohos_fuzztest("ProxyInitSourceFuzzTest") { external_deps = [ "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", - "safwk:system_ability_fwk", "samgr:samgr_proxy", ] } diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyregisterdistributedhardware_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyregisterdistributedhardware_fuzzer/BUILD.gn index 57213789..2a4388f2 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyregisterdistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyregisterdistributedhardware_fuzzer/BUILD.gn @@ -48,7 +48,6 @@ ohos_fuzztest("ProxyRegisterDistributedHardwareFuzzTest") { sources = [ "registerdistributedhardware_fuzzer.cpp" ] deps = [ - "${common_path}:distributed_screen_utils", "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", "${interfaces_path}/innerkits/native_cpp/screen_source:distributed_screen_source_sdk", ] @@ -61,9 +60,7 @@ ohos_fuzztest("ProxyRegisterDistributedHardwareFuzzTest") { external_deps = [ "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", - "safwk:system_ability_fwk", "samgr:samgr_proxy", ] } diff --git a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyunregisterdistributedhardware_fuzzer/BUILD.gn b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyunregisterdistributedhardware_fuzzer/BUILD.gn index 25ff5164..7b81681b 100644 --- a/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyunregisterdistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyunregisterdistributedhardware_fuzzer/BUILD.gn @@ -48,7 +48,6 @@ ohos_fuzztest("ProxyUnregisterDistributedHardwareFuzzTest") { sources = [ "unregisterdistributedhardware_fuzzer.cpp" ] deps = [ - "${common_path}:distributed_screen_utils", "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", "${interfaces_path}/innerkits/native_cpp/screen_source:distributed_screen_source_sdk", ] @@ -61,9 +60,7 @@ ohos_fuzztest("ProxyUnregisterDistributedHardwareFuzzTest") { external_deps = [ "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", - "safwk:system_ability_fwk", "samgr:samgr_proxy", ] } diff --git a/screenhandler/test/fuzztest/pluginhardware_fuzzer/BUILD.gn b/screenhandler/test/fuzztest/pluginhardware_fuzzer/BUILD.gn index 46b21fef..8750d3b7 100644 --- a/screenhandler/test/fuzztest/pluginhardware_fuzzer/BUILD.gn +++ b/screenhandler/test/fuzztest/pluginhardware_fuzzer/BUILD.gn @@ -35,7 +35,16 @@ ohos_fuzztest("PluginHardwareFuzzTest") { "${common_path}/include", "${distributedscreen_path}/screenhandler/include", "${fwk_services_path}/distributedhardwarefwkservice/include/localhardwaremanager", + "//drivers/peripheral/base", + "//drivers/peripheral/display/interfaces/include", + "//foundation/arkui/ace_engine/frameworks/base/utils", + "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", "//foundation/distributedhardware/distributed_hardware_fwk/common/utils/include", + "//foundation/graphic/graphic_2d/interfaces/inner_api/surface", + "//foundation/graphic/graphic_2d/interfaces/inner_api/common", + "//foundation/graphic/graphic_2d/rosen/modules/render_service_base/include", + "//foundation/graphic/graphic_2d/utils/buffer_handle/export", + "//foundation/window/window_manager/utils/include", ] cflags = [ @@ -48,13 +57,8 @@ ohos_fuzztest("PluginHardwareFuzzTest") { sources = [ "pluginhardware_fuzzer.cpp" ] deps = [ - "${common_path}:distributed_screen_utils", "${distributedscreen_path}/screenhandler:distributed_screen_handler", "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", - "${mediastandard_path}/interfaces/inner_api/native:media_client", - "${windowmanager_path}/dm:libdm", - "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", - "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", ] defines = [ @@ -63,10 +67,7 @@ ohos_fuzztest("PluginHardwareFuzzTest") { "LOG_DOMAIN=0xD004100", ] - external_deps = [ - "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", - ] + external_deps = [ "c_utils:utils" ] } ############################################################################### diff --git a/screenhandler/test/fuzztest/registerpluginlistener_fuzzer/BUILD.gn b/screenhandler/test/fuzztest/registerpluginlistener_fuzzer/BUILD.gn index 41698b80..8fe81db0 100644 --- a/screenhandler/test/fuzztest/registerpluginlistener_fuzzer/BUILD.gn +++ b/screenhandler/test/fuzztest/registerpluginlistener_fuzzer/BUILD.gn @@ -35,7 +35,16 @@ ohos_fuzztest("RegisterPluginListenerFuzzTest") { "${common_path}/include", "${distributedscreen_path}/screenhandler/include", "${fwk_services_path}/distributedhardwarefwkservice/include/localhardwaremanager", + "//drivers/peripheral/base", + "//drivers/peripheral/display/interfaces/include", + "//foundation/arkui/ace_engine/frameworks/base/utils", + "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", "//foundation/distributedhardware/distributed_hardware_fwk/common/utils/include", + "//foundation/graphic/graphic_2d/interfaces/inner_api/surface", + "//foundation/graphic/graphic_2d/interfaces/inner_api/common", + "//foundation/graphic/graphic_2d/rosen/modules/render_service_base/include", + "//foundation/graphic/graphic_2d/utils/buffer_handle/export", + "//foundation/window/window_manager/utils/include", ] cflags = [ @@ -48,13 +57,8 @@ ohos_fuzztest("RegisterPluginListenerFuzzTest") { sources = [ "registerpluginlistener_fuzzer.cpp" ] deps = [ - "${common_path}:distributed_screen_utils", "${distributedscreen_path}/screenhandler:distributed_screen_handler", "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", - "${mediastandard_path}/interfaces/inner_api/native:media_client", - "${windowmanager_path}/dm:libdm", - "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", - "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", ] defines = [ @@ -63,10 +67,7 @@ ohos_fuzztest("RegisterPluginListenerFuzzTest") { "LOG_DOMAIN=0xD004100", ] - external_deps = [ - "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", - ] + external_deps = [ "c_utils:utils" ] } ############################################################################### diff --git a/screenhandler/test/fuzztest/unpluginhardware_fuzzer/BUILD.gn b/screenhandler/test/fuzztest/unpluginhardware_fuzzer/BUILD.gn index 9ea8e19e..7382b187 100644 --- a/screenhandler/test/fuzztest/unpluginhardware_fuzzer/BUILD.gn +++ b/screenhandler/test/fuzztest/unpluginhardware_fuzzer/BUILD.gn @@ -35,7 +35,16 @@ ohos_fuzztest("UnPluginHardwareFuzzTest") { "${common_path}/include", "${distributedscreen_path}/screenhandler/include", "${fwk_services_path}/distributedhardwarefwkservice/include/localhardwaremanager", + "//drivers/peripheral/base", + "//drivers/peripheral/display/interfaces/include", + "//foundation/arkui/ace_engine/frameworks/base/utils", + "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", "//foundation/distributedhardware/distributed_hardware_fwk/common/utils/include", + "//foundation/graphic/graphic_2d/interfaces/inner_api/surface", + "//foundation/graphic/graphic_2d/interfaces/inner_api/common", + "//foundation/graphic/graphic_2d/rosen/modules/render_service_base/include", + "//foundation/graphic/graphic_2d/utils/buffer_handle/export", + "//foundation/window/window_manager/utils/include", ] cflags = [ @@ -48,13 +57,8 @@ ohos_fuzztest("UnPluginHardwareFuzzTest") { sources = [ "unpluginhardware_fuzzer.cpp" ] deps = [ - "${common_path}:distributed_screen_utils", "${distributedscreen_path}/screenhandler:distributed_screen_handler", "${fwk_services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr", - "${mediastandard_path}/interfaces/inner_api/native:media_client", - "${windowmanager_path}/dm:libdm", - "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", - "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", ] defines = [ @@ -63,10 +67,7 @@ ohos_fuzztest("UnPluginHardwareFuzzTest") { "LOG_DOMAIN=0xD004100", ] - external_deps = [ - "c_utils:utils", - "hiviewdfx_hilog_native:libhilog", - ] + external_deps = [ "c_utils:utils" ] } ############################################################################### -- Gitee