1# Copyright (c) 2022 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_var.gni") 15import("//build/test.gni") 16import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 17import("//drivers/peripheral/audio/audio.gni") 18import("//test/xts/tools/build/suite.gni") 19 20module_output_path = "hads/audio" 21 22ohos_moduletest_suite("HatsAudioProxyCaptureTest") { 23 module_out_path = module_output_path 24 sources = [ 25 "../common/src/audio_proxy_common_fun_test.cpp", 26 "./src/audio_proxy_capture_test.cpp", 27 ] 28 29 include_dirs = [ 30 "//test/xts/hats/hdf/audio/client_advance/common/include", 31 "//drivers/peripheral/audio/interfaces/include", 32 "//drivers/peripheral/audio/hal/hdi_passthrough/include", 33 "//drivers/peripheral/audio/hal/hdi_binder/proxy/include", 34 "//drivers/peripheral/audio/hal/hdi_binder/server/include", 35 "//drivers/adapter/uhdf2/include/hdi", 36 "//drivers/adapter/uhdf2/shared/include", 37 "//third_party/googletest/googletest/include/gtest", 38 ] 39 cflags = [ 40 "-Wall", 41 "-Wextra", 42 "-Werror", 43 "-fsigned-char", 44 "-fno-common", 45 "-fno-strict-aliasing", 46 ] 47 deps = [ 48 "//drivers/peripheral/audio/hal/hdi_binder/proxy:hdi_audio_client", 49 "//drivers/peripheral/audio/hal/hdi_passthrough:hdi_audio", 50 "//drivers/peripheral/audio/hal/hdi_passthrough:hdi_audio_common", 51 "//third_party/googletest:gmock_main", 52 "//third_party/googletest:gtest_main", 53 ] 54 external_deps = [ 55 "c_utils:utils", 56 "hdf_core:libhdi", 57 ] 58 subsystem_name = "hdf" 59 part_name = "drivers_peripheral_audio" 60} 61