• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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("//foundation/multimedia/player_framework/config.gni")
16import("./../../../multimedia_player_framework_aafwk.gni")
17
18module_output_path = "player_framework/player_framework/soundpool"
19
20ohos_unittest("soundpool_cachebuffer_unit_test") {
21  module_out_path = module_output_path
22  include_dirs = [
23    "./include",
24    "${multimedia_player_framework_path}/frameworks/native/soundpool",
25    "${multimedia_player_framework_path}/services/services/engine_intf",
26    "${multimedia_player_framework_path}/test/unittest/common/include",
27    "${multimedia_player_framework_path}/interfaces/inner_api/native/soundpool/include",
28  ]
29
30  cflags = [
31    "-Wall",
32    "-Werror",
33    "-Dprivate=public",
34    "-Dprotected=public",
35  ]
36
37  if (player_framework_support_jssoundpool) {
38    sources = [
39      "src/cachebuffer_mock.cpp",
40      "src/cachebuffer_unit_test.cpp",
41    ]
42  }
43
44  deps = [
45    "${multimedia_player_framework_path}/frameworks/native/soundpool:soundpool_client",
46    "${multimedia_player_framework_path}/interfaces/inner_api/native:media_client",
47  ]
48
49  external_deps = [
50    "ability_base:want",
51    "ability_base:zuri",
52    "ability_runtime:ability_manager",
53    "ability_runtime:abilitykit_native",
54    "audio_framework:audio_client",
55    "audio_framework:audio_renderer",
56    "bundle_framework:appexecfwk_base",
57    "c_utils:utils",
58    "ffrt:libffrt",
59    "graphic_surface:surface",
60    "hicollie:libhicollie",
61    "hilog:libhilog",
62    "hisysevent:libhisysevent",
63    "hitrace:hitrace_meter",
64    "init:libbegetutil",
65    "ipc:ipc_core",
66    "qos_manager:qos",
67  ]
68
69  if (player_framework_support_drm) {
70    external_deps += [ "drm_framework:drm_framework" ]
71  }
72
73  resource_config_file = "${multimedia_player_framework_path}/test/unittest/resources/ohos_test.xml"
74}
75