• 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("//foundation/window/window_manager/windowmanager_aafwk.gni")
16
17module_out_path = "window_manager/wms"
18
19group("systemtest") {
20  testonly = true
21
22  deps = [
23    ":wms_window_animation_transition_test",
24    ":wms_window_app_floating_window_test",
25    ":wms_window_dialogwindow_test",
26    ":wms_window_display_zoom_test",
27    ":wms_window_drag_test",
28    ":wms_window_effect_test",
29    ":wms_window_focus_test",
30    ":wms_window_gamut_test",
31    ":wms_window_immersive_test",
32    ":wms_window_input_method_test",
33    ":wms_window_input_test",
34    ":wms_window_layout_test",
35    ":wms_window_mode_support_info_test",
36    ":wms_window_move_drag_test",
37    ":wms_window_multi_ability_test",
38    ":wms_window_occupied_area_change_test",
39    ":wms_window_rotation_test",
40    ":wms_window_split_immersive_test",
41    ":wms_window_split_test",
42    ":wms_window_subwindow_test",
43    ":wms_window_systemsubwindow_test",
44    ":wms_window_touch_outside_test",
45    ":wms_window_visibility_info_test",
46  ]
47}
48
49ohos_systemtest("wms_window_layout_test") {
50  module_out_path = module_out_path
51
52  sources = [ "window_layout_test.cpp" ]
53
54  deps = [ ":wms_systemtest_common" ]
55}
56
57ohos_systemtest("wms_window_effect_test") {
58  module_out_path = module_out_path
59
60  sources = [ "window_effect_test.cpp" ]
61
62  deps = [ ":wms_systemtest_common" ]
63}
64
65ohos_systemtest("wms_window_multi_ability_test") {
66  module_out_path = module_out_path
67
68  sources = [ "window_multi_ability_test.cpp" ]
69
70  deps = [ ":wms_systemtest_common" ]
71}
72
73ohos_systemtest("wms_window_subwindow_test") {
74  module_out_path = module_out_path
75
76  sources = [ "window_subwindow_test.cpp" ]
77
78  deps = [ ":wms_systemtest_common" ]
79
80  external_deps = [ "bundle_framework:appexecfwk_base" ]
81}
82
83ohos_systemtest("wms_window_systemsubwindow_test") {
84  module_out_path = module_out_path
85
86  sources = [ "window_systemsubwindow_test.cpp" ]
87
88  deps = [ ":wms_systemtest_common" ]
89
90  external_deps = [ "bundle_framework:appexecfwk_base" ]
91}
92
93ohos_systemtest("wms_window_dialogwindow_test") {
94  module_out_path = module_out_path
95
96  sources = [ "window_dialogwindow_test.cpp" ]
97
98  deps = [ ":wms_systemtest_common" ]
99
100  external_deps = [ "bundle_framework:appexecfwk_base" ]
101}
102
103ohos_systemtest("wms_window_immersive_test") {
104  module_out_path = module_out_path
105
106  sources = [ "window_immersive_test.cpp" ]
107
108  deps = [ ":wms_systemtest_common" ]
109}
110
111ohos_systemtest("wms_window_focus_test") {
112  module_out_path = module_out_path
113
114  sources = [ "window_focus_test.cpp" ]
115
116  deps = [ ":wms_systemtest_common" ]
117}
118
119ohos_systemtest("wms_window_split_immersive_test") {
120  module_out_path = module_out_path
121
122  sources = [ "window_split_immersive_test.cpp" ]
123
124  deps = [ ":wms_systemtest_common" ]
125}
126
127ohos_systemtest("wms_window_split_test") {
128  module_out_path = module_out_path
129
130  sources = [ "window_split_test.cpp" ]
131
132  deps = [ ":wms_systemtest_common" ]
133}
134
135ohos_systemtest("wms_window_move_drag_test") {
136  module_out_path = module_out_path
137
138  sources = [ "window_move_drag_test.cpp" ]
139
140  deps = [ ":wms_systemtest_common" ]
141
142  external_deps = [ "bundle_framework:appexecfwk_base" ]
143}
144
145ohos_systemtest("wms_window_input_method_test") {
146  module_out_path = module_out_path
147
148  sources = [ "window_input_method_test.cpp" ]
149
150  deps = [ ":wms_systemtest_common" ]
151}
152
153ohos_systemtest("wms_window_gamut_test") {
154  module_out_path = module_out_path
155
156  sources = [ "window_gamut_test.cpp" ]
157
158  deps = [ ":wms_systemtest_common" ]
159}
160
161ohos_systemtest("wms_window_input_test") {
162  module_out_path = module_out_path
163
164  sources = [ "window_input_test.cpp" ]
165
166  deps = [ ":wms_systemtest_common" ]
167}
168
169ohos_systemtest("wms_window_visibility_info_test") {
170  module_out_path = module_out_path
171
172  sources = [ "window_visibility_info_test.cpp" ]
173
174  deps = [ ":wms_systemtest_common" ]
175}
176
177ohos_systemtest("wms_window_display_zoom_test") {
178  module_out_path = module_out_path
179
180  sources = [ "window_display_zoom_test.cpp" ]
181
182  deps = [ ":wms_systemtest_common" ]
183}
184
185ohos_systemtest("wms_window_drag_test") {
186  module_out_path = module_out_path
187
188  sources = [ "window_drag_test.cpp" ]
189
190  deps = [ ":wms_systemtest_common" ]
191}
192
193ohos_systemtest("wms_window_rotation_test") {
194  module_out_path = module_out_path
195
196  sources = [ "window_rotation_test.cpp" ]
197
198  deps = [ ":wms_systemtest_common" ]
199}
200
201ohos_systemtest("wms_window_occupied_area_change_test") {
202  module_out_path = module_out_path
203
204  sources = [ "window_occupied_area_change_test.cpp" ]
205
206  deps = [ ":wms_systemtest_common" ]
207}
208
209ohos_systemtest("wms_window_touch_outside_test") {
210  module_out_path = module_out_path
211
212  sources = [ "window_touch_outside_test.cpp" ]
213
214  deps = [ ":wms_systemtest_common" ]
215}
216
217ohos_systemtest("wms_window_mode_support_info_test") {
218  module_out_path = module_out_path
219
220  sources = [ "window_mode_support_info_test.cpp" ]
221
222  deps = [ ":wms_systemtest_common" ]
223}
224
225ohos_systemtest("wms_window_app_floating_window_test") {
226  module_out_path = module_out_path
227
228  sources = [ "window_app_floating_window_test.cpp" ]
229
230  deps = [ ":wms_systemtest_common" ]
231}
232
233ohos_systemtest("wms_window_animation_transition_test") {
234  module_out_path = module_out_path
235
236  sources = [ "window_animation_transition_test.cpp" ]
237
238  deps = [ ":wms_systemtest_common" ]
239}
240
241## Build wms_systemtest_common.a {{{
242config("wms_systemtest_common_public_config") {
243  include_dirs = [
244    "//foundation/window/window_manager/wm/include",
245    "//foundation/window/window_manager/wmserver/include",
246    "//foundation/window/window_manager/interfaces/innerkits/wm",
247    "//foundation/window/window_manager/utils/include",
248    "//commonlibrary/c_utils/base/include",
249    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
250    "//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
251    "//third_party/googletest/googlemock/include",
252    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include",
253
254    # for abilityContext
255    "${ability_runtime_path}/interfaces/kits/native/ability/ability_runtime",
256    "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/context",
257    "//base/global/resource_management/interfaces/inner_api/include",
258    "//third_party/node/deps/icu-small/source/common",
259    "${ability_runtime_inner_api_path}/ability_manager/include",
260
261    # abilityContext end
262  ]
263}
264
265ohos_static_library("wms_systemtest_common") {
266  visibility = [ ":*" ]
267  testonly = true
268
269  sources = [ "window_test_utils.cpp" ]
270
271  public_configs = [
272    ":wms_systemtest_common_public_config",
273    "//foundation/window/window_manager/resources/config/build:coverage_flags",
274    "//foundation/window/window_manager/resources/config/build:testcase_flags",
275  ]
276
277  public_deps = [
278    "//base/powermgr/power_manager/interfaces/innerkits:powermgr_client",
279    "//foundation/arkui/ace_engine/interfaces/inner_api/ace:ace_uicontent",
280
281    # need delete it for abilitycontext
282    "${ability_runtime_inner_api_path}/ability_manager:ability_manager",
283    "//commonlibrary/c_utils/base:utils",
284    "//foundation/arkui/napi:ace_napi",
285    "//foundation/graphic/graphic_2d/rosen/modules/animation/window_animation:window_animation",
286    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
287    "//foundation/multimodalinput/input/frameworks/proxy:libmmi-client",
288    "//foundation/window/window_manager/dm:libdm",
289    "//foundation/window/window_manager/dmserver:libdms",
290    "//foundation/window/window_manager/utils:libwmutil",
291    "//foundation/window/window_manager/wm:libwm",
292    "//third_party/googletest:gmock",
293    "//third_party/googletest:gtest_main",
294  ]
295  external_deps = [
296    "ability_base:base",
297    "ability_base:want",
298    "ability_base:zuri",
299    "ability_runtime:ability_context_native",
300    "bundle_framework:appexecfwk_base",
301    "ipc:ipc_core",
302  ]
303}
304## Build wms_systemtest_common.a }}}
305