• 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/test.gni")
15import("//foundation/multimedia/player_framework/config.gni")
16
17module_output_path = "player_framework/player_framework/service_dump_manager"
18
19#################################################################################################################osal
20service_dump_manager_unittest_cflags = [
21  "-std=c++17",
22  "-fno-rtti",
23  "-fexceptions",
24  "-Wall",
25  "-fno-common",
26  "-fstack-protector-strong",
27  "-Wshadow",
28  "-FPIC",
29  "-FS",
30  "-O2",
31  "-D_FORTIFY_SOURCE=2",
32  "-fvisibility=hidden",
33  "-Wformat=2",
34  "-Wdate-time",
35  "-Wextra",
36  "-Wimplicit-fallthrough",
37  "-Wsign-compare",
38  "-Dprivate=public",
39  "-Dprotected=public",
40]
41
42#################################################################################################################osal
43ohos_unittest("service_dump_manager_unittest") {
44  module_out_path = module_output_path
45
46  sanitize = {
47    cfi = true
48    cfi_cross_dso = true
49    debug = false
50  }
51
52  include_dirs = [
53    "./",
54    "$MEDIA_PLAYER_ROOT_DIR/interfaces/inner_api/native",
55    "$MEDIA_PLAYER_ROOT_DIR/services/dfx/",
56  ]
57
58  sources = [
59    "$MEDIA_PLAYER_ROOT_DIR/services/dfx/service_dump_manager.cpp",
60    "./service_dump_manager_unittest.cpp",
61  ]
62
63  cflags = service_dump_manager_unittest_cflags
64
65  deps = [
66
67  ]
68
69  external_deps = [
70    "c_utils:utils",
71    "graphic_surface:surface",
72    "graphic_surface:sync_fence",
73    "googletest:gmock",
74    "googletest:gtest",
75    "hilog:libhilog",
76    "ipc:ipc_core",
77    "media_foundation:media_foundation",
78  ]
79}