1# Copyright (c) 2022-2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15import("//build/ohos_var.gni") 16import("//build/test.gni") 17import("../../../../../distributedaudio.gni") 18 19module_out_path = "distributed_audio/services/audioclient/spk_client_test" 20 21config("module_private_config") { 22 visibility = [ ":*" ] 23 24 include_dirs = [ 25 "${mediastandardfwk_path}/audiocommon/include", 26 "${mediastandardfwk_path}/audiomanager/include", 27 "${mediastandardfwk_path}/audiorenderer/include", 28 "//third_party/json/include", 29 ] 30 31 include_dirs += [ 32 "${audio_client_path}/interface", 33 "${audio_client_path}/spkclient/include", 34 "${audio_client_path}/test/unittest/spkclient/include", 35 "${audio_client_path}/test/unittest/audioclienttestutils/include", 36 "${audio_processor_path}/decodeprocessor/include", 37 "${audio_processor_path}/interface", 38 "${audio_transport_path}/audiochannel/interface", 39 "${audio_transport_path}/audiochannel/audiodatachannel/include", 40 "${audio_transport_path}/audiotransportstatus/include", 41 "${audio_transport_path}/audiotransportstatus/interface", 42 "${audio_transport_path}/decodetransport/include", 43 "${audio_transport_path}/interface", 44 "${audio_transport_path}/receiverengine/include", 45 "${audio_transport_path}/senderengine/include", 46 "${common_path}/include", 47 "${fwk_common_path}/utils/include", 48 "${services_path}/common/audioeventcallback", 49 "${services_path}/common/audiodata/include", 50 "${services_path}/common/audioparam", 51 "${softbusadapter_path}/include", 52 ] 53} 54 55## UnitTest dspeaker_client_test 56ohos_unittest("SpeakerClientTest") { 57 module_out_path = module_out_path 58 59 sources = [ 60 "${audio_client_path}/test/unittest/spkclient/src/dspeaker_client_test.cpp", 61 ] 62 63 configs = [ ":module_private_config" ] 64 65 deps = [ 66 "${services_path}/audiomanager/servicesink:distributed_audio_sink", 67 "${services_path}/common:distributed_audio_utils", 68 "//third_party/googletest:gmock", 69 "//third_party/googletest:gtest_main", 70 ] 71 72 external_deps = [ 73 "audio_framework:audio_client", 74 "distributed_hardware_fwk:distributed_av_receiver", 75 "distributed_hardware_fwk:distributed_av_sender", 76 ] 77} 78 79group("spk_client_test") { 80 testonly = true 81 deps = [ ":SpeakerClientTest" ] 82} 83