diff --git a/audiohandler/BUILD.gn b/audiohandler/BUILD.gn index 683a1910ac07d37c548302c19a870eb210c7d0e9..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 57f9b1c38bd27b9bf5bd66b9ffc7fa66d318039e..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 e8ddddea4815f1e84eca5ae431ac0f3c9781ef33..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 95bbdada75d98da49a64225630f2bfbc80d45009..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 a7d027bd7f3b08d57ff5a02a9b7e7442b4c955fd..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 750e93a6579e4247924d5d776e5b4280e72100e8..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 f4754e413f2ce42b202317c042a1cb96404ae4c3..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 ab6491ff1c1482860331278aaf42f8b768eaf5ba..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 b26801616e90304d78367b3c7d022d50f2d38cae..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 fd0eabae90d9c6ddcfb5c229d5a259dab50715e1..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 7b8ba06419bed88c536c5c384c0bb05cf99fb26f..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 498a752633152ae196d1b15beef4ddaefe84b3ba..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 2d98fbf7d94eb85e9cf30caac2c7772d61654cf5..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 225eb9057ea0a668418d78ec43bebe5cdcf6eb31..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 05269bf9795df7ee412eef35523a0dda25454faf..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 7dfe780b0aa4098f69cbe7289b2775e246bc9fc9..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 994874bd1f552bb7d2178b8c8b645f86ab2632de..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 cb9d1ca32fceb22d73fdb8d47caab6ad116d35c8..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 d43eae74e7acc0cc82e53e50130932734bf7a8f8..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 c345a2d89c62a7cd8c35e8b704e789b10702be3e..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 590a468302905aea22ffde517f69a81624f87cd2..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 9b1e0b531d002c9e85d2f0ac8756b1ba28462345..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 63a91e9b537a3551d3119d05cd8a07840c84a7be..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 705503db0e43a58697924c174458cd3043baf426..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 782b4c1b9571ae2a4ab185ce9718885745bb1c44..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 dbf0384ecd74ccdfbe9cad8a6f86b7fbf02a2954..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 03d0254e2a1b458e5b46fe43f7d2237c42f91c0e..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 fa27f6fa9759502d97f556e0cc244c017879dff2..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 82795f7e4d443f1f4a71aa38a808b5d22d75eca2..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 216dff18397d6c3657797d49cbeec8bdd2b39384..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 1d3a28ca67471a54154c92c8afd95227c0926a76..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 83b2a8b8626bce93ed919f250310df09ab021ad1..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 0ae1845aae0487503345a570646cb87c80d1bfdf..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 78432e57755533e18e6416c528484354607297fd..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 690c83b61693a0a0b065def57251ee9a240c9cf9..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 899798da997263241a0071bf04aaad2426e147d3..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 37ecb991d65b0336803160808c3ae721e4f430da..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 563b3697046a1613e538d79116bd168559d5cbef..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 ca01fa1b70b625b0c1baee785772df2969bc5d54..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 075f93003b95982f5684a0e7cecce907ca855567..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 c028a65b5d5d499f326846484ccccb6af0d2a4e0..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 ecbd5500712c3bfbca917c3dc97b95f9f19b67a3..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 c9eae86fcef546eee520e9cfbe6b59fa567ae6eb..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 ef9cf270c9701a216b738891f955b40d0453c491..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 9f6d80d59a9b1f8db20bbd4799a0dae7b95c2fd2..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 eee181580275aa11618851feabb238dca3e555c4..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 b9a17ba8ccd0167668e618b64ff7b8b34a668bea..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 b71dc28762cf8d80e452b719e5ecb27dcb073ab3..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 76fba4a48847c4559309d3a23fcc0a553b83fe87..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 ad6bb9647a37eae0c465ccc6e6a2bf1dbf95966d..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 a9ba7026168ee44f12836651431c9c2ff93ca044..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 c04d0cdbfc6a9230887ef4d217ef9232e6582806..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 c29d047acb35e8c19654ce6083f4fac546cc67a0..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 cd83fc454be8f364c08946768f06879a430ddd62..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 0c760deee2758e8faa6edf5315d0b1072eddc055..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 d28bad9210fd126284e632f3c954a0da39d663e4..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 3e39547c03a5d7f493ee3dc412df32f6442ed7d5..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 0a190894a2b6a5879af514bf998e1ad10c925b01..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 c7877edcef5d098126eed61b6a8fd23beccfdef1..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 7785af6a0d65577220f1c7a16b60ba6f49e6f5a9..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 6ebff3861cbc25f926f0dae8d6fa866b8a643bc3..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 f993c57f030cc52c63eee0077a07a13ed38ba2b5..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 255839649c94c380c8d6fda5eb7b410b632af0bc..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 0960b5d878b9719aa80cca1b8a2605d3b40daf91..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 a02cfcbc87e3026a04f0e83dcf2a1c3c73554eed..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 99fd85541907003899e6e86e084a8bb1060cf9fb..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 b9723e07c1381c640e56a319e66600626aa66759..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 3159bb8d36eef9a1428e936a866f8a242d38e470..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 334c1a7d516ec2aaa9d770cda28cd70c7cea7ae7..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 12a50c7542a9c928f056144bfd8a359d24e61b19..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 fa3b4f86ca3ee4685487c5d2fae8b426f8e73f0e..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 3c309f882eb466da77d2837a14860a46152f57db..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 5970d1d7a41785a57d72beac234e874d556ec74d..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 7396b13df36cddd1c208382f42b5749e8b5de653..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 67db6e11ccc8faa072810c5bd508934d6b70703f..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 925565b4658f77d218e7776901b1b8eca460915a..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 eb6941c0d2c8f32a83203ea81b1ba2dd78a7de5b..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 7f887d6b5b5a7115aa9afb2c3695cbbfb5420296..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 91ecaea29ae80cea25a99b709d930e2b8e8111e0..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 7f019d328150a34032bc2f4c76fe4ae0785daa24..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 0052d6bc68856a664ecfd1351876d18987b1fac4..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 bbb5ed1e998ff281025a6aa0f41830f8a3782362..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 dd07ed34dd186cb8c81bcb115a83122254f364a5..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 1bde9181ab606c95c1ef3c10588516274b5fb4ea..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 c59c618bc5423f5b161b33051cd44bd4f15d3c67..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 1ec22bcfbcf6d19e9aa8cf87c65440bdd70c3862..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 7db81167e190bc846f673519b5e1ae97c4cfc16a..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 b51ce065eaa230b333d7facd3b0c46821112f2cd..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 0609271f6736cd0df37d40893e735b826d5ad508..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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" -}