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