• 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")
16
17module_output_path = "multimedia_audio_framework/audio_policy"
18
19ohos_unittest("audio_policy_unit_test") {
20  module_out_path = module_output_path
21  include_dirs = [
22    "./include",
23    "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include",
24    "//foundation/multimedia/audio_framework/services/audio_policy/client/include",
25    "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiomanager/include",
26    "//foundation/multimedia/audio_framework/frameworks/native/audiostream/include",
27    "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocapturer/include",
28    "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiorenderer/include",
29    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
30  ]
31
32  cflags = [
33    "-Wall",
34    "-Werror",
35  ]
36  external_deps = [
37    "ability_base:want",
38    "access_token:libaccesstoken_sdk",
39    "access_token:libtoken_setproc",
40    "bundle_framework:appexecfwk_base",
41    "bundle_framework:appexecfwk_core",
42    "c_utils:utils",
43    "hiviewdfx_hilog_native:libhilog",
44    "ipc:ipc_core",
45    "safwk:system_ability_fwk",
46    "samgr:samgr_proxy",
47  ]
48  sources = [ "src/audio_policy_unit_test.cpp" ]
49  deps = [
50    "//foundation/multimedia/audio_framework/services/audio_policy:audio_policy_client",
51    "//foundation/multimedia/audio_framework/services/audio_policy:audio_policy_service",
52    "//foundation/multimedia/audio_framework/services/audio_service:audio_client",
53  ]
54}
55