• 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
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/graphic/graphic_2d/graphic_config.gni")
16
17ohos_unittest("hyper_graphic_manager_test") {
18  module_out_path = "graphic_2d/rosen/modules/hyper_graphic_manager"
19
20  sources = [ "hyper_graphic_manager_test.cpp" ]
21
22  deps = [
23    "$graphic_2d_root/rosen/modules/hyper_graphic_manager:libhyper_graphic_manager",
24    "$graphic_2d_root/utils/test_header:test_header",
25  ]
26
27  external_deps = [
28    "c_utils:utils",
29    "eventhandler:libeventhandler",
30    "hilog:libhilog",
31    "hitrace:hitrace_meter",
32    "init:libbeget_proxy",
33    "init:libbegetutil",
34  ]
35
36  part_name = "graphic_2d"
37  subsystem_name = "graphic"
38}
39
40ohos_unittest("hgm_xml_parser_test") {
41  module_out_path = "graphic_2d/rosen/modules/hyper_graphic_manager"
42
43  sources = [ "hgm_xml_parser_test.cpp" ]
44
45  deps = [
46    "$graphic_2d_root/rosen/modules/hyper_graphic_manager:libhyper_graphic_manager",
47    "$graphic_2d_root/utils/test_header:test_header",
48  ]
49
50  external_deps = [
51    "c_utils:utils",
52    "eventhandler:libeventhandler",
53    "hilog:libhilog",
54    "hitrace:hitrace_meter",
55    "init:libbeget_proxy",
56    "init:libbegetutil",
57  ]
58
59  part_name = "graphic_2d"
60  subsystem_name = "graphic"
61}
62
63group("unittest") {
64  testonly = true
65
66  deps = [
67    ":hgm_xml_parser_test",
68    ":hyper_graphic_manager_test",
69  ]
70}
71