• 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  cflags = [
21    "-Wall",
22    "-Werror",
23    "-g3",
24    "-Dprivate=public",
25    "-Dprotected=public",
26  ]
27
28  if (is_ohos && is_clang && (target_cpu == "arm" || target_cpu == "arm64")) {
29    cflags += [ "-fwhole-program-vtables" ]
30  }
31
32  sources = [
33    "hgm_frame_rate_manager_test.cpp",
34    "hgm_task_handle_thread_test.cpp",
35    "hgm_vsync_generator_controller_test.cpp",
36    "hgm_xml_parser_test.cpp",
37    "hyper_graphic_manager_test.cpp",
38  ]
39
40  include_dirs = [
41    "$graphic_2d_root/rosen/modules/hyper_graphic_manager/core/frame_rate_manager",
42    "$graphic_2d_root/rosen/modules/render_service_base/include",
43  ]
44
45  deps = [
46    "$graphic_2d_root/rosen/modules/hyper_graphic_manager:libhyper_graphic_manager",
47    "$graphic_2d_root/rosen/modules/render_service_base:render_service_base_src",
48    "$graphic_2d_root/utils/test_header:test_header",
49  ]
50
51  external_deps = [
52    "c_utils:utils",
53    "eventhandler:libeventhandler",
54    "hilog:libhilog",
55    "hitrace:hitrace_meter",
56    "init:libbeget_proxy",
57    "init:libbegetutil",
58  ]
59
60  part_name = "graphic_2d"
61  subsystem_name = "graphic"
62}
63
64group("unittest") {
65  testonly = true
66
67  deps = [ ":hyper_graphic_manager_test" ]
68}
69