From 19bee0baea8cfb3de6d9e400ba1196c7bb681455 Mon Sep 17 00:00:00 2001 From: w30042960 Date: Mon, 17 Mar 2025 15:32:49 +0800 Subject: [PATCH] modify outpath Signed-off-by: w30042960 --- audiohandler/BUILD.gn | 64 ----- audiohandler/test/unittest/BUILD.gn | 54 ----- common/dfx_utils/test/unittest/BUILD.gn | 94 -------- common/test/unittest/BUILD.gn | 55 ----- .../inner_kits/native_cpp/audio_sink/BUILD.gn | 71 ------ .../native_cpp/audio_source/BUILD.gn | 71 ------ .../native_cpp/test/fuzztest/BUILD.gn | 73 ------ .../onremotesinksvrdied_fuzzer/BUILD.gn | 61 ----- .../onremotesourcesvrdied_fuzzer/BUILD.gn | 62 ----- .../sinkhandlerfinishstartsa_fuzzer/BUILD.gn | 60 ----- .../sinkhandlerinitsink_fuzzer/BUILD.gn | 61 ----- .../BUILD.gn | 61 ----- .../BUILD.gn | 61 ----- .../BUILD.gn | 60 ----- .../BUILD.gn | 61 ----- .../BUILD.gn | 61 ----- .../BUILD.gn | 61 ----- .../BUILD.gn | 61 ----- .../BUILD.gn | 63 ----- .../BUILD.gn | 63 ----- .../BUILD.gn | 60 ----- .../BUILD.gn | 61 ----- .../sinkproxydaudionotify_fuzzer/BUILD.gn | 61 ----- .../sinkproxyinitsink_fuzzer/BUILD.gn | 61 ----- .../BUILD.gn | 61 ----- .../BUILD.gn | 61 ----- .../BUILD.gn | 62 ----- .../BUILD.gn | 61 ----- .../sourcehandlerinitsource_fuzzer/BUILD.gn | 61 ----- .../BUILD.gn | 63 ----- .../BUILD.gn | 63 ----- .../BUILD.gn | 62 ----- .../BUILD.gn | 62 ----- .../BUILD.gn | 62 ----- .../BUILD.gn | 62 ----- .../BUILD.gn | 62 ----- .../sourceproxydaudionotify_fuzzer/BUILD.gn | 61 ----- .../sourceproxyinitsource_fuzzer/BUILD.gn | 62 ----- .../BUILD.gn | 62 ----- .../BUILD.gn | 62 ----- .../native_cpp/test/unittest/BUILD.gn | 32 --- .../test/unittest/audiosinktest/BUILD.gn | 56 ----- .../test/unittest/audiosourcetest/BUILD.gn | 59 ----- sa_profile/BUILD.gn | 30 --- services/audioclient/test/unittest/BUILD.gn | 24 -- .../test/unittest/micclient/BUILD.gn | 70 ------ .../test/unittest/spkclient/BUILD.gn | 73 ------ services/audiocontrol/test/unittest/BUILD.gn | 24 -- .../test/unittest/controlsink/BUILD.gn | 56 ----- .../test/unittest/controlsource/BUILD.gn | 58 ----- services/audiohdiproxy/test/unittest/BUILD.gn | 24 -- .../test/unittest/daudio_hdi_handler/BUILD.gn | 57 ----- .../unittest/daudio_manager_callback/BUILD.gn | 60 ----- services/audiomanager/servicesink/BUILD.gn | 120 ---------- services/audiomanager/servicesource/BUILD.gn | 154 ------------ .../sinkservicedaudionotify_fuzzer/BUILD.gn | 62 ----- .../sinkserviceinitsink_fuzzer/BUILD.gn | 65 ----- .../BUILD.gn | 62 ----- .../sinkservicereleasesink_fuzzer/BUILD.gn | 62 ----- .../BUILD.gn | 61 ----- .../BUILD.gn | 62 ----- .../BUILD.gn | 62 ----- .../BUILD.gn | 62 ----- .../sinkstubdaudiosinkstub_fuzzer/BUILD.gn | 64 ----- .../sinkstubonremoterequest_fuzzer/BUILD.gn | 64 ----- .../BUILD.gn | 70 ------ .../sourceservicedaudionotify_fuzzer/BUILD.gn | 71 ------ .../sourceserviceinitsource_fuzzer/BUILD.gn | 73 ------ .../BUILD.gn | 70 ------ .../BUILD.gn | 71 ------ .../BUILD.gn | 70 ------ services/audiomanager/test/unittest/BUILD.gn | 31 --- .../test/unittest/managersink/BUILD.gn | 138 ----------- .../test/unittest/servicesink/BUILD.gn | 114 --------- .../test/unittest/servicesource/BUILD.gn | 127 ---------- .../test/unittest/sourcedevice/BUILD.gn | 225 ------------------ .../test/unittest/sourcemanager/BUILD.gn | 89 ------- .../audioprocessor/test/unittest/BUILD.gn | 21 -- .../unittest/common/directprocessor/BUILD.gn | 65 ----- .../audiotransport/receiverengine/BUILD.gn | 84 ------- services/audiotransport/senderengine/BUILD.gn | 84 ------- .../audiotransport/test/unittest/BUILD.gn | 25 -- .../test/unittest/audioctrltransport/BUILD.gn | 67 ------ .../test/unittest/receiverengine/BUILD.gn | 66 ----- .../test/unittest/senderengine/BUILD.gn | 65 ----- services/common/BUILD.gn | 85 ------- .../audiodatasetinit64_fuzzer/BUILD.gn | 60 ----- .../common/test/unittest/audiodata/BUILD.gn | 49 ---- services/test_example/BUILD.gn | 51 ---- 89 files changed, 5904 deletions(-) diff --git a/audiohandler/BUILD.gn b/audiohandler/BUILD.gn index 683a1910..e69de29b 100644 --- a/audiohandler/BUILD.gn +++ b/audiohandler/BUILD.gn @@ -1,64 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../distributedaudio.gni") - -ohos_shared_library("distributed_audio_handler") { - branch_protector_ret = "pac_ret" - sanitize = { - boundary_sanitize = true - integer_overflow = true - ubsan = true - } - stack_protector_ret = true - - include_dirs = [ - "include", - "${common_path}/include", - "${services_path}/common/audioparam", - ] - - sources = [ "src/daudio_handler.cpp" ] - - deps = [ "${services_path}/common:distributed_audio_utils" ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "hilog:libhilog", - ] - - defines = [ - "HI_LOG_ENABLE", - "LOG_DOMAIN=0xD004130", - ] - - cflags = [ "-Wno-shadow" ] - cflags_cc = cflags - - ldflags = [ - "-fpie", - "-Wl,-z,relro", - "-Wl,-z,now", - ] - - subsystem_name = "distributedhardware" - - part_name = "distributed_audio" -} diff --git a/audiohandler/test/unittest/BUILD.gn b/audiohandler/test/unittest/BUILD.gn index 57f9b1c3..e69de29b 100644 --- a/audiohandler/test/unittest/BUILD.gn +++ b/audiohandler/test/unittest/BUILD.gn @@ -1,54 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/test.gni") -import("../../../distributedaudio.gni") - -module_out_path = "distributed_audio/audio_handler_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${distributedaudio_path}/audiohandler/include", - "${services_path}/common/audioparam", - ] -} - -## UnitTest audio_handler_test -ohos_unittest("AudioHandlerTest") { - module_out_path = module_out_path - - sources = [ "${distributedaudio_path}/audiohandler/test/unittest/src/daudio_handler_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ "${distributedaudio_path}/audiohandler:distributed_audio_handler" ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "hilog:libhilog", - ] -} - -group("audio_handler_test") { - testonly = true - deps = [ ":AudioHandlerTest" ] -} diff --git a/common/dfx_utils/test/unittest/BUILD.gn b/common/dfx_utils/test/unittest/BUILD.gn index e8ddddea..e69de29b 100644 --- a/common/dfx_utils/test/unittest/BUILD.gn +++ b/common/dfx_utils/test/unittest/BUILD.gn @@ -1,94 +0,0 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("//build/test.gni") -import("../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/common/dfx_utils_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "include", - "${audio_control_path}/controlsource/include", - "${audio_hdi_proxy_path}/include", - "${audio_processor_path}/interface", - "${audio_transport_path}/decodetransport/include", - "${audio_transport_path}/encodetransport/include", - "${audio_transport_path}/interface", - "${audio_transport_path}/receiverengine/include", - "${audio_transport_path}/senderengine/include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${distributedaudio_path}/audiohandler/include", - "${interfaces_path}/inner_kits/native_cpp/audio_sink/include", - "${interfaces_path}/inner_kits/native_cpp/audio_source/include", - "${innerkits_path}/native_cpp/audio_source/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${services_path}/common/audioparam", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioeventcallback", - "${services_path}/audiomanager/managersource/include", - ] -} - -## UnitTest daudio_dfx_test -ohos_unittest("DAudioDfxTest") { - module_out_path = module_out_path - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - "-Dprivate=public", - "-Dprotected=public", - ] - - sources = [ - "${common_path}/dfx_utils/test/unittest/src/daudio_hidumper_test.cpp", - "${common_path}/dfx_utils/test/unittest/src/daudio_hitrace_test.cpp", - "${common_path}/dfx_utils/test/unittest/src/daudio_radar_test.cpp", - ] - configs = [ ":module_private_config" ] - - deps = [ - "${services_path}/audiomanager/servicesource:distributed_audio_source", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudio_proxy_1.0", - "dsoftbus:softbus_client", - "googletest:gmock", - "hilog:libhilog", - "hisysevent:libhisysevent", - "hitrace:hitrace_meter", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -group("daudio_dfx_test") { - testonly = true - deps = [ ":DAudioDfxTest" ] -} diff --git a/common/test/unittest/BUILD.gn b/common/test/unittest/BUILD.gn index 95bbdada..e69de29b 100644 --- a/common/test/unittest/BUILD.gn +++ b/common/test/unittest/BUILD.gn @@ -1,55 +0,0 @@ -# Copyright (c) 2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("//build/test.gni") -import("../../../distributedaudio.gni") - -module_output_path = "distributed_audio/common/daudio_util_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "${common_path}/include", - "include", - ] -} - -ohos_unittest("DaudioUtilsTest") { - module_out_path = module_output_path - - sources = [ "src/daudio_utils_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ "${services_path}/common:distributed_audio_utils" ] - - external_deps = [ - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "hilog:libhilog", - ] - - defines = [ - "HI_LOG_ENABLE", - "LOG_DOMAIN=0xD004130", - ] -} - -group("daudio_utils_test") { - testonly = true - deps = [ ":DaudioUtilsTest" ] -} diff --git a/interfaces/inner_kits/native_cpp/audio_sink/BUILD.gn b/interfaces/inner_kits/native_cpp/audio_sink/BUILD.gn index a7d027bd..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/audio_sink/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/audio_sink/BUILD.gn @@ -1,71 +0,0 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../../distributedaudio.gni") - -ohos_shared_library("distributed_audio_sink_sdk") { - branch_protector_ret = "pac_ret" - sanitize = { - boundary_sanitize = true - cfi = true - cfi_cross_dso = true - debug = false - integer_overflow = true - ubsan = true - } - stack_protector_ret = true - - include_dirs = [ - "include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - ] - - sources = [ - "src/daudio_sink_handler.cpp", - "src/daudio_sink_ipc_callback.cpp", - "src/daudio_sink_ipc_callback_stub.cpp", - "src/daudio_sink_load_callback.cpp", - "src/daudio_sink_proxy.cpp", - ] - - ldflags = [ - "-fpie", - "-Wl,-z,relro", - "-Wl,-z,now", - ] - - deps = [ "${services_path}/common:distributed_audio_utils" ] - - external_deps = [ - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "hilog:libhilog", - "hisysevent:libhisysevent", - "hitrace:hitrace_meter", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - defines = [ - "HI_LOG_ENABLE", - "LOG_DOMAIN=0xD004130", - ] - - subsystem_name = "distributedhardware" - - part_name = "distributed_audio" -} diff --git a/interfaces/inner_kits/native_cpp/audio_source/BUILD.gn b/interfaces/inner_kits/native_cpp/audio_source/BUILD.gn index 750e93a6..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/audio_source/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/audio_source/BUILD.gn @@ -1,71 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../../distributedaudio.gni") - -ohos_shared_library("distributed_audio_source_sdk") { - branch_protector_ret = "pac_ret" - sanitize = { - boundary_sanitize = true - cfi = true - cfi_cross_dso = true - debug = false - integer_overflow = true - ubsan = true - } - stack_protector_ret = true - - include_dirs = [ - "include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - ] - - sources = [ - "src/daudio_ipc_callback.cpp", - "src/daudio_ipc_callback_stub.cpp", - "src/daudio_source_handler.cpp", - "src/daudio_source_load_callback.cpp", - "src/daudio_source_proxy.cpp", - ] - - ldflags = [ - "-fpie", - "-Wl,-z,relro", - "-Wl,-z,now", - ] - - deps = [ "${services_path}/common:distributed_audio_utils" ] - - external_deps = [ - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "hilog:libhilog", - "hisysevent:libhisysevent", - "hitrace:hitrace_meter", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - defines = [ - "HI_LOG_ENABLE", - "LOG_DOMAIN=0xD004130", - ] - - subsystem_name = "distributedhardware" - - part_name = "distributed_audio" -} diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/BUILD.gn index f4754e41..e69de29b 100644 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/BUILD.gn @@ -1,73 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../../../distributedaudio.gni") - -group("fuzztest") { - testonly = true - - deps = [ - "${services_path}/audiomanager/test/fuzztest/sinkservicedaudionotify_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sinkserviceinitsink_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sinkservicepausedistributedhardware_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sinkservicereleasesink_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sinkserviceresumedistributedhardware_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sinkservicestopdistributedhardware_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sinkservicesubscribelocalhardware_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sinkserviceunsubscribelocalhardware_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sinkstubdaudiosinkstub_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sinkstubonremoterequest_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sourceserviceconfigdistributedhardware_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sourceservicedaudionotify_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sourceserviceinitsource_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sourceserviceregisterdistributedhardware_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sourceservicereleasesource_fuzzer:fuzztest", - "${services_path}/audiomanager/test/fuzztest/sourceserviceunregisterdistributedhardware_fuzzer:fuzztest", - "${services_path}/common/test/fuzztest/audiodatasetinit64_fuzzer:fuzztest", - "onremotesinksvrdied_fuzzer:fuzztest", - "onremotesourcesvrdied_fuzzer:fuzztest", - "sinkhandlerfinishstartsa_fuzzer:fuzztest", - "sinkhandlerinitsink_fuzzer:fuzztest", - "sinkhandlerpausedistributedhardware_fuzzer:fuzztest", - "sinkhandlerregisterprivacyresources_fuzzer:fuzztest", - "sinkhandlerresumedistributedhardware_fuzzer:fuzztest", - "sinkhandlerstopdistributedhardware_fuzzer:fuzztest", - "sinkhandlersubscribelocalhardware_fuzzer:fuzztest", - "sinkhandlerunsubscribelocalhardware_fuzzer:fuzztest", - "sinkipccallbackonnotifyresourceinfo_fuzzer:fuzztest", - "sinkipccallbackonnotifyresourceinfoinner_fuzzer:fuzztest", - "sinkipccallbackonremoterequest_fuzzer:fuzztest", - "sinkonloadsystemabilityfail_fuzzer:fuzztest", - "sinkonloadsystemabilitysuccess_fuzzer:fuzztest", - "sinkproxydaudionotify_fuzzer:fuzztest", - "sinkproxyinitsink_fuzzer:fuzztest", - "sinkproxysubscribelocalhardware_fuzzer:fuzztest", - "sinkproxyunsubscribelocalhardware_fuzzer:fuzztest", - "sourcehandlerconfigdistributedhardware_fuzzer:fuzztest", - "sourcehandlerfinishstartsa_fuzzer:fuzztest", - "sourcehandlerinitsource_fuzzer:fuzztest", - "sourcehandlerregisterdistributedhardware_fuzzer:fuzztest", - "sourcehandlerunregisterdistributedhardware_fuzzer:fuzztest", - "sourceipccallbackonnotifyregresult_fuzzer:fuzztest", - "sourceipccallbackonnotifyunregresult_fuzzer:fuzztest", - "sourceonloadsystemabilityfail_fuzzer:fuzztest", - "sourceonloadsystemabilitysuccess_fuzzer:fuzztest", - "sourceproxyconfigdistributedhardware_fuzzer:fuzztest", - "sourceproxydaudionotify_fuzzer:fuzztest", - "sourceproxyinitsource_fuzzer:fuzztest", - "sourceproxyregisterdistributedhardware_fuzzer:fuzztest", - "sourceproxyunregisterdistributedhardware_fuzzer:fuzztest", - ] -} diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/onremotesinksvrdied_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/onremotesinksvrdied_fuzzer/BUILD.gn index ab6491ff..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/onremotesinksvrdied_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/onremotesinksvrdied_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("OnRemoteSinkSvrDiedFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/onremotesinksvrdied" - fuzz_config_file = - "${innerkits_path}/native_cpp/test/fuzztest/onremotesinksvrdied_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "onremotesinksvrdied_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"OnRemoteSinkSvrDiedFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":OnRemoteSinkSvrDiedFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/onremotesourcesvrdied_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/onremotesourcesvrdied_fuzzer/BUILD.gn index b2680161..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/onremotesourcesvrdied_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/onremotesourcesvrdied_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("OnRemoteSourceSvrDiedFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/onremotesourcesvrdied" - fuzz_config_file = - "${innerkits_path}/native_cpp/test/fuzztest/onremotesourcesvrdied_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "onremotesourcesvrdied_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"OnRemoteSourceSvrDiedFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":OnRemoteSourceSvrDiedFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerfinishstartsa_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerfinishstartsa_fuzzer/BUILD.gn index fd0eabae..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerfinishstartsa_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerfinishstartsa_fuzzer/BUILD.gn @@ -1,60 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkHandlerFinishStartSAFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sinkhandlerfinishstartsa" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkhandlerfinishstartsa_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkhandlerfinishstartsa_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkHandlerFinishStartSAFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkHandlerFinishStartSAFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerinitsink_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerinitsink_fuzzer/BUILD.gn index 7b8ba064..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerinitsink_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerinitsink_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkHandlerInitSinkFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sinkhandlerinitsink" - fuzz_config_file = - "${innerkits_path}/native_cpp/test/fuzztest/sinkhandlerinitsink_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkhandlerinitsink_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkHandlerInitSinkFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkHandlerInitSinkFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerpausedistributedhardware_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerpausedistributedhardware_fuzzer/BUILD.gn index 498a7526..e69de29b 100644 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerpausedistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerpausedistributedhardware_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkHandlerPauseDistributedHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkhandlerpausedistributedhardware" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkhandlerpausedistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkhandlerpausedistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkHandlerPauseDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkHandlerPauseDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerregisterprivacyresources_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerregisterprivacyresources_fuzzer/BUILD.gn index 2d98fbf7..e69de29b 100644 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerregisterprivacyresources_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerregisterprivacyresources_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkHandlerRegisterPrivacyResourcesFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkhandlerregisterprivacyresources" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkhandlerregisterprivacyresources_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkhandlerregisterprivacyresources_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${innerkits_path}/native_cpp/test/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkHandlerRegisterPrivacyResourcesFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkHandlerRegisterPrivacyResourcesFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerresumedistributedhardware_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerresumedistributedhardware_fuzzer/BUILD.gn index 225eb905..e69de29b 100644 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerresumedistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerresumedistributedhardware_fuzzer/BUILD.gn @@ -1,60 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkHandlerResumeDistributedHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkhandlerresumedistributedhardware" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkhandlerresumedistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkhandlerresumedistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkHandlerResumeDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkHandlerResumeDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerstopdistributedhardware_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerstopdistributedhardware_fuzzer/BUILD.gn index 05269bf9..e69de29b 100644 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerstopdistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerstopdistributedhardware_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkHandlerStopDistributedHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkhandlerstopdistributedhardware" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkhandlerstopdistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkhandlerstopdistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkHandlerStopDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkHandlerStopDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlersubscribelocalhardware_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlersubscribelocalhardware_fuzzer/BUILD.gn index 7dfe780b..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlersubscribelocalhardware_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlersubscribelocalhardware_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkHandlerSubscribeLocalHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkhandlersubscribelocalhardware" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkhandlersubscribelocalhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkhandlersubscribelocalhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkHandlerSubscribeLocalHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkHandlerSubscribeLocalHardwareFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerunsubscribelocalhardware_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerunsubscribelocalhardware_fuzzer/BUILD.gn index 994874bd..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerunsubscribelocalhardware_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkhandlerunsubscribelocalhardware_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkHandlerUnsubscribeLocalHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkhandlerunsubscribelocalhardware" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkhandlerunsubscribelocalhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkhandlerunsubscribelocalhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkHandlerUnsubscribeLocalHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkHandlerUnsubscribeLocalHardwareFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonnotifyresourceinfo_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonnotifyresourceinfo_fuzzer/BUILD.gn index cb9d1ca3..e69de29b 100644 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonnotifyresourceinfo_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonnotifyresourceinfo_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkIpcCallbackOnNotifyResourceInfoFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkipccallbackonnotifyresourceinfo" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkipccallbackonnotifyresourceinfo_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkipccallbackonnotifyresourceinfo_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkIpcCallbackOnNotifyResourceInfoFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkIpcCallbackOnNotifyResourceInfoFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonnotifyresourceinfoinner_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonnotifyresourceinfoinner_fuzzer/BUILD.gn index d43eae74..e69de29b 100644 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonnotifyresourceinfoinner_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonnotifyresourceinfoinner_fuzzer/BUILD.gn @@ -1,63 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkIpcCallbackOnNotifyResourceInfoInnerFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkipccallbackonnotifyresourceinfoinner" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkipccallbackonnotifyresourceinfoinner_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - "-Dprivate=public", - "-Dprotected=public", - ] - sources = [ "sinkipccallbackonnotifyresourceinfoinner_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkIpcCallbackOnNotifyResourceInfoInnerFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkIpcCallbackOnNotifyResourceInfoInnerFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonremoterequest_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonremoterequest_fuzzer/BUILD.gn index c345a2d8..e69de29b 100644 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonremoterequest_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonremoterequest_fuzzer/BUILD.gn @@ -1,63 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkIpcCallbackOnRemoteRequestFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkipccallbackonremoterequest" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkipccallbackonremoterequest_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - "-Dprivate=public", - "-Dprotected=public", - ] - sources = [ "sinkipccallbackonremoterequest_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkIpcCallbackOnRemoteRequestFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkIpcCallbackOnRemoteRequestFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkonloadsystemabilityfail_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkonloadsystemabilityfail_fuzzer/BUILD.gn index 590a4683..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkonloadsystemabilityfail_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkonloadsystemabilityfail_fuzzer/BUILD.gn @@ -1,60 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkOnLoadSystemAbilityFailFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sinkonloadsystemabilityfail" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkonloadsystemabilityfail_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkonloadsystemabilityfail_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkOnLoadSystemAbilityFailFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkOnLoadSystemAbilityFailFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkonloadsystemabilitysuccess_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkonloadsystemabilitysuccess_fuzzer/BUILD.gn index 9b1e0b53..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkonloadsystemabilitysuccess_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkonloadsystemabilitysuccess_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkOnLoadSystemAbilitySuccessFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkonloadsystemabilitysuccess" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkonloadsystemabilitysuccess_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkonloadsystemabilitysuccess_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkOnLoadSystemAbilitySuccessFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkOnLoadSystemAbilitySuccessFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxydaudionotify_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxydaudionotify_fuzzer/BUILD.gn index 63a91e9b..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxydaudionotify_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxydaudionotify_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkProxyDAudioNotifyFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sinkproxydaudionotify" - fuzz_config_file = - "${innerkits_path}/native_cpp/test/fuzztest/sinkproxydaudionotify_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkproxydaudionotify_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkProxyDAudioNotifyFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkProxyDAudioNotifyFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxyinitsink_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxyinitsink_fuzzer/BUILD.gn index 705503db..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxyinitsink_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxyinitsink_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkProxyInitSinkFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sinkproxyinitsink" - fuzz_config_file = - "${innerkits_path}/native_cpp/test/fuzztest/sinkproxyinitsink_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkproxyinitsink_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkProxyInitSinkFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkProxyInitSinkFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxysubscribelocalhardware_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxysubscribelocalhardware_fuzzer/BUILD.gn index 782b4c1b..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxysubscribelocalhardware_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxysubscribelocalhardware_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkProxySubscribeLocalHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkproxysubscribelocalhardware" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkproxysubscribelocalhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkproxysubscribelocalhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkProxySubscribeLocalHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkProxySubscribeLocalHardwareFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxyunsubscribelocalhardware_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxyunsubscribelocalhardware_fuzzer/BUILD.gn index dbf0384e..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxyunsubscribelocalhardware_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxyunsubscribelocalhardware_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkProxyUnsubscribeLocalHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkproxyunsubscribelocalhardware" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sinkproxyunsubscribelocalhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkproxyunsubscribelocalhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - ] - - deps = - [ "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkProxyUnsubscribeLocalHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkProxyUnsubscribeLocalHardwareFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerconfigdistributedhardware_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerconfigdistributedhardware_fuzzer/BUILD.gn index 03d0254e..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerconfigdistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerconfigdistributedhardware_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceHandlerConfigDistributedHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sourcehandlerconfigdistributedhardware" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sourcehandlerconfigdistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourcehandlerconfigdistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceHandlerConfigDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceHandlerConfigDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerfinishstartsa_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerfinishstartsa_fuzzer/BUILD.gn index fa27f6fa..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerfinishstartsa_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerfinishstartsa_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceHandlerFinishStartSAFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sourcehandlerfinishstartsa" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sourcehandlerfinishstartsa_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourcehandlerfinishstartsa_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceHandlerFinishStartSAFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceHandlerFinishStartSAFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerinitsource_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerinitsource_fuzzer/BUILD.gn index 82795f7e..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerinitsource_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerinitsource_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceHandlerInitSourceFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sourcehandlerinitsource" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sourcehandlerinitsource_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourcehandlerinitsource_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceHandlerInitSourceFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceHandlerInitSourceFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerregisterdistributedhardware_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerregisterdistributedhardware_fuzzer/BUILD.gn index 216dff18..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerregisterdistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerregisterdistributedhardware_fuzzer/BUILD.gn @@ -1,63 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceHandlerRegisterDistributedHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sourcehandlerregisterdistributedhardware" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sourcehandlerregisterdistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourcehandlerregisterdistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - "${innerkits_path}/native_cpp/test/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceHandlerRegisterDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceHandlerRegisterDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerunregisterdistributedhardware_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerunregisterdistributedhardware_fuzzer/BUILD.gn index 1d3a28ca..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerunregisterdistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourcehandlerunregisterdistributedhardware_fuzzer/BUILD.gn @@ -1,63 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceHandlerUnregisterDistributedHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sourcehandlerunregisterdistributedhardware" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sourcehandlerunregisterdistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourcehandlerunregisterdistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - "${innerkits_path}/native_cpp/test/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceHandlerUnregisterDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceHandlerUnregisterDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceipccallbackonnotifyregresult_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceipccallbackonnotifyregresult_fuzzer/BUILD.gn index 83b2a8b8..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceipccallbackonnotifyregresult_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceipccallbackonnotifyregresult_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceIpcCallbackOnNotifyRegResultFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sourceipccallbackonnotifyregresult" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sourceipccallbackonnotifyregresult_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceipccallbackonnotifyregresult_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceIpcCallbackOnNotifyRegResultFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceIpcCallbackOnNotifyRegResultFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceipccallbackonnotifyunregresult_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceipccallbackonnotifyunregresult_fuzzer/BUILD.gn index 0ae1845a..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceipccallbackonnotifyunregresult_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceipccallbackonnotifyunregresult_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceIpcCallbackOnNotifyUnregResultFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sourceipccallbackonnotifyunregresult" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sourceipccallbackonnotifyunregresult_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceipccallbackonnotifyunregresult_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceIpcCallbackOnNotifyUnregResultFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceIpcCallbackOnNotifyUnregResultFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceonloadsystemabilityfail_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceonloadsystemabilityfail_fuzzer/BUILD.gn index 78432e57..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceonloadsystemabilityfail_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceonloadsystemabilityfail_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceOnLoadSystemAbilityFailFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sourceonloadsystemabilityfail" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sourceonloadsystemabilityfail_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceonloadsystemabilityfail_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceOnLoadSystemAbilityFailFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceOnLoadSystemAbilityFailFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceonloadsystemabilitysuccess_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceonloadsystemabilitysuccess_fuzzer/BUILD.gn index 690c83b6..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceonloadsystemabilitysuccess_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceonloadsystemabilitysuccess_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceOnLoadSystemAbilitySuccessFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sourceonloadsystemabilitysuccess" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sourceonloadsystemabilitysuccess_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceonloadsystemabilitysuccess_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceOnLoadSystemAbilitySuccessFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceOnLoadSystemAbilitySuccessFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyconfigdistributedhardware_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyconfigdistributedhardware_fuzzer/BUILD.gn index 899798da..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyconfigdistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyconfigdistributedhardware_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceProxyConfigDistributedHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sourceproxyconfigdistributedhardware" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sourceproxyconfigdistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceproxyconfigdistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceProxyConfigDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceProxyConfigDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxydaudionotify_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxydaudionotify_fuzzer/BUILD.gn index 37ecb991..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxydaudionotify_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxydaudionotify_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceProxyDAudioNotifyFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sourceproxydaudionotify" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sourceproxydaudionotify_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceproxydaudionotify_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceProxyDAudioNotifyFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceProxyDAudioNotifyFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyinitsource_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyinitsource_fuzzer/BUILD.gn index 563b3697..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyinitsource_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyinitsource_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceProxyInitSourceFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sourceproxyinitsource" - fuzz_config_file = - "${innerkits_path}/native_cpp/test/fuzztest/sourceproxyinitsource_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceproxyinitsource_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceProxyInitSourceFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceProxyInitSourceFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyregisterdistributedhardware_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyregisterdistributedhardware_fuzzer/BUILD.gn index ca01fa1b..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyregisterdistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyregisterdistributedhardware_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceProxyRegisterDistributedHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sourceproxyregisterdistributedhardware" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sourceproxyregisterdistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceproxyregisterdistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceProxyRegisterDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceProxyRegisterDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyunregisterdistributedhardware_fuzzer/BUILD.gn b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyunregisterdistributedhardware_fuzzer/BUILD.gn index 075f9300..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyunregisterdistributedhardware_fuzzer/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyunregisterdistributedhardware_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceProxyUnregisterDistributedHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sourceproxyunregisterdistributedhardware" - fuzz_config_file = "${innerkits_path}/native_cpp/test/fuzztest/sourceproxyunregisterdistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceproxyunregisterdistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceProxyUnregisterDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceProxyUnregisterDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/interfaces/inner_kits/native_cpp/test/unittest/BUILD.gn b/interfaces/inner_kits/native_cpp/test/unittest/BUILD.gn index c028a65b..e69de29b 100644 --- a/interfaces/inner_kits/native_cpp/test/unittest/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/unittest/BUILD.gn @@ -1,32 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../../../distributedaudio.gni") - -group("unittest") { - testonly = true - deps = [ - "${common_path}/test/unittest:daudio_utils_test", - "${distributedaudio_path}/audiohandler/test/unittest:audio_handler_test", - "${interfaces_path}/inner_kits/native_cpp/test/unittest/audiosinktest:audio_sink_test", - "${interfaces_path}/inner_kits/native_cpp/test/unittest/audiosourcetest:audio_source_test", - "${services_path}/audioclient/test/unittest:daudio_client_test", - "${services_path}/audiocontrol/test/unittest:daudio_control_test", - "${services_path}/audiohdiproxy/test/unittest:daudio_hdi_proxy_test", - "${services_path}/audiomanager/test/unittest:daudio_manager_test", - "${services_path}/audioprocessor/test/unittest:daudio_processor_test", - "${services_path}/audiotransport/test/unittest:daudio_transport_test", - ] -} diff --git a/interfaces/inner_kits/native_cpp/test/unittest/audiosinktest/BUILD.gn b/interfaces/inner_kits/native_cpp/test/unittest/audiosinktest/BUILD.gn index ecbd5500..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/unittest/audiosinktest/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/unittest/audiosinktest/BUILD.gn @@ -1,56 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/interfaces/audio_sink_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "./include", - "${common_path}/include", - "${interfaces_path}/inner_kits/native_cpp/audio_sink/include", - "${services_path}/common/utils/include", - ] -} - -## UnitTest AudioSinkTest -ohos_unittest("AudioSinkTest") { - module_out_path = module_out_path - - sources = [ - "${interfaces_path}/inner_kits/native_cpp/test/unittest/audiosinktest/src/daudio_sink_handler_test.cpp", - "${interfaces_path}/inner_kits/native_cpp/test/unittest/audiosinktest/src/daudio_sink_proxy_test.cpp", - ] - - configs = [ ":module_private_config" ] - - deps = [ "${distributedaudio_path}/interfaces/inner_kits/native_cpp/audio_sink:distributed_audio_sink_sdk" ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "googletest:gmock", - "hilog:libhilog", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -group("audio_sink_test") { - testonly = true - deps = [ ":AudioSinkTest" ] -} diff --git a/interfaces/inner_kits/native_cpp/test/unittest/audiosourcetest/BUILD.gn b/interfaces/inner_kits/native_cpp/test/unittest/audiosourcetest/BUILD.gn index c9eae86f..e69de29b 100755 --- a/interfaces/inner_kits/native_cpp/test/unittest/audiosourcetest/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/test/unittest/audiosourcetest/BUILD.gn @@ -1,59 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/interfaces/audio_source_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "./include", - "${common_path}/include", - "${interfaces_path}/inner_kits/native_cpp/audio_source/include", - "${interfaces_path}/inner_kits/native_cpp/test/unittest/audiosourcetest/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioparam", - "${services_path}/common/utils/include", - ] -} - -## UnitTest AudioSourceTest -ohos_unittest("AudioSourceTest") { - module_out_path = module_out_path - - sources = [ - "${interfaces_path}/inner_kits/native_cpp/test/unittest/audiosourcetest/src/daudio_ipc_callback_test.cpp", - "${interfaces_path}/inner_kits/native_cpp/test/unittest/audiosourcetest/src/daudio_source_handler_test.cpp", - "${interfaces_path}/inner_kits/native_cpp/test/unittest/audiosourcetest/src/daudio_source_proxy_test.cpp", - ] - - configs = [ ":module_private_config" ] - - deps = [ "${interfaces_path}/inner_kits/native_cpp/audio_source:distributed_audio_source_sdk" ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "googletest:gmock", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -group("audio_source_test") { - testonly = true - deps = [ ":AudioSourceTest" ] -} diff --git a/sa_profile/BUILD.gn b/sa_profile/BUILD.gn index ef9cf270..e69de29b 100644 --- a/sa_profile/BUILD.gn +++ b/sa_profile/BUILD.gn @@ -1,30 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") - -ohos_sa_profile("daudio_sa_profile") { - sources = [ - "4805.json", - "4806.json", - ] - - part_name = "distributed_audio" -} - -ohos_prebuilt_etc("daudio.cfg") { - relative_install_dir = "init" - source = "daudio.cfg" - part_name = "distributed_audio" - subsystem_name = "distributedhardware" -} diff --git a/services/audioclient/test/unittest/BUILD.gn b/services/audioclient/test/unittest/BUILD.gn index 9f6d80d5..e69de29b 100644 --- a/services/audioclient/test/unittest/BUILD.gn +++ b/services/audioclient/test/unittest/BUILD.gn @@ -1,24 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../../distributedaudio.gni") - -group("daudio_client_test") { - testonly = true - deps = [ - "${audio_client_path}/test/unittest/micclient:mic_client_test", - "${audio_client_path}/test/unittest/spkclient:spk_client_test", - ] -} diff --git a/services/audioclient/test/unittest/micclient/BUILD.gn b/services/audioclient/test/unittest/micclient/BUILD.gn index eee18158..e69de29b 100644 --- a/services/audioclient/test/unittest/micclient/BUILD.gn +++ b/services/audioclient/test/unittest/micclient/BUILD.gn @@ -1,70 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/services/audioclient/mic_client_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "${audio_client_path}/interface", - "${audio_client_path}/micclient/include", - "${audio_client_path}/test/unittest/micclient/include", - "${audio_client_path}/test/unittest/audioclienttestutils/include", - "${audio_processor_path}/interface", - "${audio_transport_path}/interface", - "${audio_transport_path}/audioctrltransport/include", - "${audio_transport_path}/receiverengine/include", - "${audio_transport_path}/senderengine/include", - "${common_path}/include", - "${services_path}/common/audioeventcallback", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioparam", - ] -} - -## UnitTest dmic_client_test -ohos_unittest("MicClientTest") { - module_out_path = module_out_path - - sources = [ - "${audio_client_path}/test/unittest/micclient/src/dmic_client_test.cpp", - ] - - configs = [ ":module_private_config" ] - - deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "distributed_hardware_fwk:distributed_av_receiver", - "distributed_hardware_fwk:distributed_av_sender", - "distributed_hardware_fwk:distributedhardwareutils", - "dsoftbus:softbus_client", - "googletest:gmock", - "hilog:libhilog", - ] -} - -group("mic_client_test") { - testonly = true - deps = [ ":MicClientTest" ] -} diff --git a/services/audioclient/test/unittest/spkclient/BUILD.gn b/services/audioclient/test/unittest/spkclient/BUILD.gn index b9a17ba8..e69de29b 100644 --- a/services/audioclient/test/unittest/spkclient/BUILD.gn +++ b/services/audioclient/test/unittest/spkclient/BUILD.gn @@ -1,73 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/services/audioclient/spk_client_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "${audio_client_path}/interface", - "${audio_client_path}/spkclient/include", - "${audio_client_path}/test/unittest/spkclient/include", - "${audio_client_path}/test/unittest/audioclienttestutils/include", - "${audio_processor_path}/interface", - "${audio_transport_path}/interface", - "${audio_transport_path}/audioctrltransport/include", - "${audio_transport_path}/receiverengine/include", - "${audio_transport_path}/senderengine/include", - "${common_path}/include", - "${services_path}/common/audioeventcallback", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioparam", - ] -} - -## UnitTest dspeaker_client_test -ohos_unittest("SpeakerClientTest") { - module_out_path = module_out_path - - sources = [ - "${audio_client_path}/test/unittest/spkclient/src/dspeaker_client_test.cpp", - ] - - configs = [ ":module_private_config" ] - - deps = [ - "${services_path}/audiomanager/servicesink:distributed_audio_sink", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "distributed_hardware_fwk:distributed_av_receiver", - "distributed_hardware_fwk:distributed_av_sender", - "distributed_hardware_fwk:distributedhardwareutils", - "dsoftbus:softbus_client", - "googletest:gmock", - "hilog:libhilog", - ] -} - -group("spk_client_test") { - testonly = true - deps = [ ":SpeakerClientTest" ] -} diff --git a/services/audiocontrol/test/unittest/BUILD.gn b/services/audiocontrol/test/unittest/BUILD.gn index b71dc287..e69de29b 100644 --- a/services/audiocontrol/test/unittest/BUILD.gn +++ b/services/audiocontrol/test/unittest/BUILD.gn @@ -1,24 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../../distributedaudio.gni") - -group("daudio_control_test") { - testonly = true - deps = [ - "${audio_control_path}/test/unittest/controlsink:control_sink_test", - "${audio_control_path}/test/unittest/controlsource:control_source_test", - ] -} diff --git a/services/audiocontrol/test/unittest/controlsink/BUILD.gn b/services/audiocontrol/test/unittest/controlsink/BUILD.gn index 76fba4a4..e69de29b 100644 --- a/services/audiocontrol/test/unittest/controlsink/BUILD.gn +++ b/services/audiocontrol/test/unittest/controlsink/BUILD.gn @@ -1,56 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/services/audiocontrol/control_sink_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioeventcallback", - "${services_path}/common/audioparam", - "${audio_transport_path}/interface", - "${audio_transport_path}/audiochannel/interface", - "${audio_transport_path}/audioctrltransport/include", - "${audio_transport_path}/audioctrltransport/interface", - "${audio_control_path}/controlsink/include", - ] -} - -## UnitTest ControlSinkTest -ohos_unittest("ControlSinkTest") { - module_out_path = module_out_path - - sources = [ "src/daudio_sink_dev_ctrl_manager_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "googletest:gmock", - ] -} - -group("control_sink_test") { - testonly = true - deps = [ ":ControlSinkTest" ] -} diff --git a/services/audiocontrol/test/unittest/controlsource/BUILD.gn b/services/audiocontrol/test/unittest/controlsource/BUILD.gn index ad6bb964..e69de29b 100644 --- a/services/audiocontrol/test/unittest/controlsource/BUILD.gn +++ b/services/audiocontrol/test/unittest/controlsource/BUILD.gn @@ -1,58 +0,0 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/services/audiocontrol/control_source_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${services_path}/common/audioparam", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioeventcallback", - "${audio_transport_path}/interface", - "${audio_transport_path}/audiochannel/interface", - "${audio_control_path}/controlsource/include", - ] -} - -## UnitTest ControlSourceTest -ohos_unittest("ControlSourceTest") { - module_out_path = module_out_path - - sources = [ "src/daudio_source_dev_ctrl_manager_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = - [ "${services_path}/audiomanager/servicesource:distributed_audio_source" ] - - external_deps = [ - "access_token:libaccesstoken_sdk", - "access_token:libnativetoken_shared", - "access_token:libtokensetproc_shared", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "googletest:gmock", - ] -} - -group("control_source_test") { - testonly = true - deps = [ ":ControlSourceTest" ] -} diff --git a/services/audiohdiproxy/test/unittest/BUILD.gn b/services/audiohdiproxy/test/unittest/BUILD.gn index a9ba7026..e69de29b 100644 --- a/services/audiohdiproxy/test/unittest/BUILD.gn +++ b/services/audiohdiproxy/test/unittest/BUILD.gn @@ -1,24 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../../distributedaudio.gni") - -group("daudio_hdi_proxy_test") { - testonly = true - deps = [ - "${audio_hdi_proxy_path}/test/unittest/daudio_hdi_handler:daudio_hdi_handler_test", - "${audio_hdi_proxy_path}/test/unittest/daudio_manager_callback:daudio_manager_callback_test", - ] -} diff --git a/services/audiohdiproxy/test/unittest/daudio_hdi_handler/BUILD.gn b/services/audiohdiproxy/test/unittest/daudio_hdi_handler/BUILD.gn index c04d0cdb..e69de29b 100644 --- a/services/audiohdiproxy/test/unittest/daudio_hdi_handler/BUILD.gn +++ b/services/audiohdiproxy/test/unittest/daudio_hdi_handler/BUILD.gn @@ -1,57 +0,0 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/services/audiohdiproxy/daudio_hdi_handler" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioparam", - "${services_path}/common/audiodata/include", - "${services_path}/audiohdiproxy/include", - ] -} - -## UnitTest audiohdiproxy_test -ohos_unittest("DAudioHdiHandlerTest") { - module_out_path = module_out_path - - sources = [ "src/daudio_hdi_handler_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = - [ "${services_path}/audiomanager/servicesource:distributed_audio_source" ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudioext_proxy_2.0", - "googletest:gmock", - "ipc:ipc_core", - ] -} - -group("daudio_hdi_handler_test") { - testonly = true - deps = [ ":DAudioHdiHandlerTest" ] -} diff --git a/services/audiohdiproxy/test/unittest/daudio_manager_callback/BUILD.gn b/services/audiohdiproxy/test/unittest/daudio_manager_callback/BUILD.gn index c29d047a..e69de29b 100644 --- a/services/audiohdiproxy/test/unittest/daudio_manager_callback/BUILD.gn +++ b/services/audiohdiproxy/test/unittest/daudio_manager_callback/BUILD.gn @@ -1,60 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = - "distributed_audio/services/audiohdiproxy/daudio_manager_callback" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${audio_hdi_proxy_path}/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioparam", - "${services_path}/common/audiodata/include", - ] -} - -## UnitTest audiohdiproxy_test -ohos_unittest("DAudioManagerCallbackTest") { - module_out_path = module_out_path - - sources = [ "src/daudio_manager_callback_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ - "${services_path}/audiomanager/servicesource:distributed_audio_source", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudioext_proxy_2.0", - "googletest:gmock", - "ipc:ipc_core", - ] -} - -group("daudio_manager_callback_test") { - testonly = true - deps = [ ":DAudioManagerCallbackTest" ] -} diff --git a/services/audiomanager/servicesink/BUILD.gn b/services/audiomanager/servicesink/BUILD.gn index cd83fc45..e69de29b 100755 --- a/services/audiomanager/servicesink/BUILD.gn +++ b/services/audiomanager/servicesink/BUILD.gn @@ -1,120 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../distributedaudio.gni") - -ohos_shared_library("distributed_audio_sink") { - branch_protector_ret = "pac_ret" - sanitize = { - boundary_sanitize = true - cfi = true - cfi_cross_dso = true - debug = false - integer_overflow = true - ubsan = true - } - stack_protector_ret = true - - include_dirs = [ - "include", - "${audio_client_path}/interface", - "${audio_client_path}/micclient/include", - "${audio_client_path}/spkclient/include", - "${audio_control_path}/controlsink/include", - "${audio_processor_path}/interface", - "${audio_transport_path}/interface", - "${audio_transport_path}/audioctrltransport/include", - "${audio_transport_path}/receiverengine/include", - "${audio_transport_path}/senderengine/include", - "${common_path}/dfx_utils/include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${innerkits_path}/native_cpp/audio_source/include", - "${services_path}/audiomanager/managersink/include", - "${services_path}/common/audioeventcallback", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioparam", - ] - - sources = [ - "${audio_client_path}/micclient/src/dmic_client.cpp", - "${audio_client_path}/spkclient/src/dspeaker_client.cpp", - "${audio_control_path}/controlsink/src/daudio_sink_dev_ctrl_manager.cpp", - "${audio_transport_path}/audioctrltransport/src/daudio_ctrl_channel_listener.cpp", - "${audio_transport_path}/audioctrltransport/src/daudio_sink_ctrl_trans.cpp", - "${innerkits_path}/native_cpp/audio_sink/src/daudio_sink_handler.cpp", - "${innerkits_path}/native_cpp/audio_sink/src/daudio_sink_load_callback.cpp", - "${innerkits_path}/native_cpp/audio_sink/src/daudio_sink_proxy.cpp", - "${innerkits_path}/native_cpp/audio_source/src/daudio_source_proxy.cpp", - "${services_path}/audiomanager/managersink/src/daudio_sink_dev.cpp", - "${services_path}/audiomanager/managersink/src/daudio_sink_manager.cpp", - "src/daudio_sink_hidumper.cpp", - "src/daudio_sink_ipc_callback_proxy.cpp", - "src/daudio_sink_service.cpp", - "src/daudio_sink_stub.cpp", - ] - - ldflags = [ - "-fpie", - "-Wl,-z,relro", - "-Wl,-z,now", - ] - - deps = [ - "${audio_transport_path}/receiverengine:distributed_audio_decode_transport", - "${audio_transport_path}/senderengine:distributed_audio_encode_transport", - "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "access_token:libaccesstoken_sdk", - "access_token:libtokenid_sdk", - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "device_manager:devicemanagersdk", - "distributed_hardware_fwk:distributed_av_receiver", - "distributed_hardware_fwk:distributed_av_sender", - "distributed_hardware_fwk:distributedhardwareutils", - "distributed_hardware_fwk:libdhfwk_sdk", - "dsoftbus:softbus_client", - "eventhandler:libeventhandler", - "hdf_core:libhdf_ipc_adapter", - "hdf_core:libhdi", - "hilog:libhilog", - "hisysevent:libhisysevent", - "hitrace:hitrace_meter", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] - - defines = [ - "HI_LOG_ENABLE", - "LOG_DOMAIN=0xD004130", - ] - - if (device_security_level_control) { - external_deps += [ "device_security_level:dslm_sdk" ] - defines += [ "DEVICE_SECURITY_LEVEL_ENABLE" ] - } - - subsystem_name = "distributedhardware" - - part_name = "distributed_audio" -} diff --git a/services/audiomanager/servicesource/BUILD.gn b/services/audiomanager/servicesource/BUILD.gn index 0c760dee..e69de29b 100755 --- a/services/audiomanager/servicesource/BUILD.gn +++ b/services/audiomanager/servicesource/BUILD.gn @@ -1,154 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../distributedaudio.gni") - -ohos_shared_library("distributed_audio_source") { - branch_protector_ret = "pac_ret" - sanitize = { - boundary_sanitize = true - cfi = true - cfi_cross_dso = true - debug = false - integer_overflow = true - ubsan = true - } - stack_protector_ret = true - - include_dirs = [ - "include", - "${audio_client_path}/micclient/include", - "${audio_client_path}/spkclient/include", - "${audio_control_path}/controlsource/include", - "${audio_hdi_proxy_path}/include", - "${audio_processor_path}/interface", - "${audio_transport_path}/audioctrltransport/include", - "${audio_transport_path}/interface", - "${audio_transport_path}/receiverengine/include", - "${audio_transport_path}/senderengine/include", - "${common_path}/dfx_utils/include", - "${common_path}/include", - "${distributedaudio_path}/audiohandler/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${innerkits_path}/native_cpp/audio_source/include", - "${interfaces_path}/inner_kits/native_cpp/audio_sink/include", - "${interfaces_path}/inner_kits/native_cpp/audio_source/include", - "${services_path}/audiomanager/managersource/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioeventcallback", - "${services_path}/common/audioparam", - "${services_path}/audiomanager/common/include", - ] - - if (distributed_audio_extension_sa) { - include_dirs += [ - "${distributedaudio_ext_path}/services/audioprocessor/aeceffectprocessor/include", - "${distributedaudio_ext_path}/services/audioprocessor/effectcomponent/audiopipeline/include", - "${distributedaudio_ext_path}/services/audioprocessor/effectcomponent/elementfactory/include", - "${distributedaudio_ext_path}/services/audioprocessor/effectcomponent/elements/include", - "${distributedaudio_ext_path}/services/audioprocessor/effectcomponent/pipelinemanager/include", - ] - } - - sources = [ - "${audio_control_path}/controlsource/src/daudio_source_dev_ctrl_manager.cpp", - "${audio_hdi_proxy_path}/src/daudio_hdf_operate.cpp", - "${audio_hdi_proxy_path}/src/daudio_hdi_handler.cpp", - "${audio_hdi_proxy_path}/src/daudio_manager_callback.cpp", - "${audio_transport_path}/audioctrltransport/src/daudio_source_ctrl_trans.cpp", - "${common_path}/dfx_utils/src/daudio_hidumper.cpp", - "${interfaces_path}/inner_kits/native_cpp/audio_sink/src/daudio_sink_proxy.cpp", - "${interfaces_path}/inner_kits/native_cpp/audio_source/src/daudio_source_proxy.cpp", - "${services_path}/audiomanager/managersource/src/daudio_source_dev.cpp", - "${services_path}/audiomanager/managersource/src/daudio_source_manager.cpp", - "${services_path}/audiomanager/managersource/src/daudio_source_mgr_callback.cpp", - "${services_path}/audiomanager/managersource/src/dmic_dev.cpp", - "${services_path}/audiomanager/managersource/src/dspeaker_dev.cpp", - "src/daudio_ipc_callback_proxy.cpp", - "src/daudio_source_service.cpp", - "src/daudio_source_stub.cpp", - ] - - if (distributed_audio_extension_sa) { - sources += [ "${services_path}/audiomanager/managersource/src/daudio_echo_cannel_manager.cpp" ] - } - - deps = [ - "${audio_transport_path}/receiverengine:distributed_audio_decode_transport", - "${audio_transport_path}/senderengine:distributed_audio_encode_transport", - "${distributedaudio_path}/audiohandler:distributed_audio_handler", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "access_token:libaccesstoken_sdk", - "access_token:libtokenid_sdk", - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributed_av_receiver", - "distributed_hardware_fwk:distributed_av_sender", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudio_proxy_1.0", - "drivers_interface_distributed_audio:libdaudioext_proxy_2.0", - "dsoftbus:softbus_client", - "eventhandler:libeventhandler", - "hdf_core:libhdf_utils", - "hdf_core:libhdi", - "hicollie:libhicollie", - "hilog:libhilog", - "hisysevent:libhisysevent", - "hitrace:hitrace_meter", - "ipc:ipc_core", - "ipc:ipc_single", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] - - cflags = [] - - if (distributed_audio_extension_sa) { - cflags += [ "-DECHO_CANNEL_ENABLE" ] - } - if (distributed_audio_shared_buffer) { - cflags += [ "-DAUDIO_SUPPORT_SHARED_BUFFER" ] - } - - cflags_cc = cflags - - ldflags = [ - "-fpie", - "-Wl,-z,relro", - "-Wl,-z,now", - ] - - defines = [ - "HI_LOG_ENABLE", - "LOG_DOMAIN=0xD004130", - ] - - if (build_variant == "root") { - defines += [ - "DUMP_DSPEAKERDEV_FILE", - "DUMP_DMICDEV_FILE", - ] - } - - subsystem_name = "distributedhardware" - - part_name = "distributed_audio" -} diff --git a/services/audiomanager/test/fuzztest/sinkservicedaudionotify_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sinkservicedaudionotify_fuzzer/BUILD.gn index d28bad92..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sinkservicedaudionotify_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sinkservicedaudionotify_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkServiceDAudioNotifyFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkservicedaudionotify_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sinkservicedaudionotify_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkservicedaudionotify_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${services_path}/audiomanager/servicesink/include", - ] - - deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkServiceDAudioNotifyFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkServiceDAudioNotifyFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sinkserviceinitsink_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sinkserviceinitsink_fuzzer/BUILD.gn index 3e39547c..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sinkserviceinitsink_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sinkserviceinitsink_fuzzer/BUILD.gn @@ -1,65 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkServiceInitSinkFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sinkserviceinitsink_fuzzer" - fuzz_config_file = - "${services_path}/audiomanager/test/fuzztest/sinkserviceinitsink_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkserviceinitsink_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${services_path}/audiomanager/servicesink/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk", - "${services_path}/audiomanager/servicesink:distributed_audio_sink", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkServiceInitSinkFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkServiceInitSinkFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sinkservicepausedistributedhardware_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sinkservicepausedistributedhardware_fuzzer/BUILD.gn index 0a190894..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sinkservicepausedistributedhardware_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sinkservicepausedistributedhardware_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkServicePauseDistributedHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkservicepausedistributedhardware_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sinkservicepausedistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkservicepausedistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${services_path}/audiomanager/servicesink/include", - ] - - deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkServicePauseDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkServicePauseDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sinkservicereleasesink_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sinkservicereleasesink_fuzzer/BUILD.gn index c7877edc..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sinkservicereleasesink_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sinkservicereleasesink_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkServiceReleaseSinkFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkservicereleasesink_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sinkservicereleasesink_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkservicereleasesink_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${services_path}/audiomanager/servicesink/include", - ] - - deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkServiceReleaseSinkFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkServiceReleaseSinkFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sinkserviceresumedistributedhardware_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sinkserviceresumedistributedhardware_fuzzer/BUILD.gn index 7785af6a..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sinkserviceresumedistributedhardware_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sinkserviceresumedistributedhardware_fuzzer/BUILD.gn @@ -1,61 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkServiceResumeDistributedHardwareFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sinkserviceresumedistributedhardware_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sinkserviceresumedistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkserviceresumedistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${services_path}/audiomanager/servicesink/include", - ] - - deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkServiceResumeDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkServiceResumeDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sinkservicestopdistributedhardware_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sinkservicestopdistributedhardware_fuzzer/BUILD.gn index 6ebff386..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sinkservicestopdistributedhardware_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sinkservicestopdistributedhardware_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkServiceStopDistributedHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkservicestopdistributedhardware_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sinkservicestopdistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkservicestopdistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${services_path}/audiomanager/servicesink/include", - ] - - deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkServiceStopDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkServiceStopDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sinkservicesubscribelocalhardware_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sinkservicesubscribelocalhardware_fuzzer/BUILD.gn index f993c57f..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sinkservicesubscribelocalhardware_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sinkservicesubscribelocalhardware_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkServiceSubscribeLocalHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkservicesubscribelocalhardware_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sinkservicesubscribelocalhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkservicesubscribelocalhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${services_path}/audiomanager/servicesink/include", - ] - - deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkServiceSubscribeLocalHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkServiceSubscribeLocalHardwareFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sinkserviceunsubscribelocalhardware_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sinkserviceunsubscribelocalhardware_fuzzer/BUILD.gn index 25583964..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sinkserviceunsubscribelocalhardware_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sinkserviceunsubscribelocalhardware_fuzzer/BUILD.gn @@ -1,62 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkServiceUnSubscribeLocalHardwareFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkserviceunsubscribelocalhardware_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sinkserviceunsubscribelocalhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sinkserviceunsubscribelocalhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${services_path}/audiomanager/servicesink/include", - ] - - deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkServiceUnSubscribeLocalHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkServiceUnSubscribeLocalHardwareFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sinkstubdaudiosinkstub_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sinkstubdaudiosinkstub_fuzzer/BUILD.gn index 0960b5d8..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sinkstubdaudiosinkstub_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sinkstubdaudiosinkstub_fuzzer/BUILD.gn @@ -1,64 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkStubDaudioSinkStubFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkstubdaudiosinkstub_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sinkstubdaudiosinkstub_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - "-Dprivate=public", - "-Dprotected=public", - ] - sources = [ "sinkstubdaudiosinkstub_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${services_path}/audiomanager/servicesink/include", - ] - - deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkStubDaudioSinkStubFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkStubDaudioSinkStubFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sinkstubonremoterequest_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sinkstubonremoterequest_fuzzer/BUILD.gn index a02cfcbc..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sinkstubonremoterequest_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sinkstubonremoterequest_fuzzer/BUILD.gn @@ -1,64 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SinkStubOnRemoteRequestFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sinkstubonremoterequest_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sinkstubonremoterequest_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - "-Dprivate=public", - "-Dprotected=public", - ] - sources = [ "sinkstubonremoterequest_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${services_path}/audiomanager/servicesink/include", - ] - - deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SinkStubOnRemoteRequestFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SinkStubOnRemoteRequestFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sourceserviceconfigdistributedhardware_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sourceserviceconfigdistributedhardware_fuzzer/BUILD.gn index 99fd8554..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sourceserviceconfigdistributedhardware_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sourceserviceconfigdistributedhardware_fuzzer/BUILD.gn @@ -1,70 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceServiceConfigDistributedHardwareFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sourceserviceconfigdistributedhardware_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sourceserviceconfigdistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceserviceconfigdistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${services_path}/common/audioparam", - "${innerkits_path}/native_cpp/audio_source/include", - "${distributedaudio_path}/audiohandler/include", - "${services_path}/audiomanager/servicesource/include", - ] - - deps = - [ "${services_path}/audiomanager/servicesource:distributed_audio_source" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceServiceConfigDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudio_proxy_1.0", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceServiceConfigDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sourceservicedaudionotify_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sourceservicedaudionotify_fuzzer/BUILD.gn index b9723e07..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sourceservicedaudionotify_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sourceservicedaudionotify_fuzzer/BUILD.gn @@ -1,71 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceServiceDAudioNotifyFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sourceservicedaudionotify_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sourceservicedaudionotify_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceservicedaudionotify_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${services_path}/common/audioparam", - "${innerkits_path}/native_cpp/audio_source/include", - "${distributedaudio_path}/audiohandler/include", - "${services_path}/audiomanager/servicesource/include", - ] - - deps = - [ "${services_path}/audiomanager/servicesource:distributed_audio_source" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceServiceDAudioNotifyFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudio_proxy_1.0", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceServiceDAudioNotifyFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sourceserviceinitsource_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sourceserviceinitsource_fuzzer/BUILD.gn index 3159bb8d..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sourceserviceinitsource_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sourceserviceinitsource_fuzzer/BUILD.gn @@ -1,73 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceServiceInitSourceFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sourceserviceinitsource_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sourceserviceinitsource_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceserviceinitsource_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${services_path}/common/audioparam", - "${innerkits_path}/native_cpp/audio_source/include", - "${distributedaudio_path}/audiohandler/include", - "${services_path}/audiomanager/servicesource/include", - ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - "${services_path}/audiomanager/servicesource:distributed_audio_source", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceServiceInitSourceFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudio_proxy_1.0", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceServiceInitSourceFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sourceserviceregisterdistributedhardware_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sourceserviceregisterdistributedhardware_fuzzer/BUILD.gn index 334c1a7d..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sourceserviceregisterdistributedhardware_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sourceserviceregisterdistributedhardware_fuzzer/BUILD.gn @@ -1,70 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceServiceRegisterDistributedHardwareFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sourceserviceregisterdistributedhardware_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sourceserviceregisterdistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceserviceregisterdistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${services_path}/common/audioparam", - "${innerkits_path}/native_cpp/audio_source/include", - "${distributedaudio_path}/audiohandler/include", - "${services_path}/audiomanager/servicesource/include", - ] - - deps = - [ "${services_path}/audiomanager/servicesource:distributed_audio_source" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceServiceRegisterDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudio_proxy_1.0", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceServiceRegisterDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sourceservicereleasesource_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sourceservicereleasesource_fuzzer/BUILD.gn index 12a50c75..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sourceservicereleasesource_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sourceservicereleasesource_fuzzer/BUILD.gn @@ -1,71 +0,0 @@ -# Copyright (c) 2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceServiceReleaseSourceFuzzTest") { - module_out_path = - "${distributedaudio_fuzz_path}/sourceservicereleasesource_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sourceservicereleasesource_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceservicereleasesource_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${services_path}/common/audioparam", - "${innerkits_path}/native_cpp/audio_source/include", - "${distributedaudio_path}/audiohandler/include", - "${services_path}/audiomanager/servicesource/include", - ] - - deps = - [ "${services_path}/audiomanager/servicesource:distributed_audio_source" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceServiceReleaseSourceFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudio_proxy_1.0", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceServiceReleaseSourceFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/fuzztest/sourceserviceunregisterdistributedhardware_fuzzer/BUILD.gn b/services/audiomanager/test/fuzztest/sourceserviceunregisterdistributedhardware_fuzzer/BUILD.gn index fa3b4f86..e69de29b 100644 --- a/services/audiomanager/test/fuzztest/sourceserviceunregisterdistributedhardware_fuzzer/BUILD.gn +++ b/services/audiomanager/test/fuzztest/sourceserviceunregisterdistributedhardware_fuzzer/BUILD.gn @@ -1,70 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("SourceServiceUnregisterDistributedHardwareFuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/sourceserviceunregisterdistributedhardware_fuzzer" - fuzz_config_file = "${services_path}/audiomanager/test/fuzztest/sourceserviceunregisterdistributedhardware_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "sourceserviceunregisterdistributedhardware_fuzzer.cpp" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${services_path}/common/audioparam", - "${innerkits_path}/native_cpp/audio_source/include", - "${distributedaudio_path}/audiohandler/include", - "${services_path}/audiomanager/servicesource/include", - ] - - deps = - [ "${services_path}/audiomanager/servicesource:distributed_audio_source" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"SourceServiceUnregisterDistributedHardwareFuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudio_proxy_1.0", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":SourceServiceUnregisterDistributedHardwareFuzzTest" ] -} -############################################################################### diff --git a/services/audiomanager/test/unittest/BUILD.gn b/services/audiomanager/test/unittest/BUILD.gn index 3c309f88..e69de29b 100644 --- a/services/audiomanager/test/unittest/BUILD.gn +++ b/services/audiomanager/test/unittest/BUILD.gn @@ -1,31 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../../distributedaudio.gni") - -group("daudio_manager_test") { - testonly = true - deps = [ - "${common_path}/dfx_utils/test/unittest:DAudioDfxTest", - "${services_path}/audiomanager/test/unittest/managersink:manager_sink_test", - "${services_path}/audiomanager/test/unittest/servicesink:DaudioSinkServiceTest", - "${services_path}/audiomanager/test/unittest/servicesink:DaudioSinkStubTest", - "${services_path}/audiomanager/test/unittest/servicesource:DaudioSourceServiceTest", - "${services_path}/audiomanager/test/unittest/servicesource:DaudioSourceStubTest", - "${services_path}/audiomanager/test/unittest/sourcedevice:daudio_source_dev_test", - "${services_path}/audiomanager/test/unittest/sourcemanager:daudio_source_mgr_test", - "${services_path}/common/test/unittest/audiodata:audio_data_test", - ] -} diff --git a/services/audiomanager/test/unittest/managersink/BUILD.gn b/services/audiomanager/test/unittest/managersink/BUILD.gn index 5970d1d7..e69de29b 100644 --- a/services/audiomanager/test/unittest/managersink/BUILD.gn +++ b/services/audiomanager/test/unittest/managersink/BUILD.gn @@ -1,138 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/services/audiomanager/manager_sink_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "${audio_client_path}/micclient/include", - "${audio_client_path}/spkclient/include", - "${audio_client_path}/interface", - "${audio_control_path}/controlsink/include", - "${audio_processor_path}/interface", - "${audio_transport_path}/audioctrltransport/include", - "${audio_transport_path}/interface", - "${audio_transport_path}/receiverengine/include", - "${audio_transport_path}/senderengine/include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_source/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${services_path}/audiomanager/managersink/include", - "${services_path}/audiomanager/test/unittest/managersink/include", - "${services_path}/audiomanager/test/unittest/audiomanagertestutils/include", - "${services_path}/audiomanager/servicesink/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioeventcallback", - "${services_path}/common/audioparam", - ] -} - -## UnitTest daudio_sink_dev_test -ohos_unittest("DaudioSinkDevTest") { - module_out_path = module_out_path - - sources = [ "${services_path}/audiomanager/test/unittest/managersink/src/daudio_sink_dev_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ - "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk", - "${services_path}/audiomanager/servicesink:distributed_audio_sink", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "device_manager:devicemanagersdk", - "distributed_hardware_fwk:distributed_av_receiver", - "distributed_hardware_fwk:distributed_av_sender", - "distributed_hardware_fwk:distributedhardwareutils", - "dsoftbus:softbus_client", - "eventhandler:libeventhandler", - "googletest:gmock", - "hdf_core:libhdf_ipc_adapter", - "hdf_core:libhdf_utils", - "hdf_core:libhdi", - "hilog:libhilog", - "hitrace:hitrace_meter", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] - - if (device_security_level_control) { - external_deps += [ "device_security_level:dslm_sdk" ] - defines = [ "DEVICE_SECURITY_LEVEL_ENABLE" ] - } -} - -## UnitTest daudio_sink_manager_test -ohos_unittest("DAudioSinkManagerTest") { - module_out_path = module_out_path - - sources = [ "${services_path}/audiomanager/test/unittest/managersink/src/daudio_sink_manager_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ - "${innerkits_path}/native_cpp/audio_sink:distributed_audio_sink_sdk", - "${services_path}/audiomanager/servicesink:distributed_audio_sink", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "device_manager:devicemanagersdk", - "distributed_hardware_fwk:distributed_av_receiver", - "distributed_hardware_fwk:distributed_av_sender", - "distributed_hardware_fwk:distributedhardwareutils", - "dsoftbus:softbus_client", - "eventhandler:libeventhandler", - "googletest:gmock", - "hdf_core:libhdf_ipc_adapter", - "hdf_core:libhdf_utils", - "hdf_core:libhdi", - "hilog:libhilog", - "hitrace:hitrace_meter", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] - - if (device_security_level_control) { - external_deps += [ "device_security_level:dslm_sdk" ] - defines = [ "DEVICE_SECURITY_LEVEL_ENABLE" ] - } -} - -group("manager_sink_test") { - testonly = true - deps = [ - ":DAudioSinkManagerTest", - ":DaudioSinkDevTest", - ] -} diff --git a/services/audiomanager/test/unittest/servicesink/BUILD.gn b/services/audiomanager/test/unittest/servicesink/BUILD.gn index 7396b13d..e69de29b 100644 --- a/services/audiomanager/test/unittest/servicesink/BUILD.gn +++ b/services/audiomanager/test/unittest/servicesink/BUILD.gn @@ -1,114 +0,0 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/services/audiomanager/service_sink_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "${audio_client_path}/micclient/include", - "${audio_client_path}/spkclient/include", - "${audio_control_path}/controlsink/include", - "${audio_processor_path}/interface", - "${audio_transport_path}/interface", - "${audio_transport_path}/receiverengine/include", - "${audio_transport_path}/senderengine/include", - "${common_path}/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${innerkits_path}/native_cpp/audio_source/include", - "${services_path}/audiomanager/managersink/include", - "${services_path}/audiomanager/servicesink/include", - "${services_path}/audiomanager/test/unittest/managersink/include", - "${services_path}/audiomanager/test/unittest/servicesink/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioeventcallback", - "${services_path}/common/audioparam", - ] -} - -## UnitTest daudio_sink_dev_test -ohos_unittest("DaudioSinkServiceTest") { - module_out_path = module_out_path - - sources = [ "${services_path}/audiomanager/test/unittest/servicesink/src/daudio_sink_service_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "dsoftbus:softbus_client", - "googletest:gmock", - "hisysevent:libhisysevent", - "hitrace:hitrace_meter", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -## UnitTest daudio_sink_stub_test -ohos_unittest("DaudioSinkStubTest") { - module_out_path = module_out_path - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - "-Dprivate=public", - "-Dprotected=public", - ] - - sources = [ "${services_path}/audiomanager/test/unittest/servicesink/src/daudio_sink_stub_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] - - external_deps = [ - "access_token:libaccesstoken_sdk", - "access_token:libtokenid_sdk", - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "dsoftbus:softbus_client", - "googletest:gmock", - "hisysevent:libhisysevent", - "hitrace:hitrace_meter", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -group("service_sink_test") { - testonly = true - deps = [ - ":DaudioSinkServiceTest", - ":DaudioSinkStubTest", - ] -} diff --git a/services/audiomanager/test/unittest/servicesource/BUILD.gn b/services/audiomanager/test/unittest/servicesource/BUILD.gn index 67db6e11..e69de29b 100644 --- a/services/audiomanager/test/unittest/servicesource/BUILD.gn +++ b/services/audiomanager/test/unittest/servicesource/BUILD.gn @@ -1,127 +0,0 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/services/audiomanager/service_source_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "${audio_control_path}/controlsource/include", - "${audio_hdi_proxy_path}/include", - "${audio_processor_path}/interface", - "${audio_transport_path}/interface", - "${audio_transport_path}/receiverengine/include", - "${audio_transport_path}/senderengine/include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${distributedaudio_path}/audiohandler/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${innerkits_path}/native_cpp/audio_source/include", - "${interfaces_path}/inner_kits/native_cpp/audio_sink/include", - "${interfaces_path}/inner_kits/native_cpp/audio_source/include", - "${services_path}/audiomanager/managersink/include", - "${services_path}/audiomanager/managersource/include", - "${services_path}/audiomanager/servicesink/include", - "${services_path}/audiomanager/servicesource/include", - "${services_path}/audiomanager/test/unittest/managersink/include", - "${services_path}/audiomanager/test/unittest/servicesink/include", - "${services_path}/audiomanager/test/unittest/servicesource/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioeventcallback", - "${services_path}/common/audioparam", - ] -} - -## UnitTest daudio_source_service_test -ohos_unittest("DaudioSourceServiceTest") { - module_out_path = module_out_path - - sources = [ "${services_path}/audiomanager/test/unittest/servicesource/src/daudio_source_service_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = - [ "${services_path}/audiomanager/servicesource:distributed_audio_source" ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudio_proxy_1.0", - "dsoftbus:softbus_client", - "googletest:gmock", - "hisysevent:libhisysevent", - "hitrace:hitrace_meter", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -## UnitTest daudio_source_stub_test -ohos_unittest("DaudioSourceStubTest") { - module_out_path = module_out_path - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - "-Dprivate=public", - "-Dprotected=public", - ] - - sources = [ "${services_path}/audiomanager/test/unittest/servicesource/src/daudio_source_stub_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = - [ "${services_path}/audiomanager/servicesource:distributed_audio_source" ] - - external_deps = [ - "access_token:libaccesstoken_sdk", - "access_token:libtokenid_sdk", - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudio_proxy_1.0", - "dsoftbus:softbus_client", - "googletest:gmock", - "hilog:libhilog", - "hisysevent:libhisysevent", - "hitrace:hitrace_meter", - "ipc:ipc_core", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -group("service_source_test") { - testonly = true - deps = [ - ":DaudioSourceServiceTest", - ":DaudioSourceStubTest", - ] -} diff --git a/services/audiomanager/test/unittest/sourcedevice/BUILD.gn b/services/audiomanager/test/unittest/sourcedevice/BUILD.gn index 925565b4..e69de29b 100644 --- a/services/audiomanager/test/unittest/sourcedevice/BUILD.gn +++ b/services/audiomanager/test/unittest/sourcedevice/BUILD.gn @@ -1,225 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/services/audiomanager/source_device_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "include", - "${audio_control_path}/controlsource/include", - "${audio_hdi_proxy_path}/include", - "${audio_processor_path}/interface", - "${audio_transport_path}/audioctrltransport/include", - "${audio_transport_path}/interface", - "${audio_transport_path}/receiverengine/include", - "${audio_transport_path}/senderengine/include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${distributedaudio_path}/audiohandler/include", - "${innerkits_path}/native_cpp/audio_source/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${interfaces_path}/inner_kits/native_cpp/audio_sink/include", - "${interfaces_path}/inner_kits/native_cpp/audio_source/include", - "${services_path}/audiomanager/managersource/include", - "${services_path}/audiomanager/test/unittest/audiomanagertestutils/include", - "${services_path}/common/audioparam", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioeventcallback", - ] - - if (distributed_audio_extension_sa) { - include_dirs += [ - "${distributedaudio_ext_path}/services/audioprocessor/aeceffectprocessor/include", - "${distributedaudio_ext_path}/services/audioprocessor/effectcomponent/audiopipeline/include", - "${distributedaudio_ext_path}/services/audioprocessor/effectcomponent/elementfactory/include", - "${distributedaudio_ext_path}/services/audioprocessor/effectcomponent/elements/include", - "${distributedaudio_ext_path}/services/audioprocessor/effectcomponent/pipelinemanager/include", - ] - } -} - -## UnitTest daudio_source_dev_test -ohos_unittest("DaudioSourceDevTest") { - module_out_path = module_out_path - - sources = [ "src/daudio_source_dev_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ - "${audio_transport_path}/receiverengine:distributed_audio_decode_transport", - "${audio_transport_path}/senderengine:distributed_audio_encode_transport", - "${services_path}/audiomanager/servicesource:distributed_audio_source", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributed_av_receiver", - "distributed_hardware_fwk:distributed_av_sender", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudioext_proxy_2.0", - "dsoftbus:softbus_client", - "eventhandler:libeventhandler", - "googletest:gmock", - "hilog:libhilog", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - cflags = [] - - if (distributed_audio_extension_sa) { - cflags += [ "-DECHO_CANNEL_ENABLE" ] - } - - cflags_cc = cflags -} - -## UnitTest daudio_source_dev_test -ohos_unittest("DMicDevTest") { - module_out_path = module_out_path - - sources = [ "src/dmic_dev_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ - "${audio_transport_path}/receiverengine:distributed_audio_decode_transport", - "${services_path}/audiomanager/servicesource:distributed_audio_source", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "distributed_hardware_fwk:distributed_av_receiver", - "distributed_hardware_fwk:distributed_av_sender", - "drivers_interface_distributed_audio:libdaudioext_proxy_2.0", - "dsoftbus:softbus_client", - "googletest:gmock", - "hilog:libhilog", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - cflags = [] - - if (distributed_audio_extension_sa) { - cflags += [ "-DECHO_CANNEL_ENABLE" ] - } - - cflags_cc = cflags -} - -## UnitTest daudio_source_dev_test -ohos_unittest("DSpeakerDevTest") { - module_out_path = module_out_path - - sources = [ "src/dspeaker_dev_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ - "${audio_transport_path}/senderengine:distributed_audio_encode_transport", - "${services_path}/audiomanager/servicesource:distributed_audio_source", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributed_av_receiver", - "distributed_hardware_fwk:distributed_av_sender", - "drivers_interface_distributed_audio:libdaudioext_proxy_2.0", - "dsoftbus:softbus_client", - "googletest:gmock", - "hilog:libhilog", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -## UnitTest daudio_source_dev_test -ohos_unittest("DAudioEchoCannelManagerTest") { - module_out_path = module_out_path - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - "-Dprivate=public", - "-Dprotected=public", - ] - - if (distributed_audio_extension_sa) { - sources = [ "src/daudio_echo_cannel_manager_test.cpp" ] - } - - configs = [ ":module_private_config" ] - - deps = [ - "${audio_transport_path}/receiverengine:distributed_audio_decode_transport", - "${audio_transport_path}/senderengine:distributed_audio_encode_transport", - "${services_path}/audiomanager/servicesource:distributed_audio_source", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributed_av_receiver", - "distributed_hardware_fwk:distributed_av_sender", - "drivers_interface_distributed_audio:libdaudioext_proxy_2.0", - "dsoftbus:softbus_client", - "eventhandler:libeventhandler", - "googletest:gmock", - "hilog:libhilog", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] - - if (distributed_audio_extension_sa) { - cflags += [ "-DECHO_CANNEL_ENABLE" ] - } - - cflags_cc = cflags -} - -group("daudio_source_dev_test") { - testonly = true - deps = [ - ":DAudioEchoCannelManagerTest", - ":DMicDevTest", - ":DSpeakerDevTest", - ":DaudioSourceDevTest", - ] -} diff --git a/services/audiomanager/test/unittest/sourcemanager/BUILD.gn b/services/audiomanager/test/unittest/sourcemanager/BUILD.gn index eb6941c0..e69de29b 100644 --- a/services/audiomanager/test/unittest/sourcemanager/BUILD.gn +++ b/services/audiomanager/test/unittest/sourcemanager/BUILD.gn @@ -1,89 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/services/audiomanager/source_manager_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "include", - "${audio_control_path}/controlsource/include", - "${audio_hdi_proxy_path}/include", - "${audio_processor_path}/interface", - "${audio_transport_path}/audioctrltransport/include", - "${audio_transport_path}/audioctrltransport/interface", - "${audio_transport_path}/audiotransportstatus/include", - "${audio_transport_path}/audiotransportstatus/interface", - "${audio_transport_path}/interface", - "${audio_transport_path}/receiverengine/include", - "${audio_transport_path}/senderengine/include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${distributedaudio_path}/audiohandler/include", - "${interfaces_path}/inner_kits/native_cpp/audio_sink/include", - "${interfaces_path}/inner_kits/native_cpp/audio_source/include", - "${innerkits_path}/native_cpp/audio_source/include", - "${innerkits_path}/native_cpp/audio_sink/include", - "${services_path}/audiomanager/managersource/include", - "${services_path}/audiomanager/servicesource/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioeventcallback", - "${services_path}/common/audioparam", - "${services_path}/common/taskProcessor/include", - ] -} - -## UnitTest daudio_source_mgr_test -ohos_unittest("DaudioSourceMgrTest") { - module_out_path = module_out_path - - sources = [ "src/daudio_source_mgr_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ - "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", - "${services_path}/audiomanager/servicesource:distributed_audio_source", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributed_av_receiver", - "distributed_hardware_fwk:distributed_av_sender", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudioext_proxy_2.0", - "dsoftbus:softbus_client", - "eventhandler:libeventhandler", - "googletest:gmock", - "hdf_core:libhdi", - "hilog:libhilog", - "ipc:ipc_core", - "ipc:ipc_single", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] -} - -group("daudio_source_mgr_test") { - testonly = true - deps = [ ":DaudioSourceMgrTest" ] -} diff --git a/services/audioprocessor/test/unittest/BUILD.gn b/services/audioprocessor/test/unittest/BUILD.gn index 7f887d6b..e69de29b 100644 --- a/services/audioprocessor/test/unittest/BUILD.gn +++ b/services/audioprocessor/test/unittest/BUILD.gn @@ -1,21 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../../distributedaudio.gni") - -group("daudio_processor_test") { - testonly = true - deps = [ "${audio_processor_path}/test/unittest/common/directprocessor:decode_processor_test" ] -} diff --git a/services/audioprocessor/test/unittest/common/directprocessor/BUILD.gn b/services/audioprocessor/test/unittest/common/directprocessor/BUILD.gn index 91ecaea2..e69de29b 100644 --- a/services/audioprocessor/test/unittest/common/directprocessor/BUILD.gn +++ b/services/audioprocessor/test/unittest/common/directprocessor/BUILD.gn @@ -1,65 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("//build/test.gni") -import("../../../../../../distributedaudio.gni") - -module_output_path = - "distributed_audio/services/audioprocessor/direct_processor_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "${common_path}/include", - "${services_path}/common/audioparam", - "${services_path}/common/audiodata/include", - "${audio_processor_path}/directprocessor/include", - "${audio_processor_path}/interface", - ] -} - -ohos_unittest("DirectProcessorTest") { - module_out_path = module_output_path - - sources = [ "audio_direct_processor_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ - "${audio_transport_path}/receiverengine:distributed_audio_decode_transport", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "player_framework:media_client", - ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"daudio_proc_test\"", - "LOG_DOMAIN=0xD004130", - ] -} - -group("decode_processor_test") { - testonly = true - deps = [ ":DirectProcessorTest" ] -} diff --git a/services/audiotransport/receiverengine/BUILD.gn b/services/audiotransport/receiverengine/BUILD.gn index 7f019d32..e69de29b 100644 --- a/services/audiotransport/receiverengine/BUILD.gn +++ b/services/audiotransport/receiverengine/BUILD.gn @@ -1,84 +0,0 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../distributedaudio.gni") - -config("decode_transport_pub_config") { - include_dirs = [ - "include", - "../interface", - "../../audioprocessor/interface", - ] -} - -ohos_shared_library("distributed_audio_decode_transport") { - sanitize = { - boundary_sanitize = true - cfi = true - cfi_cross_dso = true - debug = false - integer_overflow = true - ubsan = true - } - stack_protector_ret = true - - include_dirs = [ - "include", - "${audio_processor_path}/directprocessor/include", - "${audio_processor_path}/interface", - "${audio_transport_path}/interface", - "${audio_transport_path}/receiverengine/include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioparam", - ] - - public_configs = [ ":decode_transport_pub_config" ] - - sources = [ - "${audio_processor_path}/directprocessor/src/audio_direct_processor.cpp", - "${audio_transport_path}/receiverengine/src/av_receiver_engine_adapter.cpp", - "${audio_transport_path}/receiverengine/src/av_receiver_engine_transport.cpp", - ] - - ldflags = [ - "-fpie", - "-Wl,-z,relro", - "-Wl,-z,now", - ] - - deps = [ "${services_path}/common:distributed_audio_utils" ] - - external_deps = [ - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributed_av_receiver", - "dsoftbus:softbus_client", - "hilog:libhilog", - "hisysevent:libhisysevent", - "hitrace:hitrace_meter", - "player_framework:media_client", - ] - - defines = [ - "HI_LOG_ENABLE", - "LOG_DOMAIN=0xD004130", - ] - - subsystem_name = "distributedhardware" - - part_name = "distributed_audio" -} diff --git a/services/audiotransport/senderengine/BUILD.gn b/services/audiotransport/senderengine/BUILD.gn index 0052d6bc..e69de29b 100644 --- a/services/audiotransport/senderengine/BUILD.gn +++ b/services/audiotransport/senderengine/BUILD.gn @@ -1,84 +0,0 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../distributedaudio.gni") - -config("encode_transport_pub_config") { - include_dirs = [ - "include", - "../interface", - "../../audioprocessor/interface", - ] -} - -ohos_shared_library("distributed_audio_encode_transport") { - sanitize = { - boundary_sanitize = true - cfi = true - cfi_cross_dso = true - debug = false - integer_overflow = true - ubsan = true - } - stack_protector_ret = true - - include_dirs = [ - "include", - "${audio_processor_path}/directprocessor/include", - "${audio_processor_path}/interface", - "${audio_transport_path}/interface", - "${audio_transport_path}/senderengine/include", - "${common_path}/dfx_utils/include", - "${common_path}/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioparam", - ] - - public_configs = [ ":encode_transport_pub_config" ] - - sources = [ - "${audio_processor_path}/directprocessor/src/audio_direct_processor.cpp", - "${audio_transport_path}/senderengine/src/av_sender_engine_adapter.cpp", - "${audio_transport_path}/senderengine/src/av_sender_engine_transport.cpp", - ] - - ldflags = [ - "-fpie", - "-Wl,-z,relro", - "-Wl,-z,now", - ] - - deps = [ "${services_path}/common:distributed_audio_utils" ] - - external_deps = [ - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributed_av_sender", - "dsoftbus:softbus_client", - "hilog:libhilog", - "hisysevent:libhisysevent", - "hitrace:hitrace_meter", - "player_framework:media_client", - ] - - defines = [ - "HI_LOG_ENABLE", - "LOG_DOMAIN=0xD004130", - ] - - subsystem_name = "distributedhardware" - - part_name = "distributed_audio" -} diff --git a/services/audiotransport/test/unittest/BUILD.gn b/services/audiotransport/test/unittest/BUILD.gn index bbb5ed1e..e69de29b 100644 --- a/services/audiotransport/test/unittest/BUILD.gn +++ b/services/audiotransport/test/unittest/BUILD.gn @@ -1,25 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../../../distributedaudio.gni") - -group("daudio_transport_test") { - testonly = true - deps = [ - "${audio_transport_path}/test/unittest/audioctrltransport:ctrl_channel_trans_test", - "${audio_transport_path}/test/unittest/receiverengine:av_receiver_engine_adapter_test", - "${audio_transport_path}/test/unittest/senderengine:av_sender_engine_adapter_test", - ] -} diff --git a/services/audiotransport/test/unittest/audioctrltransport/BUILD.gn b/services/audiotransport/test/unittest/audioctrltransport/BUILD.gn index dd07ed34..e69de29b 100644 --- a/services/audiotransport/test/unittest/audioctrltransport/BUILD.gn +++ b/services/audiotransport/test/unittest/audioctrltransport/BUILD.gn @@ -1,67 +0,0 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/services/audiotransport/ctrl_trans_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${audio_transport_path}/audioctrltransport/include", - "${audio_transport_path}/test/unittest/audioctrltransport/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioparam", - ] -} - -## UnitTest ctrl_trans_test -ohos_unittest("CtrlTransTest") { - module_out_path = module_out_path - - sources = [ - "src/daudio_ctrl_channel_listener_test.cpp", - "src/daudio_sink_ctrl_trans_test.cpp", - "src/daudio_source_ctrl_trans_test.cpp", - ] - - configs = [ ":module_private_config" ] - - deps = [ - "${audio_transport_path}/senderengine:distributed_audio_encode_transport", - "${services_path}/audiomanager/servicesink:distributed_audio_sink", - "${services_path}/audiomanager/servicesource:distributed_audio_source", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "distributed_hardware_fwk:distributed_av_sender", - "dsoftbus:softbus_client", - "googletest:gmock", - "hilog:libhilog", - ] -} - -group("ctrl_channel_trans_test") { - testonly = true - deps = [ ":CtrlTransTest" ] -} diff --git a/services/audiotransport/test/unittest/receiverengine/BUILD.gn b/services/audiotransport/test/unittest/receiverengine/BUILD.gn index 1bde9181..e69de29b 100644 --- a/services/audiotransport/test/unittest/receiverengine/BUILD.gn +++ b/services/audiotransport/test/unittest/receiverengine/BUILD.gn @@ -1,66 +0,0 @@ -# Copyright (c) 2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = - "distributed_audio/services/audiotransport/receiver_engine_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${audio_transport_path}/receiverengine/include", - "${audio_transport_path}/test/unittest/receiverengine/engineutils/include", - "${audio_transport_path}/senderengine/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioparam", - ] -} - -## UnitTest av_receiver_engine_adapter_test -ohos_unittest("AVTransReceiverAdapterTest") { - module_out_path = module_out_path - - sources = [ - "src/av_receiver_engine_adapter_test.cpp", - "src/av_receiver_engine_transport_test.cpp", - ] - - configs = [ ":module_private_config" ] - - deps = [ - "${audio_transport_path}/receiverengine:distributed_audio_decode_transport", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "distributed_hardware_fwk:distributed_av_receiver", - "dsoftbus:softbus_client", - "googletest:gmock", - "hilog:libhilog", - ] -} - -group("av_receiver_engine_adapter_test") { - testonly = true - deps = [ ":AVTransReceiverAdapterTest" ] -} diff --git a/services/audiotransport/test/unittest/senderengine/BUILD.gn b/services/audiotransport/test/unittest/senderengine/BUILD.gn index c59c618b..e69de29b 100644 --- a/services/audiotransport/test/unittest/senderengine/BUILD.gn +++ b/services/audiotransport/test/unittest/senderengine/BUILD.gn @@ -1,65 +0,0 @@ -# Copyright (c) 2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/services/audiotransport/sender_engine_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "include", - "${common_path}/include", - "${common_path}/dfx_utils/include", - "${audio_transport_path}/receiverengine/include", - "${audio_transport_path}/test/unittest/receiverengine/engineutils/include", - "${audio_transport_path}/senderengine/include", - "${services_path}/common/audiodata/include", - "${services_path}/common/audioparam", - ] -} - -## UnitTest av_sender_engine_adapter_test -ohos_unittest("AVTransSenderAdapterTest") { - module_out_path = module_out_path - - sources = [ - "src/av_sender_engine_adapter_test.cpp", - "src/av_sender_engine_transport_test.cpp", - ] - - configs = [ ":module_private_config" ] - - deps = [ - "${audio_transport_path}/senderengine:distributed_audio_encode_transport", - "${services_path}/common:distributed_audio_utils", - ] - - external_deps = [ - "audio_framework:audio_capturer", - "audio_framework:audio_client", - "audio_framework:audio_renderer", - "cJSON:cjson", - "distributed_hardware_fwk:distributed_av_sender", - "dsoftbus:softbus_client", - "googletest:gmock", - "hilog:libhilog", - ] -} - -group("av_sender_engine_adapter_test") { - testonly = true - deps = [ ":AVTransSenderAdapterTest" ] -} diff --git a/services/common/BUILD.gn b/services/common/BUILD.gn index 1ec22bcf..e69de29b 100644 --- a/services/common/BUILD.gn +++ b/services/common/BUILD.gn @@ -1,85 +0,0 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos_var.gni") -import("../../distributedaudio.gni") - -config("daudio_common_pub_config") { - include_dirs = [ - "audiodata/include", - "audioeventcallback", - "audioparam", - "${common_path}/dfxutils/include", - "${common_path}/include", - ] -} - -config("daudio_common_private_config") { - include_dirs = [ - "${common_path}/include", - "${common_path}/dfx_utils/include", - ] -} - -ohos_shared_library("distributed_audio_utils") { - branch_protector_ret = "pac_ret" - sanitize = { - boundary_sanitize = true - cfi = true - cfi_cross_dso = true - debug = false - integer_overflow = true - ubsan = true - } - stack_protector_ret = true - configs = [ ":daudio_common_private_config" ] - - public_configs = [ ":daudio_common_pub_config" ] - - sources = [ - "${common_path}/dfx_utils/src/daudio_hisysevent.cpp", - "${common_path}/dfx_utils/src/daudio_hitrace.cpp", - "${common_path}/dfx_utils/src/daudio_radar.cpp", - "${common_path}/src/daudio_latency_test.cpp", - "${common_path}/src/daudio_ringbuffer.cpp", - "${common_path}/src/daudio_util.cpp", - "audiodata/src/audio_data.cpp", - ] - - ldflags = [ - "-fpie", - "-Wl,-z,relro", - "-Wl,-z,now", - ] - - external_deps = [ - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "dsoftbus:softbus_client", - "hilog:libhilog", - "hisysevent:libhisysevent", - "hitrace:hitrace_meter", - "init:libbegetutil", - ] - - defines = [ - "HI_LOG_ENABLE", - "LOG_DOMAIN=0xD004130", - ] - - subsystem_name = "distributedhardware" - - part_name = "distributed_audio" -} diff --git a/services/common/test/fuzztest/audiodatasetinit64_fuzzer/BUILD.gn b/services/common/test/fuzztest/audiodatasetinit64_fuzzer/BUILD.gn index 7db81167..e69de29b 100644 --- a/services/common/test/fuzztest/audiodatasetinit64_fuzzer/BUILD.gn +++ b/services/common/test/fuzztest/audiodatasetinit64_fuzzer/BUILD.gn @@ -1,60 +0,0 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -#####################hydra-fuzz################### -import("//build/config/features.gni") -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -##############################fuzztest########################################## -ohos_fuzztest("AudioDataSetInit64FuzzTest") { - module_out_path = "${distributedaudio_fuzz_path}/audiodatasetinit64_fuzzer" - fuzz_config_file = - "${services_path}/common/test/fuzztest/audiodatasetinit64_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - ] - sources = [ "audiodatasetinit64_fuzzer.cpp" ] - - include_dirs = [] - - include_dirs += [ - "include", - "${common_path}/include", - ] - - deps = [ "${services_path}/common:distributed_audio_utils" ] - - defines = [ - "HI_LOG_ENABLE", - "DH_LOG_TAG=\"AudioDataSetInit64FuzzTest\"", - "LOG_DOMAIN=0xD004130", - ] - - external_deps = [ - "c_utils:utils", - "ipc:ipc_core", - "samgr:samgr_proxy", - ] -} - -############################################################################### -group("fuzztest") { - testonly = true - deps = [ ":AudioDataSetInit64FuzzTest" ] -} -############################################################################### diff --git a/services/common/test/unittest/audiodata/BUILD.gn b/services/common/test/unittest/audiodata/BUILD.gn index b51ce065..e69de29b 100644 --- a/services/common/test/unittest/audiodata/BUILD.gn +++ b/services/common/test/unittest/audiodata/BUILD.gn @@ -1,49 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/test.gni") -import("../../../../../distributedaudio.gni") - -module_out_path = "distributed_audio/services/common/audio_data_test" - -config("module_private_config") { - visibility = [ ":*" ] - - include_dirs = [ - "./include", - "${services_path}/common/audiodata/include", - "${common_path}/include", - ] -} - -## UnitTest AudioDataTest -ohos_unittest("AudioDataTest") { - module_out_path = module_out_path - - sources = [ "src/audio_data_test.cpp" ] - - configs = [ ":module_private_config" ] - - deps = [ "${services_path}/common:distributed_audio_utils" ] - - external_deps = [ - "c_utils:utils", - "dsoftbus:softbus_client", - "googletest:gmock", - ] -} - -group("audio_data_test") { - testonly = true - deps = [ ":AudioDataTest" ] -} diff --git a/services/test_example/BUILD.gn b/services/test_example/BUILD.gn index 0609271f..e69de29b 100644 --- a/services/test_example/BUILD.gn +++ b/services/test_example/BUILD.gn @@ -1,51 +0,0 @@ -# Copyright (c) 2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# 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 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("../../distributedaudio.gni") - -ohos_executable("audio_distributed_test") { - sanitize = { - cfi = true - cfi_cross_dso = true - debug = false - } - - include_dirs = [ - "./include", - "${common_path}/include", - ] - - sources = [ "distributedaudiotest.cpp" ] - - deps = [ "${services_path}/common:distributed_audio_utils" ] - - external_deps = [ - "cJSON:cjson", - "c_utils:utils", - "distributed_hardware_fwk:distributedhardwareutils", - "drivers_interface_distributed_audio:libdaudio_proxy_1.0", - "hdf_core:libhdf_utils", - "hilog:libhilog", - ] - - defines = [ - "DH_LOG_TAG=\"daudioTest\"", - "HI_LOG_ENABLE", - "LOG_DOMAIN=0xD004130", - ] - - install_enable = false - subsystem_name = "distributedhardware" - part_name = "distributed_audio" -} -- Gitee