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/mic_client_test" 20 21config("module_private_config") { 22 visibility = [ ":*" ] 23 24 include_dirs = [ 25 "${audio_client_path}/interface", 26 "${audio_client_path}/micclient/include", 27 "${audio_client_path}/test/unittest/micclient/include", 28 "${audio_client_path}/test/unittest/audioclienttestutils/include", 29 "${audio_processor_path}/interface", 30 "${audio_transport_path}/interface", 31 "${audio_transport_path}/receiverengine/include", 32 "${audio_transport_path}/senderengine/include", 33 "${common_path}/include", 34 "${services_path}/common/audioeventcallback", 35 "${services_path}/common/audiodata/include", 36 "${services_path}/common/audioparam", 37 ] 38} 39 40## UnitTest dmic_client_test 41ohos_unittest("MicClientTest") { 42 module_out_path = module_out_path 43 44 sources = [ 45 "${audio_client_path}/test/unittest/micclient/src/dmic_client_test.cpp", 46 ] 47 48 configs = [ ":module_private_config" ] 49 50 deps = [ "${services_path}/audiomanager/servicesink:distributed_audio_sink" ] 51 52 external_deps = [ 53 "audio_framework:audio_capturer", 54 "audio_framework:audio_client", 55 "audio_framework:audio_renderer", 56 "cJSON:cjson", 57 "distributed_hardware_fwk:distributed_av_receiver", 58 "distributed_hardware_fwk:distributed_av_sender", 59 "distributed_hardware_fwk:distributedhardwareutils", 60 "googletest:gmock", 61 ] 62} 63 64group("mic_client_test") { 65 testonly = true 66 deps = [ ":MicClientTest" ] 67} 68