1# Copyright (c) 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 =
18    "distributed_audio/services/audiotransport/receiver_engine_test"
19
20config("module_private_config") {
21  visibility = [ ":*" ]
22
23  include_dirs = [
24    "include",
25    "${common_path}/include",
26    "${common_path}/dfx_utils/include",
27    "${audio_transport_path}/receiverengine/include",
28    "${audio_transport_path}/test/unittest/receiverengine/engineutils/include",
29    "${audio_transport_path}/senderengine/include",
30    "${services_path}/common/audiodata/include",
31    "${services_path}/common/audioparam",
32  ]
33}
34
35## UnitTest av_receiver_engine_adapter_test
36ohos_unittest("AVTransReceiverAdapterTest") {
37  module_out_path = module_out_path
38
39  sources = [
40    "src/av_receiver_engine_adapter_test.cpp",
41    "src/av_receiver_engine_transport_test.cpp",
42  ]
43
44  configs = [ ":module_private_config" ]
45
46  deps = [
47    "${audio_transport_path}/receiverengine:distributed_audio_decode_transport",
48    "${services_path}/common:distributed_audio_utils",
49  ]
50
51  external_deps = [
52    "audio_framework:audio_capturer",
53    "audio_framework:audio_client",
54    "audio_framework:audio_renderer",
55    "cJSON:cjson",
56    "distributed_hardware_fwk:distributed_av_receiver",
57    "dsoftbus:softbus_client",
58    "googletest:gmock",
59  ]
60}
61
62group("av_receiver_engine_adapter_test") {
63  testonly = true
64  deps = [ ":AVTransReceiverAdapterTest" ]
65}
66