1# Copyright (C) 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
14base_root = "../../../../../"
15import("$base_root/test/xts/tools/build/suite.gni")
16
17module_output_path = "dcts/distributedhardware"
18
19ohos_moduletest_suite("DctsSubdAudioNewTest") {
20  module_out_path = module_output_path
21  include_dirs = [
22    "$base_root/drivers\peripheral\audio\interfaces\include",
23    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/common/log/include",
24    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/utils/include/log",
25    "$base_root/foundation/distributedhardware/distributed_audio/common/include",
26    "$base_root/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/include",
27    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/common/utils/include",
28    "$base_root/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocapturer/include",
29    "$base_root/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include",
30    "$base_root/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiorenderer/include",
31    "$base_root/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiomanager/include",
32    "$base_root/foundation/distributedhardware/distributed_audio/services/audioclient/micclient/include",
33    "$base_root/foundation/distributedhardware/distributed_audio/services/audioclient/spkclient/include",
34    "$base_root/foundation/distributedhardware/distributed_audio/services/audiocontrol/controlsink/include",
35    "$base_root/foundation/distributedhardware/distributed_audio/services/audioprocessor/interface",
36    "$base_root/foundation/distributedhardware/distributed_audio/services/audiotransport/interface",
37    "$base_root/foundation/distributedhardware/distributed_audio/services/audiotransport/receiverengine/include",
38    "$base_root/foundation/distributedhardware/distributed_audio/services/audiotransport/senderengine/include",
39    "$base_root/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/audio_sink/include",
40    "$base_root/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/audio_source/include",
41    "$base_root/foundation/distributedhardware/distributed_audio/services/audiomanager/managersink/include",
42    "$base_root/foundation/distributedhardware/distributed_audio/services/audiomanager/servicesink/include",
43    "$base_root/foundation/distributedhardware/distributed_audio/services/audiomanager/test/unittest/managersink/include",
44    "$base_root/foundation/distributedhardware/distributed_audio/services/audiomanager/test/unittest/servicesink/include",
45    "$base_root/foundation/distributedhardware/distributed_audio/services/common/audiodata/include",
46    "$base_root/foundation/distributedhardware/distributed_audio/services/common/audioeventcallback",
47    "$base_root/foundation/distributedhardware/distributed_audio/services/common/audioparam",
48    "$base_root/foundation/communication/dsoftbus/dsoftbus_enhance/test/tool/softbus_tool/include",
49    "$base_root/foundation/communication/dsoftbus/interfaces/kits/bus_center",
50    "$base_root/third_party/cJSON",
51  ]
52
53  sources = [
54    "daudio_automat_test.cpp",
55    "distributedaudiotest.cpp",
56  ]
57
58  deps = [
59    "$base_root/drivers/hdf_core/adapter/uhdf2/utils:libhdf_utils",
60    "$base_root/foundation/communication/dsoftbus/core/common:softbus_utils",
61    "$base_root/foundation/distributedhardware/distributed_audio/services/audiomanager/servicesink:distributed_audio_sink",
62    "$base_root/third_party/cJSON:cjson",
63    "$base_root/third_party/googletest:gmock",
64    "$base_root/third_party/googletest:gtest_main",
65  ]
66
67  external_deps = [
68    "access_token:libaccesstoken_sdk",
69    "access_token:libnativetoken",
70    "access_token:libtoken_setproc",
71    "audio_framework:audio_capturer",
72    "audio_framework:audio_client",
73    "audio_framework:audio_renderer",
74    "c_utils:utils",
75    "distributed_hardware_fwk:distributedhardwareutils",
76    "drivers_interface_distributed_audio:libdaudio_proxy_1.0",
77    "dsoftbus:softbus_client",
78    "hdf_core:libhdf_utils",
79    "hilog:libhilog",
80    "hisysevent:libhisysevent",
81    "hitrace:hitrace_meter",
82    "ipc:ipc_core",
83    "safwk:system_ability_fwk",
84    "samgr:samgr_proxy",
85  ]
86
87  defines = [
88    "HI_LOG_ENABLE",
89    "DH_LOG_TAG=\"DctsSubdAudioNewTest\"",
90    "LOG_DOMAIN=0xD004100",
91  ]
92
93  install_enable = true
94  install_images = [ chipset_base_dir ]
95  subsystem_name = "distributedhardware"
96  part_name = "distributed_audio"
97}
98