• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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_var.gni")
15import("//build/test.gni")
16import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
17import("//drivers/peripheral/audio/audio.gni")
18import("//test/xts/tools/build/suite.gni")
19
20module_output_path = "hads/audio"
21
22ohos_moduletest_suite("HatsAudioProxyCommonTest") {
23  module_out_path = module_output_path
24  sources = [ "src/audio_proxy_common_test.cpp" ]
25
26  include_dirs = [
27    "//test/xts/hats/hdf/audio/client_advance/common/include",
28    "//drivers/peripheral/audio/interfaces/include",
29    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
30    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
31    "//drivers/peripheral/audio/hal/hdi_binder/server/include",
32    "//drivers/hdf_core/adapter/uhdf2/include/hdi",
33    "//drivers/hdf_core/adapter/uhdf2/shared/include",
34    "//third_party/googletest/googletest/include/gtest",
35  ]
36  cflags = [
37    "-Wall",
38    "-Wextra",
39    "-Werror",
40    "-fsigned-char",
41    "-fno-common",
42    "-fno-strict-aliasing",
43  ]
44  deps = [
45    "//drivers/peripheral/audio/hal/hdi_binder/proxy:hdi_audio_client",
46    "//drivers/peripheral/audio/hal/hdi_passthrough:hdi_audio",
47    "//drivers/peripheral/audio/hal/hdi_passthrough:hdi_audio_common",
48    "//third_party/googletest:gmock_main",
49    "//third_party/googletest:gtest_main",
50  ]
51  external_deps = [
52    "c_utils:utils",
53    "hdf_core:libhdf_host",
54    "hdf_core:libhdf_ipc_adapter",
55    "hdf_core:libhdf_utils",
56    "hdf_core:libhdi",
57  ]
58  subsystem_name = "hdf"
59  part_name = "drivers_peripheral_audio"
60}
61