• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) Huawei Technologies Co., Ltd. 2019-2019. All rights reserved.
2
3import("//build/test.gni")
4import("//drivers/adapter/uhdf2/uhdf.gni")
5
6module_output_path = "hdf/audio_hdi"
7
8ohos_unittest("AudioHdiTest") {
9  module_out_path = module_output_path
10  sources = [
11    "common/audio_adapter_test.cpp",
12    "common/audio_capture_test.cpp",
13    "common/audio_interface_lib_capture_test.cpp",
14    "common/audio_interface_lib_render_test.cpp",
15    "common/audio_manager_test.cpp",
16    "common/audio_render_test.cpp",
17  ]
18
19  include_dirs = [
20    "//drivers/peripheral/audio/test/unittest/common",
21    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
22    "//drivers/peripheral/audio/interfaces/include",
23
24    "//drivers/framework/include/core",
25    "//drivers/framework/include/utils",
26    "//drivers/framework/include/osal",
27    "//drivers/framework/include",
28    "//third_party/bounds_checking_function/include",
29
30    "//drivers/framework/ability/sbuf/include",
31    "//drivers/framework/utils/include",
32    "//drivers/adapter/uhdf2/osal/include",
33  ]
34
35  deps = [
36    "$hdf_uhdf_path/osal:libhdf_utils",
37    "//drivers/peripheral/audio:hdi_audio",
38    "//drivers/peripheral/audio:hdi_audio_interface_lib_capture",
39    "//drivers/peripheral/audio:hdi_audio_interface_lib_render",
40    "//third_party/googletest:gmock_main",
41    "//third_party/googletest:gtest_main",
42  ]
43
44  cflags = [
45    "-Wall",
46    "-Wextra",
47    "-Werror",
48    "-fsigned-char",
49    "-fno-common",
50    "-fno-strict-aliasing",
51  ]
52}
53
54group("unittest") {
55  testonly = true
56  deps = [ ":AudioHdiTest" ]
57}
58