• 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/media_foundation/config.gni")
16
17module_output_path = "media_foundation/media_foundation/unittest"
18
19#################################################################################################################osal
20avbuffer_queue_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("avbuffer_queue_supplement_unit_test") {
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    "../../../src/buffer/avbuffer_queue/include/",
55    "../../../interface/innerapi/",
56    "./mock",
57  ]
58
59  sources = [ "./avbuffer_queue_supplement_unit_test.cpp" ]
60
61  cflags = avbuffer_queue_unittest_cflags
62
63  deps = [
64    "$histreamer_root_dir/src:media_foundation",
65    "../common:media_foundation_inner_unit_test",
66  ]
67
68  external_deps = [
69    "c_utils:utils",
70    "graphic_surface:surface",
71    "graphic_surface:sync_fence",
72    "googletest:gmock",
73    "googletest:gtest",
74    "hilog:libhilog",
75    "ipc:ipc_core",
76    "memory_utils:libdmabufheap",
77  ]
78}