• 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/services/audiomanager/service_sink_test"
20
21config("module_private_config") {
22  visibility = [ ":*" ]
23
24  include_dirs = [
25    "${audio_framework_path}/audiopolicy/include",
26    "//third_party/json/include",
27    "${fwk_common_path}/utils/include",
28    "${mediastandardfwk_path}/audiocapturer/include",
29    "${mediastandardfwk_path}/audiocommon/include",
30    "${mediastandardfwk_path}/audiorenderer/include",
31    "${mediastandardfwk_path}/audiomanager/include",
32  ]
33
34  include_dirs += [
35    "${audio_client_path}/micclient/include",
36    "${audio_client_path}/spkclient/include",
37    "${audio_control_path}/controlsink/include",
38    "${audio_processor_path}/interface",
39    "${audio_transport_path}/interface",
40    "${audio_transport_path}/receiverengine/include",
41    "${audio_transport_path}/senderengine/include",
42    "${common_path}/include",
43    "${innerkits_path}/native_cpp/audio_sink/include",
44    "${innerkits_path}/native_cpp/audio_source/include",
45    "${services_path}/audiomanager/managersink/include",
46    "${services_path}/audiomanager/servicesink/include",
47    "${services_path}/audiomanager/test/unittest/managersink/include",
48    "${services_path}/audiomanager/test/unittest/servicesink/include",
49    "${services_path}/common/audiodata/include",
50    "${services_path}/common/audioeventcallback",
51    "${services_path}/common/audioparam",
52  ]
53}
54
55## UnitTest daudio_sink_dev_test
56ohos_unittest("DaudioSinkServiceTest") {
57  module_out_path = module_out_path
58
59  sources = [ "${services_path}/audiomanager/test/unittest/servicesink/src/daudio_sink_service_test.cpp" ]
60
61  configs = [ ":module_private_config" ]
62
63  deps = [
64    "${services_path}/audiomanager/servicesink:distributed_audio_sink",
65    "//third_party/googletest:gmock",
66    "//third_party/googletest:gtest_main",
67  ]
68
69  external_deps = [
70    "audio_framework:audio_capturer",
71    "audio_framework:audio_client",
72    "audio_framework:audio_renderer",
73    "c_utils:utils",
74    "dsoftbus:softbus_client",
75    "hisysevent:libhisysevent",
76    "hitrace:hitrace_meter",
77    "ipc:ipc_core",
78    "safwk:system_ability_fwk",
79    "samgr:samgr_proxy",
80  ]
81}
82
83group("service_sink_test") {
84  testonly = true
85  deps = [ ":DaudioSinkServiceTest" ]
86}
87