• 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/test.gni")
15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
16import("//drivers/peripheral/audio/audio.gni")
17
18module_output_path = "drivers_peripheral_audio/audio"
19ohos_systemtest("hdf_audio_usb_adapter_test") {
20  module_out_path = module_output_path
21  sources = [
22    "../../common/hdi_common/src/audio_hdi_common.cpp",
23    "src/audio_usb_adapter_test.cpp",
24    "src/audio_usb_caputer_test.cpp",
25    "src/audio_usb_manager_test.cpp",
26    "src/audio_usb_render_test.cpp",
27  ]
28
29  include_dirs = [
30    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
31    "//drivers/peripheral/audio/interfaces/include",
32    "//drivers/hdf_core/adapter/uhdf2/include/hdi",
33    "//drivers/hdf_core/adapter/uhdf2/shared/include",
34    "//drivers/hdf_core/framework/include/core",
35    "//drivers/hdf_core/framework/include/utils",
36    "//drivers/hdf_core/framework/include/osal",
37    "//drivers/hdf_core/framework/include",
38    "//third_party/bounds_checking_function/include",
39    "//drivers/hdf_core/framework/utils/include",
40    "//drivers/hdf_core/adapter/uhdf2/osal/include",
41    "//drivers/peripheral/audio/test/systemtest/common/hdi_common/include",
42    "//third_party/googletest/googletest/include/gtest",
43    "//drivers/peripheral/audio/test/systemtest/audio_adapter/audio_usb/include",
44  ]
45  deps = [
46    "//third_party/googletest:gmock_main",
47    "//third_party/googletest:gtest_main",
48  ]
49  defines = []
50  if (enable_audio_adm_passthrough) {
51    deps += [ "//drivers/peripheral/audio/hal/hdi_passthrough:hdi_audio" ]
52    defines += [ "AUDIO_ADM_SO" ]
53  }
54  if (enable_audio_adm_service) {
55    deps +=
56        [ "//drivers/peripheral/audio/hal/hdi_binder/proxy:hdi_audio_client" ]
57    defines += [ "AUDIO_ADM_SERVICE" ]
58  }
59}
60