• 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
18ohos_unittest("hdf_audio_proxy_adapter_test") {
19  module_out_path = "hdf/audio"
20  sources = [
21    "//drivers/peripheral/audio/test/unittest/hdi/client/adapter/src/audio_proxy_adapter_test.cpp",
22    "//drivers/peripheral/audio/test/unittest/hdi/client/common/src/audio_proxy_common_fun_test.cpp",
23  ]
24
25  include_dirs = [
26    "//drivers/peripheral/audio/test/unittest/hdi/client/common/include",
27    "//drivers/peripheral/audio/interfaces/include",
28    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
29    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
30    "//drivers/peripheral/audio/hal/hdi_binder/server/include",
31    "//drivers/hdf_core/adapter/uhdf2/include/hdi",
32    "//drivers/hdf_core/adapter/uhdf2/shared/include",
33    "//third_party/googletest/googletest/include/gtest",
34  ]
35
36  deps = [
37    "//drivers/peripheral/audio/hal/hdi_binder/proxy:hdi_audio_client",
38    "//drivers/peripheral/audio/hal/hdi_passthrough:hdi_audio",
39    "//drivers/peripheral/audio/hal/hdi_passthrough:hdi_audio_common",
40    "//third_party/googletest:gmock_main",
41    "//third_party/googletest:gtest_main",
42  ]
43  external_deps = [
44    "c_utils:utils",
45    "hdf_core:libhdf_utils",
46  ]
47}
48