• 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
14if (!defined(ohos_lite)) {
15  import("//build/test.gni")
16  import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
17}
18import("//drivers/peripheral/audio/audio.gni")
19if (!defined(ohos_lite)) {
20  module_output_path = "drivers_peripheral_audio/audio"
21
22  ohos_systemtest("hdf_audio_threshold_report_test") {
23    module_out_path = module_output_path
24    resource_config_file =
25        "//drivers/peripheral/audio/test/resource/ohos_test.xml"
26    sources = [
27      "../../common/hdi_common/src/audio_hdi_common.cpp",
28      "//drivers/peripheral/audio/hal/hdi_binder/server/src/hdf_audio_events.c",
29      "src/audio_threshold_report_test.cpp",
30    ]
31
32    include_dirs = [
33      "//drivers/peripheral/audio/hal/hdi_passthrough/include",
34      "//drivers/peripheral/audio/interfaces/include",
35      "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
36      "//drivers/peripheral/audio/hal/hdi_binder/server/include",
37      "//drivers/hdf_core/adapter/uhdf2/include/hdi",
38      "//drivers/hdf_core/adapter/uhdf2/shared/include",
39      "//third_party/bounds_checking_function/include",
40      "//drivers/peripheral/audio/test/systemtest/common/hdi_common/include",
41      "//third_party/googletest/googletest/include/gtest",
42    ]
43    deps = [
44      "//third_party/googletest:gmock_main",
45      "//third_party/googletest:gtest_main",
46    ]
47    external_deps = [
48      "c_utils:utils",
49      "hdf_core:libhdf_host",
50      "hdf_core:libhdf_ipc_adapter",
51      "hdf_core:libhdf_utils",
52      "hdf_core:libhdi",
53      "hiviewdfx_hilog_native:libhilog",
54    ]
55    defines = []
56    if (enable_audio_adm_passthrough) {
57      deps += [ "//drivers/peripheral/audio/hal/hdi_passthrough:hdi_audio" ]
58      defines += [ "AUDIO_ADM_SO" ]
59    }
60    if (enable_audio_adm_service) {
61      deps +=
62          [ "//drivers/peripheral/audio/hal/hdi_binder/proxy:hdi_audio_client" ]
63      defines += [ "AUDIO_ADM_SERVICE" ]
64    }
65  }
66}
67