• 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
22group("audio_policy_server_common_unittest_packages") {
23  testonly = true
24  deps = [
25    ":audio_group_handle_unit_test",
26  ]
27}
28
29module_output_path = "audio_framework/audio_framework_policy/audio_policy_server_common"
30
31ohos_unittest("audio_group_handle_unit_test") {
32  module_out_path = module_output_path
33  include_dirs = [
34    "../../include",
35    "./unittest/audio_group_handle_unit_test/include",
36  ]
37
38  cflags = [
39    "-Wall",
40    "-Werror",
41    "-Wno-macro-redefined",
42    "-fno-access-control",
43  ]
44
45  external_deps = [
46    "ability_base:session_info",
47    "ability_base:want",
48    "ability_base:zuri",
49    "ability_runtime:ability_connect_callback_stub",
50    "ability_runtime:ability_context_native",
51    "ability_runtime:ability_manager",
52    "ability_runtime:app_context",
53    "ability_runtime:dataobs_manager",
54    "ability_runtime:extension_manager",
55    "access_token:libaccesstoken_sdk",
56    "access_token:libprivacy_sdk",
57    "access_token:libtokenid_sdk",
58    "access_token:libtokensetproc_shared",
59    "bounds_checking_function:libsec_shared",
60    "bundle_framework:appexecfwk_base",
61    "bundle_framework:appexecfwk_core",
62    "c_utils:utils",
63    "googletest:gmock",
64    "data_share:datashare_common",
65    "data_share:datashare_consumer",
66    "drivers_interface_audio:libaudio_proxy_5.0",
67    "eventhandler:libeventhandler",
68    "hdf_core:libhdf_host",
69    "hdf_core:libhdf_ipc_adapter",
70    "hdf_core:libhdf_utils",
71    "hdf_core:libhdi",
72    "hdf_core:libpub_utils",
73    "hilog:libhilog",
74    "hisysevent:libhisysevent",
75    "init:libbegetutil",
76    "ipc:ipc_single",
77    "kv_store:distributeddata_inner",
78    "media_foundation:media_monitor_client",
79    "media_foundation:media_monitor_common",
80    "os_account:os_account_innerkits",
81    "power_manager:power_setting",
82    "power_manager:powermgr_client",
83    "pulseaudio:pulse",
84    "safwk:system_ability_fwk",
85    "samgr:samgr_proxy",
86  ]
87
88  sources = [
89    "./unittest/audio_group_handle_unit_test/src/audio_group_handle_unit_test.cpp",
90  ]
91
92  deps = [
93    "../../../../audio_service/idl:audio_framework_interface",
94    "../../../../audio_policy:audio_policy_service_static",
95  ]
96}