1# Copyright (c) 2022-2024 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/test.gni") 15import("../../../../../distributedaudio.gni") 16 17module_out_path = "distributed_audio/services/audiocontrol/control_source_test" 18 19config("module_private_config") { 20 visibility = [ ":*" ] 21 22 include_dirs = [ 23 "include", 24 "${common_path}/include", 25 "${services_path}/common/audioparam", 26 "${services_path}/common/audiodata/include", 27 "${services_path}/common/audioeventcallback", 28 "${audio_transport_path}/interface", 29 "${audio_transport_path}/audiochannel/interface", 30 "${audio_control_path}/controlsource/include", 31 ] 32} 33 34## UnitTest ControlSourceTest 35ohos_unittest("ControlSourceTest") { 36 module_out_path = module_out_path 37 38 sources = [ "src/daudio_source_dev_ctrl_manager_test.cpp" ] 39 40 configs = [ ":module_private_config" ] 41 42 deps = 43 [ "${services_path}/audiomanager/servicesource:distributed_audio_source" ] 44 45 external_deps = [ 46 "access_token:libaccesstoken_sdk", 47 "access_token:libnativetoken_shared", 48 "access_token:libtokensetproc_shared", 49 "c_utils:utils", 50 "distributed_hardware_fwk:distributedhardwareutils", 51 "googletest:gmock", 52 ] 53} 54 55group("control_source_test") { 56 testonly = true 57 deps = [ ":ControlSourceTest" ] 58} 59