• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2023 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("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
15
16ace_unittest("avoid_info_manager_test_ng") {
17  type = "new"
18  module_output = "manager"
19  sources = [ "avoid_info_manager_test_ng.cpp" ]
20}
21
22ace_unittest("drag_animation_helper_test_ng") {
23  type = "new"
24  module_output = "manager"
25  sources = [ "drag_animation_helper_test_ng.cpp" ]
26}
27
28ace_unittest("drag_drop_controller_func_wrapper_test_ng") {
29  type = "new"
30  module_output = "manager"
31  sources = [ "drag_drop_controller_func_wrapper_test_ng.cpp" ]
32}
33
34ace_unittest("drag_drop_func_wrapper_test_ng") {
35  type = "new"
36  module_output = "manager"
37  sources = [
38    "./drag_drop/drag_drop_func_wrapper_test_ng_base.cpp",
39    "./drag_drop/drag_drop_func_wrapper_test_ng_coverage.cpp",
40  ]
41}
42
43ace_unittest("drag_drop_manager_test_ng") {
44  type = "new"
45  module_output = "manager"
46  sources = [
47    "drag_drop_manager_test_ng.cpp",
48    "drag_drop_manager_test_ng_coverage.cpp",
49    "drag_drop_manager_test_ng_property_config.cpp",
50    "drag_drop_manager_test_ng_plus.cpp",
51  ]
52}
53
54ace_unittest("drag_drop_initiating_state_test_ng") {
55  type = "new"
56  module_output = "manager"
57  sources = [
58    "./drag_drop/drag_drop_initiating_handler_test_ng.cpp",
59    "./drag_drop/drag_drop_initiating_state_base_test_ng.cpp",
60    "./drag_drop/drag_drop_initiating_state_idle_test_ng.cpp",
61    "./drag_drop/drag_drop_initiating_state_lifting_test_ng.cpp",
62    "./drag_drop/drag_drop_initiating_state_machine_test_ng.cpp",
63    "./drag_drop/drag_drop_initiating_state_moving_test_ng.cpp",
64    "./drag_drop/drag_drop_initiating_state_press_test_ng.cpp",
65    "./drag_drop/drag_drop_initiating_state_ready_test_ng.cpp",
66  ]
67}
68
69ace_unittest("drag_drop_report_test_ng") {
70  type = "new"
71  module_output = "manager"
72  sources = [ "./drag_drop/drag_drop_report_test_ng.cpp" ]
73}
74
75ace_unittest("drag_drop_proxy_test_ng") {
76  type = "new"
77  module_output = "manager"
78  sources = [ "drag_drop_proxy_test_ng.cpp" ]
79}
80
81ace_unittest("full_screen_manager_test_ng") {
82  type = "new"
83  module_output = "manager"
84  sources = [ "full_screen_manager_test_ng.cpp" ]
85}
86
87ace_unittest("json_report_test_ng") {
88  type = "new"
89  module_output = "manager"
90  sources = [ "json_report_test_ng.cpp" ]
91}
92
93ace_unittest("post_event_manager_test_ng") {
94  type = "new"
95  module_output = "manager"
96  sources = [ "post_event_manager_test_ng.cpp" ]
97}
98
99ace_unittest("select_overlay_manager_test_ng") {
100  type = "new"
101  module_output = "manager"
102  sources = [
103    "select_overlay_manager_test_ng.cpp",
104    "select_overlay_manager_testtwo_ng.cpp",
105  ]
106}
107
108ace_unittest("select_overlay_proxy_test_ng") {
109  type = "new"
110  module_output = "manager"
111  sources = [ "select_overlay_proxy_test_ng.cpp" ]
112}
113
114ace_unittest("shared_overlay_manager_test_ng") {
115  type = "new"
116  module_output = "manager"
117  sources = [ "shared_overlay_manager_test_ng.cpp" ]
118}
119
120ace_unittest("display_sync_manager_test_ng") {
121  type = "new"
122  module_output = "manager"
123  sources = [ "display_sync_manager_test.cpp" ]
124}
125
126ace_unittest("force_split_manager_test_ng") {
127  type = "new"
128  module_output = "manager"
129  sources = [ "force_split_manager_test_ng.cpp" ]
130}
131
132ace_unittest("frame_rate_manager_test_ng") {
133  type = "new"
134  module_output = "manager"
135  sources = [ "frame_rate_manager_test.cpp" ]
136}
137
138ace_unittest("focus_manager_test_ng") {
139  type = "new"
140  module_output = "manager"
141  sources = [ "focus_manager_test_ng.cpp" ]
142}
143
144ace_unittest("focus_view_test_ng") {
145  type = "new"
146  module_output = "manager"
147  sources = [ "focus_view_test_ng.cpp" ]
148}
149
150ace_unittest("scroll_adjust_manager_test_ng") {
151  type = "new"
152  module_output = "manager"
153  sources = [ "scroll_adjust_manager_test_ng.cpp" ]
154}
155
156ace_unittest("safe_area_manager_test_ng") {
157  type = "new"
158  module_output = "manager"
159  sources = [ "safe_area_manager_test_ng.cpp" ]
160}
161
162ace_unittest("navigation_manager_test_ng") {
163  type = "new"
164  module_output = "manager"
165  sources = [
166    "$ace_root/test/unittest/core/pattern/navigation/mock_navigation_stack.cpp",
167    "navigation_manager_test_ng.cpp",
168  ]
169}
170
171ace_unittest("drag_drop_behavior_reporter_test_ng") {
172  type = "new"
173  module_output = "manager"
174  sources = [ "./drag_drop/drag_drop_behavior_reporter_test_ng.cpp" ]
175}
176
177ace_unittest("theme_manager_test_ng") {
178  type = "new"
179  module_output = "manager"
180  sources = [
181    "$ace_root/frameworks/core/components/checkable/checkable_theme.cpp",
182    "$ace_root/frameworks/core/components/dialog/dialog_theme.cpp",
183    "$ace_root/frameworks/core/components/picker/picker_theme.cpp",
184    "$ace_root/frameworks/core/components/theme/app_theme.cpp",
185    "$ace_root/frameworks/core/components/theme/theme_manager_impl.cpp",
186    "theme_manager_test_ng.cpp",
187  ]
188}
189
190ace_unittest("drag_drop_spring_loading_test_ng") {
191  type = "new"
192  module_output = "manager"
193  sources = [ "./drag_drop/drag_drop_spring_loading_test_ng.cpp" ]
194}
195
196group("core_manager_unittest") {
197  testonly = true
198  deps = [
199    ":avoid_info_manager_test_ng",
200    ":display_sync_manager_test_ng",
201    ":drag_animation_helper_test_ng",
202    ":drag_drop_behavior_reporter_test_ng",
203    ":drag_drop_controller_func_wrapper_test_ng",
204    ":drag_drop_func_wrapper_test_ng",
205    ":drag_drop_initiating_state_test_ng",
206    ":drag_drop_manager_test_ng",
207    ":drag_drop_proxy_test_ng",
208    ":drag_drop_report_test_ng",
209    ":drag_drop_spring_loading_test_ng",
210    ":focus_manager_test_ng",
211    ":focus_view_test_ng",
212    ":force_split_manager_test_ng",
213    ":frame_rate_manager_test_ng",
214    ":full_screen_manager_test_ng",
215    ":json_report_test_ng",
216    ":navigation_manager_test_ng",
217    ":post_event_manager_test_ng",
218    ":safe_area_manager_test_ng",
219    ":select_overlay_manager_test_ng",
220    ":select_overlay_proxy_test_ng",
221    ":shared_overlay_manager_test_ng",
222    ":theme_manager_test_ng",
223    ":scroll_adjust_manager_test_ng",
224  ]
225}
226