• 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/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_gesture_navigation_enabled_test",
32    ":wms_window_immersive_test",
33    ":wms_window_input_method_test",
34    ":wms_window_input_test",
35    ":wms_window_layout_test",
36    ":wms_window_mode_support_info_test",
37    ":wms_window_move_drag_test",
38    ":wms_window_multi_ability_test",
39    ":wms_window_occupied_area_change_test",
40    ":wms_window_raisetoapptop_test",
41    ":wms_window_rotation_test",
42    ":wms_window_split_immersive_test",
43    ":wms_window_split_test",
44    ":wms_window_subwindow_test",
45    ":wms_window_system_toast_window_test",
46    ":wms_window_systemsubwindow_test",
47    ":wms_window_touch_outside_test",
48    ":wms_window_visibility_info_test",
49    ":wms_window_water_mark_test",
50  ]
51}
52
53ohos_systemtest("wms_window_layout_test") {
54  module_out_path = module_out_path
55
56  sources = [ "window_layout_test.cpp" ]
57
58  deps = [ ":wms_systemtest_common" ]
59
60  external_deps = [
61    "c_utils:utils",
62    "hilog:libhilog",
63    "power_manager:powermgr_client",
64  ]
65}
66
67ohos_systemtest("wms_window_effect_test") {
68  module_out_path = module_out_path
69
70  sources = [ "window_effect_test.cpp" ]
71
72  deps = [ ":wms_systemtest_common" ]
73
74  external_deps = [
75    "c_utils:utils",
76    "hilog:libhilog",
77    "power_manager:powermgr_client",
78  ]
79}
80
81ohos_systemtest("wms_window_multi_ability_test") {
82  module_out_path = module_out_path
83
84  sources = [ "window_multi_ability_test.cpp" ]
85
86  deps = [ ":wms_systemtest_common" ]
87
88  external_deps = [
89    "c_utils:utils",
90    "hilog:libhilog",
91    "power_manager:powermgr_client",
92  ]
93}
94
95ohos_systemtest("wms_window_subwindow_test") {
96  module_out_path = module_out_path
97
98  sources = [ "window_subwindow_test.cpp" ]
99
100  deps = [ ":wms_systemtest_common" ]
101
102  external_deps = [
103    "bundle_framework:appexecfwk_base",
104    "c_utils:utils",
105    "hilog:libhilog",
106  ]
107}
108
109ohos_systemtest("wms_window_systemsubwindow_test") {
110  module_out_path = module_out_path
111
112  sources = [ "window_systemsubwindow_test.cpp" ]
113
114  deps = [ ":wms_systemtest_common" ]
115
116  external_deps = [
117    "bundle_framework:appexecfwk_base",
118    "c_utils:utils",
119    "hilog:libhilog",
120    "power_manager:powermgr_client",
121  ]
122}
123
124ohos_systemtest("wms_window_dialogwindow_test") {
125  module_out_path = module_out_path
126
127  sources = [ "window_dialogwindow_test.cpp" ]
128
129  deps = [ ":wms_systemtest_common" ]
130
131  external_deps = [
132    "bundle_framework:appexecfwk_base",
133    "c_utils:utils",
134    "common_event_service:cesfwk_innerkits",
135    "hilog:libhilog",
136  ]
137}
138
139ohos_systemtest("wms_window_immersive_test") {
140  module_out_path = module_out_path
141
142  sources = [ "window_immersive_test.cpp" ]
143
144  deps = [ ":wms_systemtest_common" ]
145
146  external_deps = [
147    "c_utils:utils",
148    "hilog:libhilog",
149    "power_manager:powermgr_client",
150  ]
151}
152
153ohos_systemtest("wms_window_focus_test") {
154  module_out_path = module_out_path
155
156  sources = [ "window_focus_test.cpp" ]
157
158  deps = [ ":wms_systemtest_common" ]
159
160  external_deps = [
161    "c_utils:utils",
162    "hilog:libhilog",
163    "power_manager:powermgr_client",
164  ]
165}
166
167ohos_systemtest("wms_window_split_immersive_test") {
168  module_out_path = module_out_path
169
170  sources = [ "window_split_immersive_test.cpp" ]
171
172  deps = [ ":wms_systemtest_common" ]
173
174  external_deps = [
175    "c_utils:utils",
176    "hilog:libhilog",
177    "power_manager:powermgr_client",
178  ]
179}
180
181ohos_systemtest("wms_window_split_test") {
182  module_out_path = module_out_path
183
184  sources = [ "window_split_test.cpp" ]
185
186  deps = [ ":wms_systemtest_common" ]
187
188  external_deps = [
189    "c_utils:utils",
190    "hilog:libhilog",
191    "power_manager:powermgr_client",
192  ]
193}
194
195ohos_systemtest("wms_window_move_drag_test") {
196  module_out_path = module_out_path
197
198  sources = [ "window_move_drag_test.cpp" ]
199
200  deps = [ ":wms_systemtest_common" ]
201
202  external_deps = [
203    "bundle_framework:appexecfwk_base",
204    "c_utils:utils",
205    "hilog:libhilog",
206    "power_manager:powermgr_client",
207  ]
208}
209
210ohos_systemtest("wms_window_input_method_test") {
211  module_out_path = module_out_path
212
213  sources = [ "window_input_method_test.cpp" ]
214
215  deps = [ ":wms_systemtest_common" ]
216
217  external_deps = [
218    "c_utils:utils",
219    "hilog:libhilog",
220    "power_manager:powermgr_client",
221  ]
222}
223
224ohos_systemtest("wms_window_gamut_test") {
225  module_out_path = module_out_path
226
227  sources = [ "window_gamut_test.cpp" ]
228
229  deps = [ ":wms_systemtest_common" ]
230
231  external_deps = [
232    "c_utils:utils",
233    "hilog:libhilog",
234    "power_manager:powermgr_client",
235  ]
236}
237
238ohos_systemtest("wms_window_gesture_navigation_enabled_test") {
239  module_out_path = module_out_path
240
241  sources = [ "window_gesture_navigation_enabled_test.cpp" ]
242
243  deps = [ ":wms_systemtest_common" ]
244
245  external_deps = [
246    "c_utils:utils",
247    "hilog:libhilog",
248  ]
249}
250
251ohos_systemtest("wms_window_input_test") {
252  module_out_path = module_out_path
253
254  sources = [ "window_input_test.cpp" ]
255
256  deps = [ ":wms_systemtest_common" ]
257
258  external_deps = [
259    "c_utils:utils",
260    "hilog:libhilog",
261    "power_manager:powermgr_client",
262  ]
263}
264
265ohos_systemtest("wms_window_visibility_info_test") {
266  module_out_path = module_out_path
267
268  sources = [ "window_visibility_info_test.cpp" ]
269
270  deps = [ ":wms_systemtest_common" ]
271
272  external_deps = [
273    "c_utils:utils",
274    "hilog:libhilog",
275    "power_manager:powermgr_client",
276  ]
277}
278
279ohos_systemtest("wms_window_display_zoom_test") {
280  module_out_path = module_out_path
281
282  sources = [ "window_display_zoom_test.cpp" ]
283
284  deps = [ ":wms_systemtest_common" ]
285
286  external_deps = [
287    "c_utils:utils",
288    "hilog:libhilog",
289    "power_manager:powermgr_client",
290  ]
291}
292
293ohos_systemtest("wms_window_drag_test") {
294  module_out_path = module_out_path
295
296  sources = [ "window_drag_test.cpp" ]
297
298  deps = [ ":wms_systemtest_common" ]
299
300  external_deps = [
301    "c_utils:utils",
302    "hilog:libhilog",
303    "power_manager:powermgr_client",
304  ]
305}
306
307ohos_systemtest("wms_window_raisetoapptop_test") {
308  module_out_path = module_out_path
309
310  sources = [ "window_raisetoapptop_test.cpp" ]
311
312  deps = [ ":wms_systemtest_common" ]
313
314  external_deps = [
315    "c_utils:utils",
316    "hilog:libhilog",
317    "power_manager:powermgr_client",
318  ]
319}
320
321ohos_systemtest("wms_window_rotation_test") {
322  module_out_path = module_out_path
323
324  sources = [ "window_rotation_test.cpp" ]
325
326  deps = [ ":wms_systemtest_common" ]
327
328  external_deps = [
329    "c_utils:utils",
330    "hilog:libhilog",
331    "power_manager:powermgr_client",
332  ]
333}
334
335ohos_systemtest("wms_window_occupied_area_change_test") {
336  module_out_path = module_out_path
337
338  sources = [ "window_occupied_area_change_test.cpp" ]
339
340  deps = [ ":wms_systemtest_common" ]
341
342  external_deps = [
343    "c_utils:utils",
344    "hilog:libhilog",
345    "power_manager:powermgr_client",
346  ]
347}
348
349ohos_systemtest("wms_window_touch_outside_test") {
350  module_out_path = module_out_path
351
352  sources = [ "window_touch_outside_test.cpp" ]
353
354  deps = [ ":wms_systemtest_common" ]
355
356  external_deps = [
357    "c_utils:utils",
358    "hilog:libhilog",
359    "power_manager:powermgr_client",
360  ]
361}
362
363ohos_systemtest("wms_window_mode_support_info_test") {
364  module_out_path = module_out_path
365
366  sources = [ "window_mode_support_info_test.cpp" ]
367
368  deps = [ ":wms_systemtest_common" ]
369
370  external_deps = [
371    "c_utils:utils",
372    "hilog:libhilog",
373    "power_manager:powermgr_client",
374  ]
375}
376
377ohos_systemtest("wms_window_app_floating_window_test") {
378  module_out_path = module_out_path
379
380  sources = [ "window_app_floating_window_test.cpp" ]
381
382  deps = [ ":wms_systemtest_common" ]
383
384  external_deps = [
385    "c_utils:utils",
386    "common_event_service:cesfwk_innerkits",
387    "hilog:libhilog",
388    "power_manager:powermgr_client",
389  ]
390}
391
392ohos_systemtest("wms_window_system_toast_window_test") {
393  module_out_path = module_out_path
394
395  sources = [ "window_system_toast_test.cpp" ]
396
397  deps = [ ":wms_systemtest_common" ]
398
399  external_deps = [
400    "c_utils:utils",
401    "common_event_service:cesfwk_innerkits",
402    "hilog:libhilog",
403    "power_manager:powermgr_client",
404  ]
405}
406
407ohos_systemtest("wms_window_animation_transition_test") {
408  module_out_path = module_out_path
409
410  sources = [ "window_animation_transition_test.cpp" ]
411
412  deps = [ ":wms_systemtest_common" ]
413
414  external_deps = [
415    "c_utils:utils",
416    "hilog:libhilog",
417    "power_manager:powermgr_client",
418  ]
419}
420
421ohos_systemtest("wms_window_water_mark_test") {
422  module_out_path = module_out_path
423
424  sources = [ "window_water_mark_test.cpp" ]
425
426  deps = [ ":wms_systemtest_common" ]
427
428  external_deps = [
429    "c_utils:utils",
430    "hilog:libhilog",
431    "power_manager:powermgr_client",
432  ]
433}
434
435## Build wms_systemtest_common.a {{{
436config("wms_systemtest_common_public_config") {
437  include_dirs = [
438    "${window_base_path}/dm/include",
439    "${window_base_path}/dmserver/include",
440    "${window_base_path}/wm/include",
441    "${window_base_path}/wmserver/include",
442    "${window_base_path}/interfaces/innerkits/wm",
443    "${window_base_path}/utils/include",
444    "//commonlibrary/c_utils/base/include",
445    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
446    "//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
447    "//third_party/googletest/googlemock/include",
448    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include",
449
450    # for abilityContext
451    "${ability_runtime_path}/interfaces/kits/native/ability/ability_runtime",
452    "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/context",
453    "//base/global/resource_management/interfaces/inner_api/include",
454    "//third_party/node/deps/icu-small/source/common",
455    "${ability_runtime_inner_api_path}/ability_manager/include",
456
457    # abilityContext end
458  ]
459}
460
461ohos_static_library("wms_systemtest_common") {
462  visibility = [ ":*" ]
463  testonly = true
464
465  sources = [ "window_test_utils.cpp" ]
466
467  public_configs = [
468    ":wms_systemtest_common_public_config",
469    "${window_base_path}/resources/config/build:coverage_flags",
470    "${window_base_path}/resources/config/build:testcase_flags",
471  ]
472
473  public_deps = [
474    "//foundation/arkui/ace_engine/interfaces/inner_api/ace:ace_uicontent",
475
476    # need delete it for abilitycontext
477    "${ability_runtime_inner_api_path}/ability_manager:ability_manager",
478    "${window_base_path}/dm:libdm",
479    "${window_base_path}/dmserver:libdms",
480    "${window_base_path}/utils:libwmutil",
481    "${window_base_path}/window_scene/interfaces/innerkits:libwsutils",
482    "${window_base_path}/wm:libwm",
483    "//commonlibrary/c_utils/base:utils",
484    "//foundation/arkui/napi:ace_napi",
485    "//foundation/graphic/graphic_2d/rosen/modules/animation/window_animation:window_animation",
486    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
487    "//foundation/multimodalinput/input/frameworks/proxy:libmmi-client",
488    "//third_party/googletest:gmock",
489    "//third_party/googletest:gtest_main",
490  ]
491  external_deps = [
492    "ability_base:base",
493    "ability_base:want",
494    "ability_base:zuri",
495    "ability_runtime:ability_context_native",
496    "bundle_framework:appexecfwk_base",
497    "c_utils:utils",
498    "hilog:libhilog",
499    "ipc:ipc_single",
500    "power_manager:powermgr_client",
501  ]
502
503  part_name = "window_manager"
504  subsystem_name = "window"
505}
506## Build wms_systemtest_common.a }}}
507