• 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_output_path =
20    "distributed_audio/services/audiotransport/encode_transport_test"
21
22config("module_private_config") {
23  visibility = [ ":*" ]
24
25  include_dirs = [
26    "${fwk_common_path}/utils/include",
27    "//third_party/json/include",
28  ]
29
30  include_dirs += [
31    "include",
32    "${audio_processor_path}/interface",
33    "${audio_processor_path}/encodeprocessor/include",
34    "${audio_transport_path}/audiochannel/interface",
35    "${audio_transport_path}/audiochannel/audiodatachannel/include",
36    "${audio_transport_path}/audiotransportstatus/include",
37    "${audio_transport_path}/audiotransportstatus/interface",
38    "${audio_transport_path}/encodetransport/include",
39    "${audio_transport_path}/interface",
40    "${audio_transport_path}/receiverengine/include",
41    "${audio_transport_path}/senderengine/include",
42    "${audio_transport_path}/test/unittest/audiotranstestutils/include",
43    "${common_path}/include",
44    "${services_path}/common/audiodata/include",
45    "${services_path}/common/audioparam",
46    "${softbusadapter_path}/include",
47  ]
48}
49
50ohos_unittest("EncodeTransportTest") {
51  module_out_path = module_output_path
52
53  sources = [ "src/encode_transport_test.cpp" ]
54
55  configs = [ ":module_private_config" ]
56
57  deps = [
58    "${audio_transport_path}/audiotransportstatus:distributed_audio_transport_status",
59    "${audio_transport_path}/encodetransport:distributed_audio_encode_transport",
60    "${services_path}/common:distributed_audio_utils",
61    "//third_party/googletest:gtest_main",
62  ]
63
64  external_deps = [
65    "distributed_hardware_fwk:distributed_av_receiver",
66    "distributed_hardware_fwk:distributed_av_sender",
67    "dsoftbus:softbus_client",
68  ]
69
70  defines = [
71    "HI_LOG_ENABLE",
72    "DH_LOG_TAG=\"daudio_trans_test\"",
73    "LOG_DOMAIN=0xD004100",
74  ]
75}
76
77group("encode_transport_test") {
78  testonly = true
79  deps = [ ":EncodeTransportTest" ]
80}
81