• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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/graphic/graphic_2d/graphic_config.gni")
16
17ohos_unittest("frame_analyzer_test") {
18  module_out_path = "graphic_2d/graphic_2d/frame_analyzer"
19
20  include_dirs = [ "$graphic_2d_root/rosen/modules/frame_analyzer/src" ]
21
22  sources = [
23    "frame_collector_test.cpp",
24    "frame_painter_test.cpp",
25    "frame_saver_test.cpp",
26  ]
27
28  deps = [
29    "$graphic_2d_root/rosen/modules/frame_analyzer:libframe_analyzer",
30    "$graphic_2d_root/utils/test_header:test_header",
31  ]
32  external_deps = [
33    "bounds_checking_function:libsec_shared",
34    "hilog:libhilog",
35    "skia:skia_canvaskit",
36  ]
37
38  if (defined(use_rosen_drawing) && use_rosen_drawing) {
39    defines = [ "USE_ROSEN_DRAWING" ]
40    deps += [ "$graphic_2d_root/rosen/modules/2d_graphics:2d_graphics" ]
41  }
42
43  cflags = [
44    "-Wall",
45    "-Werror",
46    "-g3",
47    "-Dprivate=public",
48    "-Dprotected=public",
49  ]
50
51  part_name = "graphic_2d"
52  subsystem_name = "graphic"
53}
54
55group("unittest") {
56  testonly = true
57
58  deps = [ ":frame_analyzer_test" ]
59}
60