• 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")
15
16module_out_path = "graphic_2d/utils/buffer_handle"
17
18group("unittest") {
19  testonly = true
20  deps = [ ":BufferHandleTest" ]
21}
22
23## UnitTest buffer_handle_test {{{
24ohos_unittest("BufferHandleTest") {
25  module_out_path = module_out_path
26  sources = [ "buffer_handle_test.cpp" ]
27  deps = [
28    ":buffer_handle_test_common",
29    "../../../../../../communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
30  ]
31  external_deps = [
32    "c_utils:utils",
33    "graphic_2d:buffer_handle",
34    "hilog:libhilog",
35  ]
36}
37
38## Build buffer_handle_test_common.a {{{
39config("buffer_handle_test_config") {
40  cflags = [
41    "-Wall",
42    "-Werror",
43    "-g3",
44    "-Dprivate=public",
45    "-Dprotected=public",
46  ]
47}
48
49## UnitTest buffer_handle_test }}}
50
51ohos_static_library("buffer_handle_test_common") {
52  visibility = [ ":*" ]
53  testonly = true
54  public_configs = [ ":buffer_handle_test_config" ]
55
56  subsystem_name = "graphic"
57  part_name = "graphic_2d"
58}
59## Build buffer_handle_test_common.a }}}
60