• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2023 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.gni")
15import("//build/ohos_var.gni")
16import("//build/test.gni")
17import("../../../../distributedaudio.gni")
18
19module_out_path = "distributed_audio/common/dfx_utils_test"
20
21config("module_private_config") {
22  visibility = [ ":*" ]
23
24  include_dirs = [
25    "include",
26    "${audio_control_path}/controlsource/include",
27    "${audio_hdi_proxy_path}/include",
28    "${audio_processor_path}/interface",
29    "${audio_processor_path}/encodeprocessor/include",
30    "${audio_processor_path}/decodeprocessor/include",
31    "${audio_transport_path}/audiochannel/interface",
32    "${audio_transport_path}/audiochannel/audiodatachannel/include",
33    "${audio_transport_path}/audioctrltransport/include",
34    "${audio_transport_path}/audioctrltransport/interface",
35    "${audio_transport_path}/audiotransportstatus/include",
36    "${audio_transport_path}/audiotransportstatus/interface",
37    "${audio_transport_path}/decodetransport/include",
38    "${audio_transport_path}/encodetransport/include",
39    "${audio_transport_path}/interface",
40    "${audio_transport_path}/receiverengine/include",
41    "${audio_transport_path}/senderengine/include",
42    "${common_path}/include",
43    "${common_path}/dfx_utils/include",
44    "${distributedaudio_path}/audiohandler/include",
45    "${driver_audio_path}/include",
46    "${services_path}/hdfaudioclient/include",
47    "${hdf_service_path}/hdi_service/common/include",
48    "${interfaces_path}/inner_kits/native_cpp/audio_sink/include",
49    "${interfaces_path}/inner_kits/native_cpp/audio_source/include",
50    "${innerkits_path}/native_cpp/audio_source/include",
51    "${innerkits_path}/native_cpp/audio_sink/include",
52    "${services_path}/common/audioparam",
53    "${services_path}/common/taskProcessor/include",
54    "${services_path}/common/audiodata/include",
55    "${services_path}/common/audioeventcallback",
56    "${services_path}/audiomanager/managersource/include",
57    "${softbusadapter_path}/include",
58    "//third_party/json/include",
59    "${fwk_common_path}/utils/include",
60    "${mediastandardfwk_path}/audiocapturer/include",
61    "${mediastandardfwk_path}/audiocommon/include",
62    "${mediastandardfwk_path}/audiorenderer/include",
63    "${mediastandardfwk_path}/audiomanager/include",
64  ]
65}
66
67## UnitTest daudio_dfx_test
68ohos_unittest("DAudioDfxTest") {
69  module_out_path = module_out_path
70
71  sources =
72      [ "${common_path}/dfx_utils/test/unittest/src/daudio_hidumper_test.cpp" ]
73
74  configs = [ ":module_private_config" ]
75
76  deps = [
77    "${services_path}/audiomanager/servicesource:distributed_audio_source",
78    "${services_path}/common:distributed_audio_utils",
79    "//third_party/googletest:gmock",
80    "//third_party/googletest:gtest_main",
81  ]
82
83  external_deps = [
84    "audio_framework:audio_capturer",
85    "c_utils:utils",
86    "drivers_interface_audio:libaudio_proxy_1.0",
87    "dsoftbus:softbus_client",
88    "hisysevent:libhisysevent",
89    "hitrace:hitrace_meter",
90    "ipc:ipc_core",
91    "samgr:samgr_proxy",
92  ]
93}
94
95group("daudio_dfx_test") {
96  testonly = true
97  deps = [ ":DAudioDfxTest" ]
98}
99