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("HatsAudioProxyAdaptrTest") { 23 module_out_path = module_output_path 24 sources = [ 25 "../common/src/audio_proxy_common_fun_test.cpp", 26 "src/audio_proxy_adapter_test.cpp", 27 ] 28 include_dirs = [ 29 "//test/xts/hats/hdf/audio/client_advance/common/include", 30 "//drivers/peripheral/audio/interfaces/include", 31 "//drivers/peripheral/audio/hal/hdi_passthrough/include", 32 "//drivers/peripheral/audio/hal/hdi_binder/proxy/include", 33 "//drivers/peripheral/audio/hal/hdi_binder/server/include", 34 "//drivers/hdf_core/adapter/uhdf2/include/hdi", 35 "//drivers/hdf_core/adapter/uhdf2/shared/include", 36 "//third_party/googletest/googletest/include/gtest", 37 ] 38 cflags = [ 39 "-Wall", 40 "-Wextra", 41 "-Werror", 42 "-fsigned-char", 43 "-fno-common", 44 "-fno-strict-aliasing", 45 ] 46 deps = [ 47 "//drivers/peripheral/audio/hal/hdi_binder/proxy:hdi_audio_client", 48 "//drivers/peripheral/audio/hal/hdi_passthrough:hdi_audio", 49 "//drivers/peripheral/audio/hal/hdi_passthrough:hdi_audio_common", 50 "//third_party/googletest:gmock_main", 51 "//third_party/googletest:gtest_main", 52 ] 53 external_deps = [ 54 "c_utils:utils", 55 "hdf_core:libhdf_utils", 56 ] 57 subsystem_name = "hdf" 58 part_name = "drivers_peripheral_audio" 59} 60