• 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/test.gni")
15import("../../../../../distributedaudio.gni")
16
17module_out_path = "distributed_audio/services/audiomanager/source_manager_test"
18
19config("module_private_config") {
20  visibility = [ ":*" ]
21
22  include_dirs = [
23    "//third_party/json/include",
24    "${driver_audio_path}/include",
25    "${fwk_common_path}/utils/include",
26    "${mediastandardfwk_path}/audiocapturer/include",
27    "${mediastandardfwk_path}/audiocommon/include",
28    "${mediastandardfwk_path}/audiomanager/include",
29  ]
30
31  include_dirs += [
32    "include",
33    "${audio_control_path}/controlsource/include",
34    "${audio_hdi_proxy_path}/include",
35    "${audio_processor_path}/interface",
36    "${audio_transport_path}/audioctrltransport/interface",
37    "${audio_transport_path}/audiotransportstatus/include",
38    "${audio_transport_path}/audiotransportstatus/interface",
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    "${hdf_service_path}/hdi_service/common/include",
46    "${interfaces_path}/inner_kits/native_cpp/audio_sink/include",
47    "${interfaces_path}/inner_kits/native_cpp/audio_source/include",
48    "${innerkits_path}/native_cpp/audio_source/include",
49    "${innerkits_path}/native_cpp/audio_sink/include",
50    "${services_path}/audiomanager/managersource/include",
51    "${services_path}/audiomanager/servicesource/include",
52    "${services_path}/common/audiodata/include",
53    "${services_path}/common/audioeventcallback",
54    "${services_path}/common/audioparam",
55    "${services_path}/common/taskProcessor/include",
56    "${services_path}/hdfaudioclient/include",
57  ]
58}
59
60## UnitTest daudio_source_mgr_test
61ohos_unittest("DaudioSourceMgrTest") {
62  module_out_path = module_out_path
63
64  sources = [ "src/daudio_source_mgr_test.cpp" ]
65
66  configs = [ ":module_private_config" ]
67
68  deps = [
69    "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk",
70    "${services_path}/audiomanager/servicesource:distributed_audio_source",
71    "${services_path}/common:distributed_audio_utils",
72    "//third_party/googletest:gmock",
73    "//third_party/googletest:gtest_main",
74  ]
75
76  external_deps = [
77    "c_utils:utils",
78    "distributed_hardware_fwk:distributed_av_receiver",
79    "distributed_hardware_fwk:distributed_av_sender",
80    "drivers_interface_distributed_audio:libdaudioext_proxy_1.0",
81    "dsoftbus:softbus_client",
82    "eventhandler:libeventhandler",
83    "hdf_core:libhdi",
84    "ipc:ipc_core",
85    "ipc:ipc_single",
86    "safwk:system_ability_fwk",
87    "samgr:samgr_proxy",
88  ]
89}
90
91group("daudio_source_mgr_test") {
92  testonly = true
93  deps = [ ":DaudioSourceMgrTest" ]
94}
95