• 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/audioclient/mic_client_test"
20
21config("module_private_config") {
22  visibility = [ ":*" ]
23
24  include_dirs = [ "${mediastandardfwk_path}/audiocommon/include" ]
25
26  include_dirs += [
27    "${audio_client_path}/interface",
28    "${audio_client_path}/micclient/include",
29    "${audio_client_path}/test/unittest/micclient/include",
30    "${audio_client_path}/test/unittest/audioclienttestutils/include",
31    "${audio_processor_path}/interface",
32    "${audio_transport_path}/interface",
33    "${audio_transport_path}/receiverengine/include",
34    "${audio_transport_path}/senderengine/include",
35    "${common_path}/include",
36    "${fwk_common_path}/utils/include",
37    "${services_path}/common/audioeventcallback",
38    "${services_path}/common/audiodata/include",
39    "${services_path}/common/audioparam",
40  ]
41}
42
43## UnitTest dmic_client_test
44ohos_unittest("MicClientTest") {
45  module_out_path = module_out_path
46
47  sources = [
48    "${audio_client_path}/test/unittest/micclient/src/dmic_client_test.cpp",
49  ]
50
51  configs = [ ":module_private_config" ]
52
53  deps = [
54    "${services_path}/audiomanager/servicesink:distributed_audio_sink",
55    "//third_party/googletest:gmock",
56    "//third_party/googletest:gtest_main",
57  ]
58
59  external_deps = [
60    "audio_framework:audio_capturer",
61    "distributed_hardware_fwk:distributed_av_receiver",
62    "distributed_hardware_fwk:distributed_av_sender",
63  ]
64}
65
66group("mic_client_test") {
67  testonly = true
68  deps = [ ":MicClientTest" ]
69}
70