1# Copyright (c) 2025 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("../../../../../config.gni") 16 17module_output_path = "audio_framework/audio_framework_route/audio_loopback" 18 19ohos_unittest("audio_loopback_unit_test") { 20 testonly = true 21 module_out_path = module_output_path 22 include_dirs = [ 23 "./include", 24 "../../include", 25 "../../../../../interfaces/inner_api/native/audiocommon/include", 26 "../../../audiostream/include", 27 ] 28 29 cflags = [ 30 "-Wall", 31 "-Werror", 32 "-Wno-macro-redefined", 33 "-fno-access-control", 34 ] 35 36 sources = [ "src/audio_loopback_unit_test.cpp" ] 37 38 deps = [ 39 "../../../../../services/audio_service:audio_client", 40 "../../../audioloopback:audio_loopback", 41 ] 42 43 external_deps = [ 44 "access_token:libaccesstoken_sdk", 45 "access_token:libnativetoken_shared", 46 "access_token:libtokensetproc_shared", 47 "c_utils:utils", 48 "hilog:libhilog", 49 "init:libbegetutil", 50 "ipc:ipc_single", 51 "media_foundation:media_monitor_client", 52 "media_foundation:media_monitor_common", 53 ] 54}