• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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")
16
17module_output_path = "player_framework/player"
18
19ohos_unittest("player_server_mem_test") {
20  module_out_path = module_output_path
21  include_dirs = [
22    "./",
23    "$MEDIA_PLAYER_ROOT_DIR/frameworks/js/avplayer",
24    "$MEDIA_PLAYER_ROOT_DIR/frameworks/js/common",
25    "$MEDIA_PLAYER_ROOT_DIR/interfaces/inner_api/native",
26    "$MEDIA_PLAYER_ROOT_DIR/services/engine/histreamer/player",
27    "$MEDIA_PLAYER_ROOT_DIR/services/include",
28    "$MEDIA_PLAYER_ROOT_DIR/services/services/common",
29    "$MEDIA_PLAYER_ROOT_DIR/services/services/engine_intf",
30    "$MEDIA_PLAYER_ROOT_DIR/services/services/media_data_source/ipc",
31    "$MEDIA_PLAYER_ROOT_DIR/services/services/player/client",
32    "$MEDIA_PLAYER_ROOT_DIR/services/services/player/ipc",
33    "$MEDIA_PLAYER_ROOT_DIR/services/services/player/player_mem_manage",
34    "$MEDIA_PLAYER_ROOT_DIR/services/services/player/server/",
35    "$MEDIA_PLAYER_ROOT_DIR/services/services/player/subscriber",
36  ]
37
38  cflags = [
39    "-Wall",
40    "-Werror",
41    "-Dprivate=public",
42    "-Dprotected=public",
43  ]
44  sanitize = {
45    cfi = true
46    cfi_cross_dso = true
47  }
48
49  external_deps = [
50    "access_token:libaccesstoken_sdk",
51    "access_token:libnativetoken_shared",
52    "access_token:libprivacy_sdk",
53    "access_token:libtokensetproc_shared",
54    "audio_framework:audio_client",
55    "av_codec:av_codec_client",
56    "c_utils:utils",
57    "hdf_core:libhdi",
58    "hicollie:libhicollie",
59    "hilog:libhilog",
60    "hisysevent:libhisysevent",
61    "hitrace:hitrace_meter",
62    "hitrace:libhitracechain",
63    "init:libbegetutil",
64    "ipc:ipc_single",
65    "media_foundation:media_foundation",
66    "memmgr:memmgrclient",
67    "napi:ace_napi",
68    "os_account:os_account_innerkits",
69    "qos_manager:concurrent_task_client",
70    "qos_manager:qos",
71    "resource_schedule_service:ressched_client",
72    "safwk:system_ability_fwk",
73  ]
74
75  sources = [
76    "$MEDIA_PLAYER_ROOT_DIR/services/services/player/player_mem_manage/player_server_mem.cpp",
77    "player_server_mem_unit_test.cpp",
78  ]
79
80  deps = [
81    "$MEDIA_PLAYER_ROOT_DIR/interfaces/inner_api/native:media_client",
82    "$MEDIA_PLAYER_ROOT_DIR/services/engine/histreamer/player:media_engine_histreamer_player",
83    "$MEDIA_PLAYER_ROOT_DIR/services/services:media_service",
84    "$MEDIA_PLAYER_ROOT_DIR/services/utils:media_service_utils",
85  ]
86
87  resource_config_file =
88      "$MEDIA_PLAYER_ROOT_DIR/test/unittest/resources/ohos_test.xml"
89}
90