• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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")
15
16module_output_path = "hdf/audio/unittest/adm"
17ohos_unittest("hdf_audio_adm_test") {
18  module_out_path = module_output_path
19
20  include_dirs = [
21    "//drivers/framework/ability/sbuf/include",
22    "//drivers/framework/include/platform",
23    "//drivers/framework/include/core",
24    "//drivers/framework/include/osal",
25    "//drivers/adapter/uhdf/posix/include",
26    "//drivers/framework/include/utils",
27    "//drivers/framework/include/config",
28    "//drivers/framework/include",
29    "//drivers/framework/test/unittest/include",
30    "//drivers/framework/test/unittest/osal",
31    "//drivers/framework/test/unittest/model/audio/include",
32    "//drivers/framework/model/audio/core/test/unittest/common",
33  ]
34
35  defines = [ "__USER__" ]
36  sources = [
37    "//drivers/framework/model/audio/core/test/unittest/common/audio_core_test.cpp",
38    "//drivers/framework/model/audio/core/test/unittest/common/audio_host_test.cpp",
39    "//drivers/framework/model/audio/core/test/unittest/common/audio_parse_test.cpp",
40    "//drivers/framework/model/audio/dispatch/test/unittest/common/audio_stream_dispatch_test.cpp",
41    "//drivers/framework/model/audio/sapm/test/unittest/common/audio_sapm_test.cpp",
42  ]
43  deps = [
44    "//drivers/adapter/uhdf2/osal:libhdf_utils",
45    "//drivers/adapter/uhdf2/test/unittest/common:libhdf_test_common",
46    "//utils/native/base:utils",
47  ]
48
49  cflags = [
50    "-Wall",
51    "-Wextra",
52    "-Werror",
53    "-fsigned-char",
54    "-fno-common",
55    "-fno-strict-aliasing",
56  ]
57  if (is_standard_system) {
58    external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
59  } else {
60    external_deps = [ "hilog:libhilog" ]
61  }
62}
63
64group("hdf_test_audio") {
65  testonly = true
66  deps = [ ":hdf_audio_adm_test" ]
67}
68