• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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/ohos.gni")
15import("//build/test.gni")
16import("../../../../../accessibility.gni")
17import("../../../../../appgallery.gni")
18import("../../../../../av_session.gni")
19import("../../../../../bluetooth_part.gni")
20import("../../../../../config.gni")
21
22module_output_path = "audio_framework/audio_framework_policy/service/audio_policy"
23
24ohos_unittest("audio_device_common_unit_next_test") {
25  module_out_path = module_output_path
26
27  include_dirs = [
28    "../../../../audio_policy/server/include/service/service",
29    "./test/audio_device_common_unit_test/include",
30  ]
31
32  use_exceptions = true
33
34  cflags = [
35    "-Wall",
36    "-Werror",
37    "-Wno-macro-redefined",
38    "-fno-access-control",
39  ]
40
41  external_deps = [
42    "ability_base:session_info",
43    "ability_base:want",
44    "ability_base:zuri",
45    "ability_runtime:ability_connect_callback_stub",
46    "ability_runtime:ability_context_native",
47    "ability_runtime:ability_manager",
48    "ability_runtime:app_context",
49    "ability_runtime:dataobs_manager",
50    "ability_runtime:extension_manager",
51    "access_token:libaccesstoken_sdk",
52    "access_token:libprivacy_sdk",
53    "access_token:libtokenid_sdk",
54    "access_token:libtokensetproc_shared",
55    "bluetooth:btframework",
56    "bounds_checking_function:libsec_shared",
57    "bundle_framework:appexecfwk_base",
58    "bundle_framework:appexecfwk_core",
59    "c_utils:utils",
60    "data_share:datashare_common",
61    "data_share:datashare_consumer",
62    "drivers_interface_audio:libaudio_proxy_5.0",
63    "eventhandler:libeventhandler",
64    "googletest:gmock",
65    "hdf_core:libhdf_host",
66    "hdf_core:libhdf_ipc_adapter",
67    "hdf_core:libhdf_utils",
68    "hdf_core:libhdi",
69    "hdf_core:libpub_utils",
70    "hilog:libhilog",
71    "hisysevent:libhisysevent",
72    "init:libbegetutil",
73    "ipc:ipc_single",
74    "kv_store:distributeddata_inner",
75    "media_foundation:media_monitor_client",
76    "media_foundation:media_monitor_common",
77    "os_account:os_account_innerkits",
78    "power_manager:power_setting",
79    "power_manager:powermgr_client",
80    "safwk:system_ability_fwk",
81    "samgr:samgr_proxy",
82  ]
83
84  sources = [
85    "./test/audio_device_common_unit_test/src/audio_device_common_unit_next_test.cpp",
86  ]
87
88  deps = [
89    "../../../../../services/audio_service/idl:audio_framework_interface",
90    "../../../../audio_policy:audio_policy_service_static",
91  ]
92}