• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
14import("//build/ohos.gni")
15import("//build/ohos_var.gni")
16import("//build/test.gni")
17import("../../../../../distributedaudio.gni")
18
19module_out_path =
20    "distributed_audio/distributed_audio/services/audioclient/spk_client_test"
21
22config("module_private_config") {
23  visibility = [ ":*" ]
24
25  include_dirs = [
26    "${audio_client_path}/interface",
27    "${audio_client_path}/spkclient/include",
28    "${audio_client_path}/test/unittest/spkclient/include",
29    "${audio_client_path}/test/unittest/audioclienttestutils/include",
30    "${audio_processor_path}/interface",
31    "${audio_transport_path}/interface",
32    "${audio_transport_path}/audioctrltransport/include",
33    "${audio_transport_path}/receiverengine/include",
34    "${audio_transport_path}/senderengine/include",
35    "${common_path}/include",
36    "${services_path}/common/audioeventcallback",
37    "${services_path}/common/audiodata/include",
38    "${services_path}/common/audioparam",
39  ]
40}
41
42## UnitTest dspeaker_client_test
43ohos_unittest("SpeakerClientTest") {
44  module_out_path = module_out_path
45
46  sources = [
47    "${audio_client_path}/test/unittest/spkclient/src/dspeaker_client_test.cpp",
48  ]
49
50  configs = [ ":module_private_config" ]
51
52  deps = [
53    "${services_path}/audiomanager/servicesink:distributed_audio_sink",
54    "${services_path}/common:distributed_audio_utils",
55  ]
56
57  external_deps = [
58    "audio_framework:audio_capturer",
59    "audio_framework:audio_client",
60    "audio_framework:audio_renderer",
61    "cJSON:cjson",
62    "c_utils:utils",
63    "distributed_hardware_fwk:distributed_av_receiver",
64    "distributed_hardware_fwk:distributed_av_sender",
65    "distributed_hardware_fwk:distributedhardwareutils",
66    "dsoftbus:softbus_client",
67    "googletest:gmock",
68    "hilog:libhilog",
69    "ipc:ipc_core",
70  ]
71}
72
73group("spk_client_test") {
74  testonly = true
75  deps = [ ":SpeakerClientTest" ]
76}
77