• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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("../../../windowmanager_aafwk.gni")
16
17module_out_path = "window_manager/dms"
18
19group("systemtest") {
20  testonly = true
21
22  deps = [
23    ":dms_display_change_test",
24    ":dms_display_manager_test",
25    ":dms_display_minimal_test",
26    ":dms_display_power_test",
27    ":dms_private_window_test",
28    ":dms_screen_manager_test",
29    ":dms_screenshot_test",
30  ]
31}
32
33ohos_systemtest("dms_private_window_test") {
34  module_out_path = module_out_path
35
36  sources = [ "private_window_test.cpp" ]
37
38  deps = [ ":dms_systemtest_common" ]
39
40  external_deps = [
41    "c_utils:utils",
42    "hilog:libhilog",
43  ]
44}
45
46ohos_systemtest("dms_display_minimal_test") {
47  module_out_path = module_out_path
48
49  sources = [ "display_minimal_test.cpp" ]
50
51  deps = [ ":dms_systemtest_common" ]
52
53  external_deps = [
54    "c_utils:utils",
55    "hilog:libhilog",
56  ]
57}
58
59ohos_systemtest("dms_display_manager_test") {
60  module_out_path = module_out_path
61
62  sources = [ "display_manager_test.cpp" ]
63
64  deps = [ ":dms_systemtest_common" ]
65
66  external_deps = [
67    "c_utils:utils",
68    "hilog:libhilog",
69  ]
70}
71
72ohos_systemtest("dms_display_power_test") {
73  module_out_path = module_out_path
74
75  sources = [ "display_power_test.cpp" ]
76
77  deps = [ ":dms_systemtest_common" ]
78
79  external_deps = [
80    "c_utils:utils",
81    "hilog:libhilog",
82  ]
83}
84
85ohos_systemtest("dms_display_change_test") {
86  module_out_path = module_out_path
87
88  sources = [ "display_change_test.cpp" ]
89
90  deps = [ ":dms_systemtest_common" ]
91
92  external_deps = [
93    "c_utils:utils",
94    "hilog:libhilog",
95  ]
96}
97
98ohos_systemtest("dms_screenshot_test") {
99  module_out_path = module_out_path
100
101  sources = [ "screenshot_test.cpp" ]
102
103  deps = [ ":dms_systemtest_common" ]
104
105  external_deps = [
106    "c_utils:utils",
107    "hilog:libhilog",
108  ]
109}
110
111ohos_systemtest("dms_screen_manager_test") {
112  module_out_path = module_out_path
113
114  sources = [ "screen_manager_test.cpp" ]
115
116  deps = [ ":dms_systemtest_common" ]
117
118  external_deps = [
119    "c_utils:utils",
120    "hilog:libhilog",
121    "init:libbegetutil",
122  ]
123}
124
125ohos_systemtest("dms_screen_gamut_test") {
126  module_out_path = module_out_path
127
128  sources = [ "screen_gamut_test.cpp" ]
129
130  deps = [ ":dms_systemtest_common" ]
131
132  external_deps = [
133    "c_utils:utils",
134    "hilog:libhilog",
135  ]
136}
137
138## Build dms_systemtest_common.a {{{
139config("dms_systemtest_common_public_config") {
140  include_dirs = [
141    "../../../dm/include",
142    "../../../dmserver/include",
143    "../../../interfaces/innerkits/dm",
144    "../../../interfaces/innerkits/wm",
145    "../../common/utils/include",
146    "../../../utils/include",
147
148    # RSSurface
149    "//foundation/graphic/graphic_2d/interfaces/inner_api/surface",
150    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client",
151  ]
152}
153
154ohos_static_library("dms_systemtest_common") {
155  visibility = [ ":*" ]
156  testonly = true
157
158  sources = [ "display_test_utils.cpp" ]
159
160  public_configs = [
161    ":dms_systemtest_common_public_config",
162    "../../../resources/config/build:coverage_flags",
163    "../../../resources/config/build:testcase_flags",
164  ]
165
166  public_deps = [
167    "${window_base_path}/dm:libdm",
168    "${window_base_path}/utils:libwmutil",
169    "${window_base_path}/wm:libwm",
170    "../../../dmserver:libdms",
171    "../../common/utils:libtestutil",
172    "//commonlibrary/c_utils/base:utils",
173    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
174    "//foundation/multimodalinput/input/frameworks/proxy:libmmi-client",
175    "//third_party/googletest:gmock",
176    "//third_party/googletest:gtest_main",
177  ]
178
179  external_deps = [
180    "access_token:libaccesstoken_sdk",
181    "access_token:libnativetoken",
182    "access_token:libtoken_setproc",
183    "c_utils:utils",
184    "hilog:libhilog",
185    "ipc:ipc_single",
186  ]
187  subsystem_name = "window"
188  part_name = "window_manager"
189}
190## Build dms_systemtest_common.a }}}
191