• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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
16ohos_unittest("viewport_config_test") {
17  module_out_path = interface_test_output_path
18
19  sources = [ "viewport_config_test.cpp" ]
20
21  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
22}
23
24ohos_unittest("ui_content_test") {
25  module_out_path = interface_test_output_path
26
27  sources = [
28    "$ace_root/frameworks/core/common/container_scope.cpp",
29    "$ace_root/interfaces/inner_api/ace/ui_content.cpp",
30    "$ace_root/test/mock/base/mock_lifecycle_checkable.cpp",
31    "ui_content_test.cpp",
32  ]
33
34  deps = [
35    "$ace_root/frameworks/base:ace_memory_monitor_ohos",
36    "$ace_root/interfaces/inner_api/ace:ace_forward_compatibility",
37    "$ace_root/test/unittest:ace_engine_unittest_flutter_deps",
38    "$ace_root/test/unittest:ace_unittest_log",
39    "$ace_root/test/unittest:ace_unittest_trace",
40  ]
41
42  external_deps = [
43    "ability_runtime:abilitykit_native",
44    "cJSON:cjson",
45    "googletest:gmock_main",
46    "graphic_2d:librender_service_client",
47    "image_framework:image",
48    "input:libmmi-client",
49    "ipc:ipc_single",
50    "window_manager:libdm",
51    "window_manager:libwm",
52    "window_manager:scene_session",
53    "window_manager:scene_session_manager",
54  ]
55
56  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
57}
58
59ohos_unittest("form_render_test") {
60  module_out_path = interface_test_output_path
61  include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ]
62  sources = [
63    "$ace_root/interfaces/inner_api/form_render/src/form_renderer.cpp",
64    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_impl.cpp",
65    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_proxy.cpp",
66    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_stub.cpp",
67    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_impl.cpp",
68    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_proxy.cpp",
69    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_stub.cpp",
70    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_group.cpp",
71    "$ace_root/test/mock/interfaces/mock_uicontent_creator.cpp",
72    "form_render_test.cpp",
73    "form_renderer_dispatcher_proxy_test.cpp",
74  ]
75
76  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
77
78  deps = [
79    "$ace_root/test/unittest:ace_base",
80    "$ace_root/test/unittest:ace_components_base",
81    "$ace_root/test/unittest:ace_components_event",
82    "$ace_root/test/unittest:ace_components_gestures",
83    "$ace_root/test/unittest:ace_components_layout",
84    "$ace_root/test/unittest:ace_components_manager",
85    "$ace_root/test/unittest:ace_components_mock",
86    "$ace_root/test/unittest:ace_components_pattern",
87    "$ace_root/test/unittest:ace_components_property",
88    "$ace_root/test/unittest:ace_components_render",
89    "$ace_root/test/unittest:ace_components_syntax",
90    "$ace_root/test/unittest:ace_core_animation",
91    "$ace_root/test/unittest:ace_core_extra",
92    "$ace_root/test/unittest:ace_engine_unittest_flutter_deps",
93    "$ace_root/test/unittest:ace_unittest_log",
94  ]
95
96  external_deps = [
97    "ability_base:want",
98    "ability_runtime:ability_context_native",
99    "ability_runtime:ability_manager",
100    "ability_runtime:runtime",
101    "accessibility:accessibility_common",
102    "ace_engine:ace_uicontent",
103    "cJSON:cjson",
104    "c_utils:utils",
105    "eventhandler:libeventhandler",
106    "form_fwk:form_manager",
107    "googletest:gmock_main",
108    "graphic_2d:librender_service_client",
109    "graphic_surface:surface",
110    "hilog:libhilog",
111    "input:libmmi-client",
112    "ipc:ipc_core",
113    "napi:ace_napi",
114    "window_manager:libwm",
115  ]
116}
117
118ohos_unittest("form_render_group_test") {
119  module_out_path = interface_test_output_path
120  include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ]
121  sources = [
122    "$ace_root/interfaces/inner_api/form_render/src/form_renderer.cpp",
123    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_impl.cpp",
124    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_proxy.cpp",
125    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_stub.cpp",
126    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_impl.cpp",
127    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_proxy.cpp",
128    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_stub.cpp",
129    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_group.cpp",
130    "$ace_root/test/mock/base/mock_ace_performance_check.cpp",
131    "$ace_root/test/mock/base/mock_ace_performance_monitor.cpp",
132    "$ace_root/test/mock/base/mock_engine_helper.cpp",
133    "$ace_root/test/mock/base/mock_frame_report.cpp",
134    "$ace_root/test/mock/base/mock_frame_trace_adapter.cpp",
135    "$ace_root/test/mock/base/mock_lifecycle_checkable.cpp",
136    "$ace_root/test/mock/base/mock_ressched_report.cpp",
137    "$ace_root/test/mock/base/mock_system_properties.cpp",
138    "$ace_root/test/mock/core/common/mock_ace_application_info.cpp",
139    "$ace_root/test/mock/core/common/mock_container.cpp",
140    "$ace_root/test/mock/core/common/mock_raw_recognizer.cpp",
141    "$ace_root/test/mock/core/image_provider/mock_image_source_info.cpp",
142    "$ace_root/test/mock/core/package/mock_package_event_proxy.cpp",
143    "$ace_root/test/mock/core/pipeline/mock_element_register.cpp",
144    "$ace_root/test/mock/core/pipeline/mock_pipeline_context.cpp",
145    "$ace_root/test/mock/core/render/mock_animation_utils.cpp",
146    "$ace_root/test/mock/core/render/mock_modifier_adapter.cpp",
147    "$ace_root/test/mock/core/render/mock_render_context_creator.cpp",
148    "$ace_root/test/mock/interfaces/mock_uicontent_creator.cpp",
149    "form_render_group_test.cpp",
150  ]
151
152  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
153
154  deps = [
155    "$ace_root/test/unittest:ace_base",
156    "$ace_root/test/unittest:ace_components_base",
157    "$ace_root/test/unittest:ace_components_event",
158    "$ace_root/test/unittest:ace_components_gestures",
159    "$ace_root/test/unittest:ace_components_layout",
160    "$ace_root/test/unittest:ace_components_manager",
161    "$ace_root/test/unittest:ace_components_pattern",
162    "$ace_root/test/unittest:ace_components_property",
163    "$ace_root/test/unittest:ace_components_render",
164    "$ace_root/test/unittest:ace_components_syntax",
165    "$ace_root/test/unittest:ace_core_animation",
166    "$ace_root/test/unittest:ace_core_extra",
167    "$ace_root/test/unittest:ace_engine_unittest_flutter_deps",
168    "$ace_root/test/unittest:ace_unittest_log",
169    "$ace_root/test/unittest:ace_unittest_trace",
170  ]
171
172  external_deps = [
173    "ability_base:want",
174    "ability_runtime:ability_context_native",
175    "ability_runtime:ability_manager",
176    "ability_runtime:runtime",
177    "accessibility:accessibility_common",
178    "ace_engine:ace_uicontent",
179    "cJSON:cjson",
180    "c_utils:utils",
181    "eventhandler:libeventhandler",
182    "form_fwk:form_manager",
183    "googletest:gmock_main",
184    "graphic_2d:librender_service_client",
185    "graphic_surface:surface",
186    "hilog:libhilog",
187    "input:libmmi-client",
188    "ipc:ipc_core",
189    "napi:ace_napi",
190    "window_manager:libwm",
191  ]
192}
193
194ohos_unittest("form_render_delegate_proxy_test") {
195  module_out_path = interface_test_output_path
196  include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ]
197  sources = [
198    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_impl.cpp",
199    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_proxy.cpp",
200    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_stub.cpp",
201    "$ace_root/test/mock/base/mock_ace_performance_monitor.cpp",
202    "$ace_root/test/mock/base/mock_system_properties.cpp",
203    "$ace_root/test/mock/core/common/mock_container.cpp",
204    "form_render_delegate_proxy_test.cpp",
205  ]
206
207  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
208
209  deps = []
210
211  external_deps = [
212    "ability_base:want",
213    "ability_runtime:ability_context_native",
214    "ability_runtime:ability_manager",
215    "ability_runtime:runtime",
216    "accessibility:accessibility_common",
217    "ace_engine:ace_uicontent",
218    "cJSON:cjson",
219    "c_utils:utils",
220    "eventhandler:libeventhandler",
221    "form_fwk:form_manager",
222    "googletest:gmock_main",
223    "graphic_2d:librender_service_client",
224    "graphic_surface:surface",
225    "hilog:libhilog",
226    "input:libmmi-client",
227    "ipc:ipc_core",
228    "napi:ace_napi",
229  ]
230}
231
232ohos_unittest("form_render_delegate_stub_test") {
233  module_out_path = interface_test_output_path
234  include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ]
235  sources = [
236    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_impl.cpp",
237    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_stub.cpp",
238    "$ace_root/test/mock/base/mock_ace_performance_monitor.cpp",
239    "$ace_root/test/mock/base/mock_system_properties.cpp",
240    "$ace_root/test/mock/core/common/mock_container.cpp",
241    "form_render_delegate_stub_test.cpp",
242  ]
243
244  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
245
246  deps = []
247
248  external_deps = [
249    "ability_base:want",
250    "cJSON:cjson",
251    "c_utils:utils",
252    "eventhandler:libeventhandler",
253    "form_fwk:form_manager",
254    "googletest:gmock_main",
255    "graphic_2d:librender_service_client",
256    "graphic_surface:surface",
257    "hilog:libhilog",
258    "ipc:ipc_core",
259    "napi:ace_napi",
260  ]
261}
262
263ohos_unittest("form_render_dispatcher_stub_test") {
264  module_out_path = interface_test_output_path
265  include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ]
266  sources = [
267    "$ace_root/frameworks/core/pipeline_ng/ui_task_scheduler.cpp",
268    "$ace_root/interfaces/inner_api/form_render/src/form_renderer.cpp",
269    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_impl.cpp",
270    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_proxy.cpp",
271    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_stub.cpp",
272    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_impl.cpp",
273    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_proxy.cpp",
274    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_stub.cpp",
275    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_group.cpp",
276    "$ace_root/test/mock/base/mock_ace_performance_check.cpp",
277    "$ace_root/test/mock/base/mock_ace_performance_monitor.cpp",
278    "$ace_root/test/mock/base/mock_engine_helper.cpp",
279    "$ace_root/test/mock/base/mock_frame_report.cpp",
280    "$ace_root/test/mock/base/mock_frame_trace_adapter.cpp",
281    "$ace_root/test/mock/base/mock_ressched_report.cpp",
282    "$ace_root/test/mock/base/mock_system_properties.cpp",
283    "$ace_root/test/mock/core/common/mock_ace_application_info.cpp",
284    "$ace_root/test/mock/core/common/mock_container.cpp",
285    "$ace_root/test/mock/core/common/mock_raw_recognizer.cpp",
286    "$ace_root/test/mock/core/event/mock_touch_event.cpp",
287    "$ace_root/test/mock/core/image_provider/mock_image_source_info.cpp",
288    "$ace_root/test/mock/core/pipeline/mock_element_register.cpp",
289    "$ace_root/test/mock/core/pipeline/mock_pipeline_context.cpp",
290    "$ace_root/test/mock/core/render/mock_animation_utils.cpp",
291    "$ace_root/test/mock/core/render/mock_modifier_adapter.cpp",
292    "$ace_root/test/mock/core/render/mock_render_context_creator.cpp",
293    "$ace_root/test/mock/interfaces/mock_uicontent_creator.cpp",
294    "form_render_dispatcher_stub_test.cpp",
295  ]
296
297  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
298
299  deps = []
300
301  external_deps = [
302    "ability_base:want",
303    "ability_runtime:ability_context_native",
304    "ability_runtime:ability_manager",
305    "ability_runtime:runtime",
306    "accessibility:accessibility_common",
307    "ace_engine:ace_uicontent",
308    "cJSON:cjson",
309    "c_utils:utils",
310    "eventhandler:libeventhandler",
311    "form_fwk:form_manager",
312    "googletest:gmock_main",
313    "graphic_2d:librender_service_client",
314    "graphic_surface:surface",
315    "hilog:libhilog",
316    "input:libmmi-client",
317    "ipc:ipc_core",
318    "napi:ace_napi",
319    "window_manager:libwm",
320  ]
321}
322
323ohos_unittest("form_render_delegate_impl_test") {
324  module_out_path = interface_test_output_path
325  include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ]
326  sources = [
327    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_impl.cpp",
328    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_stub.cpp",
329    "$ace_root/test/mock/base/mock_ace_performance_monitor.cpp",
330    "$ace_root/test/mock/base/mock_system_properties.cpp",
331    "$ace_root/test/mock/core/common/mock_container.cpp",
332    "form_render_delegate_impl_test.cpp",
333  ]
334
335  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
336
337  deps = []
338
339  external_deps = [
340    "ability_base:want",
341    "cJSON:cjson",
342    "c_utils:utils",
343    "eventhandler:libeventhandler",
344    "form_fwk:form_manager",
345    "googletest:gmock_main",
346    "graphic_2d:librender_service_client",
347    "graphic_surface:surface",
348    "hilog:libhilog",
349    "ipc:ipc_core",
350    "napi:ace_napi",
351  ]
352}
353
354ohos_unittest("form_render_dispatcher_impl_test") {
355  module_out_path = interface_test_output_path
356  include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ]
357  sources = [
358    "$ace_root/interfaces/inner_api/form_render/src/form_renderer.cpp",
359    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_impl.cpp",
360    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_stub.cpp",
361    "form_render_dispatcher_impl_test.cpp",
362  ]
363
364  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
365
366  deps = []
367
368  external_deps = [
369    "ability_base:want",
370    "ability_runtime:ability_context_native",
371    "ability_runtime:ability_manager",
372    "ability_runtime:runtime",
373    "accessibility:accessibility_common",
374    "ace_engine:ace_uicontent",
375    "cJSON:cjson",
376    "c_utils:utils",
377    "eventhandler:libeventhandler",
378    "form_fwk:form_manager",
379    "googletest:gmock_main",
380    "graphic_2d:librender_service_client",
381    "graphic_surface:surface",
382    "hilog:libhilog",
383    "input:libmmi-client",
384    "ipc:ipc_core",
385    "napi:ace_napi",
386    "window_manager:libwm",
387  ]
388}
389
390ohos_unittest("drawable_descriptor_test") {
391  module_out_path = interface_test_output_path
392
393  sources = [
394    "$ace_root/interfaces/inner_api/drawable_descriptor/drawable_descriptor.cpp",
395    "$ace_root/interfaces/native/node/native_drawable_descriptor.cpp",
396    "drawable_descriptor_test.cpp",
397  ]
398
399  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
400
401  include_dirs = [
402    "$ace_root/interfaces/native/node",
403    "$ace_root/interfaces/native/",
404    "$ace_root/interfaces/inner_api/drawable_descriptor",
405  ]
406
407  deps = []
408
409  external_deps = [
410    "cJSON:cjson",
411    "c_utils:utils",
412    "googletest:gmock_main",
413    "graphic_2d:2d_graphics",
414    "graphic_2d:librender_service_client",
415    "hilog:libhilog",
416    "image_framework:image",
417    "image_framework:image_native",
418    "napi:ace_napi",
419    "resource_management:global_resmgr",
420  ]
421}
422
423ohos_unittest("ui_event_test") {
424  module_out_path = interface_test_output_path
425
426  sources = [
427    "$ace_root/interfaces/inner_api/ace/ui_event.cpp",
428    "$ace_root/interfaces/inner_api/ace/ui_event_func.cpp",
429    "ui_event_test.cpp",
430  ]
431
432  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
433  include_dirs = [ "${ace_root}/interfaces/inner_api/ace" ]
434  deps = [
435    "$ace_root/frameworks/core/components/theme:build_theme_code",
436    "$ace_root/test/unittest:ace_base",
437    "$ace_root/test/unittest:ace_components_base",
438    "$ace_root/test/unittest:ace_components_event",
439    "$ace_root/test/unittest:ace_components_gestures",
440    "$ace_root/test/unittest:ace_components_layout",
441    "$ace_root/test/unittest:ace_components_manager",
442    "$ace_root/test/unittest:ace_components_mock",
443    "$ace_root/test/unittest:ace_components_pattern",
444    "$ace_root/test/unittest:ace_components_property",
445    "$ace_root/test/unittest:ace_components_render",
446    "$ace_root/test/unittest:ace_components_syntax",
447    "$ace_root/test/unittest:ace_core_animation",
448    "$ace_root/test/unittest:ace_core_extra",
449  ]
450  external_deps = [
451    "googletest:gmock_main",
452    "hilog:libhilog",
453    "init:libbegetutil",
454  ]
455}
456
457ace_unittest("extension_custom_node_test_ng") {
458  type = "new"
459  module_output = "basic"
460  sources = [
461    "$ace_root/frameworks/core/interfaces/native/node/extension_custom_node.cpp",
462    "extension_custom_node_test_ng.cpp",
463  ]
464}
465
466ohos_unittest("ace_forward_compatibility_test") {
467  module_out_path = interface_test_output_path
468
469  sources = [
470    "$ace_root/interfaces/inner_api/ace/ace_forward_compatibility.cpp",
471    "ace_forward_compatibility_test.cpp",
472  ]
473
474  include_dirs = [ "${ace_root}/interfaces/inner_api/ace" ]
475
476  external_deps = [
477    "hilog:libhilog",
478    "init:libbegetutil",
479  ]
480}
481
482ohos_unittest("navigation_controller_test") {
483  module_out_path = interface_test_output_path
484
485  sources = [ "navigation_controller_test.cpp" ]
486
487  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
488  include_dirs = [ "${ace_root}/interfaces/inner_api/ace" ]
489
490  external_deps = [
491    "hilog:libhilog",
492    "init:libbegetutil",
493  ]
494}
495
496ohos_unittest("node_component_snapshot_test") {
497  module_out_path = interface_test_output_path
498
499  sources = [
500    "$ace_root/interfaces/native/node/animate_impl.cpp",
501    "$ace_root/interfaces/native/node/dialog_model.cpp",
502    "$ace_root/interfaces/native/node/event_converter.cpp",
503    "$ace_root/interfaces/native/node/gesture_impl.cpp",
504    "$ace_root/interfaces/native/node/native_impl.cpp",
505    "$ace_root/interfaces/native/node/node_component_snapshot.cpp",
506    "$ace_root/interfaces/native/node/node_extened.cpp",
507    "$ace_root/interfaces/native/node/node_model.cpp",
508    "$ace_root/interfaces/native/node/node_node_relative_container.cpp",
509    "$ace_root/interfaces/native/node/node_transition.cpp",
510    "$ace_root/interfaces/native/node/style_modifier.cpp",
511    "node_component_snapshot_test.cpp",
512  ]
513
514  configs = [
515    "$ace_root/test/unittest:ace_unittest_config",
516    ":c_api_configs",
517  ]
518
519  include_dirs = [
520    "$ace_root/frameworks/core/interfaces/arkoala",
521    "$ace_root/frameworks/",
522    "$ace_root/interfaces/native/",
523    "$ace_root/interfaces/native/node",
524    "$ace_root",
525  ]
526
527  deps = [
528    "$ace_root/test/unittest:ace_base",
529    "$ace_root/test/unittest:ace_components_base",
530    "$ace_root/test/unittest:ace_components_event",
531    "$ace_root/test/unittest:ace_components_gestures",
532    "$ace_root/test/unittest:ace_components_layout",
533    "$ace_root/test/unittest:ace_components_manager",
534    "$ace_root/test/unittest:ace_components_mock",
535    "$ace_root/test/unittest:ace_components_pattern",
536    "$ace_root/test/unittest:ace_components_property",
537    "$ace_root/test/unittest:ace_components_render",
538    "$ace_root/test/unittest:ace_components_syntax",
539    "$ace_root/test/unittest:ace_core_animation",
540    "$ace_root/test/unittest:ace_core_extra",
541  ]
542
543  external_deps = [
544    "cJSON:cjson",
545    "c_utils:utils",
546    "googletest:gmock_main",
547    "graphic_2d:2d_graphics",
548    "graphic_2d:librender_service_client",
549    "hilog:libhilog",
550    "image_framework:image",
551    "image_framework:image_native",
552    "image_framework:pixelmap",
553    "napi:ace_napi",
554    "resource_management:global_resmgr",
555  ]
556}
557
558config("c_api_configs") {
559  cflags = [ "-Wno-missing-braces" ]
560}
561
562ohos_unittest("native_node_napi_test") {
563  module_out_path = interface_test_output_path
564
565  sources = [
566    "$ace_root/interfaces/native/node/animate_impl.cpp",
567    "$ace_root/interfaces/native/node/dialog_model.cpp",
568    "$ace_root/interfaces/native/node/event_converter.cpp",
569    "$ace_root/interfaces/native/node/native_impl.cpp",
570    "$ace_root/interfaces/native/node/native_node_extented.cpp",
571    "$ace_root/interfaces/native/node/native_node_napi.cpp",
572    "$ace_root/interfaces/native/node/node_extened.cpp",
573    "$ace_root/interfaces/native/node/node_model.cpp",
574    "$ace_root/interfaces/native/node/node_node_relative_container.cpp",
575    "$ace_root/interfaces/native/node/node_transition.cpp",
576    "$ace_root/interfaces/native/node/node_utils.cpp",
577    "$ace_root/interfaces/native/node/progress_option.cpp",
578    "$ace_root/interfaces/native/node/style_modifier.cpp",
579    "native_gesture_test.cpp",
580    "native_node_napi_test.cpp",
581    "native_node_test.cpp",
582  ]
583
584  configs = [
585    "$ace_root/test/unittest:ace_unittest_config",
586    ":c_api_configs",
587  ]
588
589  include_dirs = [
590    "$ace_root/frameworks/core/interfaces/arkoala",
591    "$ace_root/frameworks/",
592    "$ace_root/interfaces/native/",
593    "$ace_root/interfaces/native/node",
594    "$ace_root",
595    "$ace_root/interfaces/inner_api/drawable_descriptor",
596  ]
597
598  deps = [
599    "$ace_root/test/unittest:ace_base",
600    "$ace_root/test/unittest:ace_components_base",
601    "$ace_root/test/unittest:ace_components_event",
602    "$ace_root/test/unittest:ace_components_gestures",
603    "$ace_root/test/unittest:ace_components_layout",
604    "$ace_root/test/unittest:ace_components_manager",
605    "$ace_root/test/unittest:ace_components_mock",
606    "$ace_root/test/unittest:ace_components_pattern",
607    "$ace_root/test/unittest:ace_components_property",
608    "$ace_root/test/unittest:ace_components_render",
609    "$ace_root/test/unittest:ace_components_syntax",
610    "$ace_root/test/unittest:ace_core_animation",
611    "$ace_root/test/unittest:ace_core_extra",
612  ]
613
614  public_deps = [
615    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
616    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
617  ]
618
619  external_deps = [
620    "cJSON:cjson",
621    "c_utils:utils",
622    "googletest:gmock_main",
623    "graphic_2d:native_drawing_ndk",
624    "hilog:libhilog",
625    "image_framework:image",
626    "image_framework:image_native",
627    "napi:ace_napi",
628    "resource_management:global_resmgr",
629  ]
630}
631
632ohos_unittest("native_key_event_test") {
633  module_out_path = interface_test_output_path
634
635  sources = [
636    "$ace_root/interfaces/native/event/key_event_impl.cpp",
637    "$ace_root/interfaces/native/event/ui_input_event.cpp",
638    "$ace_root/interfaces/native/node/animate_impl.cpp",
639    "$ace_root/interfaces/native/node/dialog_model.cpp",
640    "$ace_root/interfaces/native/node/event_converter.cpp",
641    "$ace_root/interfaces/native/node/gesture_impl.cpp",
642    "$ace_root/interfaces/native/node/native_impl.cpp",
643    "$ace_root/interfaces/native/node/native_node_napi.cpp",
644    "$ace_root/interfaces/native/node/node_extened.cpp",
645    "$ace_root/interfaces/native/node/node_model.cpp",
646    "$ace_root/interfaces/native/node/node_node_relative_container.cpp",
647    "$ace_root/interfaces/native/node/node_transition.cpp",
648    "$ace_root/interfaces/native/node/style_modifier.cpp",
649    "native_key_event_test.cpp",
650  ]
651
652  configs = [
653    "$ace_root/test/unittest:ace_unittest_config",
654    ":c_api_configs",
655  ]
656
657  include_dirs = [
658    "$ace_root/frameworks/core/interfaces/arkoala",
659    "$ace_root/frameworks/",
660    "$ace_root/interfaces/native/",
661    "$ace_root/interfaces/native/node",
662    "$ace_root",
663  ]
664
665  deps = [
666    "$ace_root/test/unittest:ace_base",
667    "$ace_root/test/unittest:ace_components_base",
668    "$ace_root/test/unittest:ace_components_event",
669    "$ace_root/test/unittest:ace_components_gestures",
670    "$ace_root/test/unittest:ace_components_layout",
671    "$ace_root/test/unittest:ace_components_manager",
672    "$ace_root/test/unittest:ace_components_mock",
673    "$ace_root/test/unittest:ace_components_pattern",
674    "$ace_root/test/unittest:ace_components_property",
675    "$ace_root/test/unittest:ace_components_render",
676    "$ace_root/test/unittest:ace_components_syntax",
677    "$ace_root/test/unittest:ace_core_animation",
678    "$ace_root/test/unittest:ace_core_extra",
679  ]
680
681  external_deps = [
682    "cJSON:cjson",
683    "c_utils:utils",
684    "googletest:gmock_main",
685    "graphic_2d:2d_graphics",
686    "graphic_2d:librender_service_client",
687    "hilog:libhilog",
688    "image_framework:image",
689    "image_framework:image_native",
690    "napi:ace_napi",
691    "resource_management:global_resmgr",
692  ]
693}
694
695ohos_unittest("ui_input_event_test") {
696  module_out_path = interface_test_output_path
697
698  sources = [
699    "$ace_root/interfaces/native/event/ui_input_event.cpp",
700    "$ace_root/interfaces/native/node/animate_impl.cpp",
701    "$ace_root/interfaces/native/node/dialog_model.cpp",
702    "$ace_root/interfaces/native/node/event_converter.cpp",
703    "$ace_root/interfaces/native/node/gesture_impl.cpp",
704    "$ace_root/interfaces/native/node/native_impl.cpp",
705    "$ace_root/interfaces/native/node/native_node_napi.cpp",
706    "$ace_root/interfaces/native/node/node_extened.cpp",
707    "$ace_root/interfaces/native/node/node_model.cpp",
708    "$ace_root/interfaces/native/node/node_node_relative_container.cpp",
709    "$ace_root/interfaces/native/node/node_transition.cpp",
710    "$ace_root/interfaces/native/node/style_modifier.cpp",
711    "ui_input_event_test.cpp",
712    "ui_input_event_test_one.cpp",
713  ]
714
715  configs = [
716    "$ace_root/test/unittest:ace_unittest_config",
717    ":c_api_configs",
718  ]
719
720  include_dirs = [
721    "$ace_root/frameworks/core/interfaces/arkoala",
722    "$ace_root/frameworks/",
723    "$ace_root/interfaces/native/",
724    "$ace_root/interfaces/native/node",
725    "$ace_root",
726  ]
727
728  deps = [
729    "$ace_root/test/unittest:ace_base",
730    "$ace_root/test/unittest:ace_components_base",
731    "$ace_root/test/unittest:ace_components_event",
732    "$ace_root/test/unittest:ace_components_gestures",
733    "$ace_root/test/unittest:ace_components_layout",
734    "$ace_root/test/unittest:ace_components_manager",
735    "$ace_root/test/unittest:ace_components_mock",
736    "$ace_root/test/unittest:ace_components_pattern",
737    "$ace_root/test/unittest:ace_components_property",
738    "$ace_root/test/unittest:ace_components_render",
739    "$ace_root/test/unittest:ace_components_syntax",
740    "$ace_root/test/unittest:ace_core_animation",
741    "$ace_root/test/unittest:ace_core_extra",
742  ]
743
744  external_deps = [
745    "cJSON:cjson",
746    "c_utils:utils",
747    "googletest:gmock_main",
748    "graphic_2d:2d_graphics",
749    "graphic_2d:librender_service_client",
750    "hilog:libhilog",
751    "image_framework:image",
752    "image_framework:image_native",
753    "napi:ace_napi",
754    "resource_management:global_resmgr",
755  ]
756}
757
758ohos_unittest("ui_input_event_first_test") {
759  module_out_path = interface_test_output_path
760
761  sources = [
762    "$ace_root/interfaces/native/event/ui_input_event.cpp",
763    "$ace_root/interfaces/native/node/animate_impl.cpp",
764    "$ace_root/interfaces/native/node/dialog_model.cpp",
765    "$ace_root/interfaces/native/node/event_converter.cpp",
766    "$ace_root/interfaces/native/node/gesture_impl.cpp",
767    "$ace_root/interfaces/native/node/native_impl.cpp",
768    "$ace_root/interfaces/native/node/native_node_napi.cpp",
769    "$ace_root/interfaces/native/node/node_extened.cpp",
770    "$ace_root/interfaces/native/node/node_model.cpp",
771    "$ace_root/interfaces/native/node/node_node_relative_container.cpp",
772    "$ace_root/interfaces/native/node/node_transition.cpp",
773    "$ace_root/interfaces/native/node/style_modifier.cpp",
774    "ui_input_event_first_test.cpp",
775  ]
776
777  configs = [
778    "$ace_root/test/unittest:ace_unittest_config",
779    ":c_api_configs",
780  ]
781
782  include_dirs = [
783    "$ace_root/frameworks/core/interfaces/arkoala",
784    "$ace_root/frameworks/",
785    "$ace_root/interfaces/native/",
786    "$ace_root/interfaces/native/node",
787    "$ace_root",
788  ]
789
790  deps = [
791    "$ace_root/test/unittest:ace_base",
792    "$ace_root/test/unittest:ace_components_base",
793    "$ace_root/test/unittest:ace_components_event",
794    "$ace_root/test/unittest:ace_components_gestures",
795    "$ace_root/test/unittest:ace_components_layout",
796    "$ace_root/test/unittest:ace_components_manager",
797    "$ace_root/test/unittest:ace_components_mock",
798    "$ace_root/test/unittest:ace_components_pattern",
799    "$ace_root/test/unittest:ace_components_property",
800    "$ace_root/test/unittest:ace_components_render",
801    "$ace_root/test/unittest:ace_components_syntax",
802    "$ace_root/test/unittest:ace_core_animation",
803    "$ace_root/test/unittest:ace_core_extra",
804  ]
805
806  external_deps = [
807    "cJSON:cjson",
808    "c_utils:utils",
809    "googletest:gmock_main",
810    "graphic_2d:2d_graphics",
811    "graphic_2d:librender_service_client",
812    "hilog:libhilog",
813    "image_framework:image",
814    "image_framework:image_native",
815    "napi:ace_napi",
816    "resource_management:global_resmgr",
817  ]
818}
819
820ohos_unittest("drag_and_drop_test") {
821  module_out_path = interface_test_output_path
822
823  sources = [
824    "$ace_root/interfaces/native/event/drag_and_drop_impl.cpp",
825    "$ace_root/interfaces/native/node/animate_impl.cpp",
826    "$ace_root/interfaces/native/node/dialog_model.cpp",
827    "$ace_root/interfaces/native/node/event_converter.cpp",
828    "$ace_root/interfaces/native/node/gesture_impl.cpp",
829    "$ace_root/interfaces/native/node/native_impl.cpp",
830    "$ace_root/interfaces/native/node/native_node_napi.cpp",
831    "$ace_root/interfaces/native/node/node_extened.cpp",
832    "$ace_root/interfaces/native/node/node_model.cpp",
833    "$ace_root/interfaces/native/node/node_node_relative_container.cpp",
834    "$ace_root/interfaces/native/node/node_transition.cpp",
835    "$ace_root/interfaces/native/node/style_modifier.cpp",
836    "drag_and_drop_test.cpp",
837  ]
838
839  configs = [
840    "$ace_root/test/unittest:ace_unittest_config",
841    ":c_api_configs",
842  ]
843
844  include_dirs = [
845    "$ace_root/frameworks/core/interfaces/arkoala",
846    "$ace_root/frameworks/",
847    "$ace_root/interfaces/native/",
848    "$ace_root/interfaces/native/node",
849    "$ace_root",
850  ]
851
852  deps = [
853    "$ace_root/test/unittest:ace_base",
854    "$ace_root/test/unittest:ace_components_base",
855    "$ace_root/test/unittest:ace_components_event",
856    "$ace_root/test/unittest:ace_components_gestures",
857    "$ace_root/test/unittest:ace_components_layout",
858    "$ace_root/test/unittest:ace_components_manager",
859    "$ace_root/test/unittest:ace_components_mock",
860    "$ace_root/test/unittest:ace_components_pattern",
861    "$ace_root/test/unittest:ace_components_property",
862    "$ace_root/test/unittest:ace_components_render",
863    "$ace_root/test/unittest:ace_components_syntax",
864    "$ace_root/test/unittest:ace_core_animation",
865    "$ace_root/test/unittest:ace_core_extra",
866  ]
867
868  public_deps = [
869    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
870    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
871  ]
872
873  external_deps = [
874    "cJSON:cjson",
875    "c_utils:utils",
876    "googletest:gmock_main",
877    "hilog:libhilog",
878    "image_framework:image",
879    "image_framework:image_native",
880    "image_framework:pixelmap",
881    "napi:ace_napi",
882    "resource_management:global_resmgr",
883    "udmf:udmf_client",
884  ]
885}
886
887ohos_unittest("node_transition_test") {
888  module_out_path = interface_test_output_path
889
890  sources = [
891    "$ace_root/adapter/ohos/osal/log_wrapper.cpp",
892    "$ace_root/frameworks/core/components/common/properties/color.cpp",
893    "$ace_root/frameworks/core/components_v2/inspector/inspector_constants.cpp",
894    "$ace_root/interfaces/native/node/animate_impl.cpp",
895    "$ace_root/interfaces/native/node/dialog_model.cpp",
896    "$ace_root/interfaces/native/node/event_converter.cpp",
897    "$ace_root/interfaces/native/node/gesture_impl.cpp",
898    "$ace_root/interfaces/native/node/native_impl.cpp",
899    "$ace_root/interfaces/native/node/native_node_napi.cpp",
900    "$ace_root/interfaces/native/node/node_animate.cpp",
901    "$ace_root/interfaces/native/node/node_extened.cpp",
902    "$ace_root/interfaces/native/node/node_model.cpp",
903    "$ace_root/interfaces/native/node/node_transition.cpp",
904    "$ace_root/interfaces/native/node/node_transition_imp.cpp",
905    "$ace_root/interfaces/native/node/style_modifier.cpp",
906    "$ace_root/test/mock/adapter/mock_log_wrapper.cpp",
907    "node_transition_test.cpp",
908  ]
909
910  configs = [
911    "$ace_root/test/unittest:ace_unittest_config",
912    ":c_api_configs",
913  ]
914
915  include_dirs = [
916    "$ace_root/frameworks/core/interfaces/arkoala",
917    "$ace_root/frameworks/",
918    "$ace_root/interfaces/native/",
919    "$ace_root/interfaces/native/node",
920    "$ace_root",
921    "$ace_root/interfaces/inner_api/drawable_descriptor",
922  ]
923
924  deps = []
925
926  public_deps = [
927    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
928    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
929  ]
930
931  external_deps = [
932    "cJSON:cjson",
933    "c_utils:utils",
934    "googletest:gmock_main",
935    "hilog:libhilog",
936    "image_framework:image",
937    "image_framework:image_native",
938    "napi:ace_napi",
939    "resource_management:global_resmgr",
940  ]
941}
942
943ohos_unittest("animate_impl_test") {
944  module_out_path = interface_test_output_path
945
946  sources = [
947    "$ace_root/adapter/ohos/osal/log_wrapper.cpp",
948    "$ace_root/frameworks/core/components/common/properties/color.cpp",
949    "$ace_root/interfaces/native/node/animate_impl.cpp",
950    "$ace_root/interfaces/native/node/dialog_model.cpp",
951    "$ace_root/interfaces/native/node/event_converter.cpp",
952    "$ace_root/interfaces/native/node/gesture_impl.cpp",
953    "$ace_root/interfaces/native/node/native_impl.cpp",
954    "$ace_root/interfaces/native/node/native_node_napi.cpp",
955    "$ace_root/interfaces/native/node/node_animate.cpp",
956    "$ace_root/interfaces/native/node/node_extened.cpp",
957    "$ace_root/interfaces/native/node/node_model.cpp",
958    "$ace_root/interfaces/native/node/node_transition.cpp",
959    "$ace_root/interfaces/native/node/node_transition_imp.cpp",
960    "$ace_root/interfaces/native/node/style_modifier.cpp",
961    "$ace_root/test/mock/adapter/mock_log_wrapper.cpp",
962    "animate_impl_test.cpp",
963  ]
964
965  configs = [
966    "$ace_root/test/unittest:ace_unittest_config",
967    ":c_api_configs",
968  ]
969
970  include_dirs = [
971    "$ace_root/frameworks/base/error",
972    "$ace_root/frameworks/core/interfaces/arkoala",
973    "$ace_root/frameworks/",
974    "$ace_root/interfaces/native/",
975    "$ace_root/interfaces/native/node",
976    "$ace_root",
977    "$ace_root/interfaces/inner_api/drawable_descriptor",
978  ]
979
980  deps = []
981
982  public_deps = [
983    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
984    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
985  ]
986
987  external_deps = [
988    "cJSON:cjson",
989    "c_utils:utils",
990    "googletest:gmock_main",
991    "hilog:libhilog",
992    "image_framework:image",
993    "image_framework:image_native",
994    "napi:ace_napi",
995    "resource_management:global_resmgr",
996  ]
997}
998
999ohos_unittest("dialog_model_test") {
1000  module_out_path = interface_test_output_path
1001
1002  sources = [
1003    "$ace_root/adapter/ohos/osal/log_wrapper.cpp",
1004    "$ace_root/frameworks/core/components/common/properties/color.cpp",
1005    "$ace_root/interfaces/native/node/animate_impl.cpp",
1006    "$ace_root/interfaces/native/node/dialog_model.cpp",
1007    "$ace_root/interfaces/native/node/event_converter.cpp",
1008    "$ace_root/interfaces/native/node/gesture_impl.cpp",
1009    "$ace_root/interfaces/native/node/native_impl.cpp",
1010    "$ace_root/interfaces/native/node/native_node_napi.cpp",
1011    "$ace_root/interfaces/native/node/node_animate.cpp",
1012    "$ace_root/interfaces/native/node/node_extened.cpp",
1013    "$ace_root/interfaces/native/node/node_model.cpp",
1014    "$ace_root/interfaces/native/node/node_transition.cpp",
1015    "$ace_root/interfaces/native/node/node_transition_imp.cpp",
1016    "$ace_root/interfaces/native/node/style_modifier.cpp",
1017    "$ace_root/test/mock/adapter/mock_log_wrapper.cpp",
1018    "dialog_model_test.cpp",
1019  ]
1020
1021  configs = [
1022    "$ace_root/test/unittest:ace_unittest_config",
1023    ":c_api_configs",
1024  ]
1025
1026  include_dirs = [
1027    "$ace_root/frameworks/base/error",
1028    "$ace_root/frameworks/core/interfaces/arkoala",
1029    "$ace_root/frameworks/",
1030    "$ace_root/interfaces/native/",
1031    "$ace_root/interfaces/native/node",
1032    "$ace_root",
1033    "$ace_root/interfaces/inner_api/drawable_descriptor",
1034  ]
1035
1036  deps = []
1037
1038  public_deps = [
1039    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
1040    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
1041  ]
1042
1043  external_deps = [
1044    "cJSON:cjson",
1045    "c_utils:utils",
1046    "googletest:gmock_main",
1047    "hilog:libhilog",
1048    "image_framework:image",
1049    "image_framework:image_native",
1050    "napi:ace_napi",
1051    "resource_management:global_resmgr",
1052  ]
1053}
1054
1055ohos_unittest("node_extened_test") {
1056  module_out_path = interface_test_output_path
1057
1058  sources = [
1059    "$ace_root/adapter/ohos/osal/log_wrapper.cpp",
1060    "$ace_root/frameworks/core/components/common/properties/color.cpp",
1061    "$ace_root/frameworks/core/components_v2/inspector/inspector_constants.cpp",
1062    "$ace_root/interfaces/native/node/animate_impl.cpp",
1063    "$ace_root/interfaces/native/node/dialog_model.cpp",
1064    "$ace_root/interfaces/native/node/event_converter.cpp",
1065    "$ace_root/interfaces/native/node/gesture_impl.cpp",
1066    "$ace_root/interfaces/native/node/native_impl.cpp",
1067    "$ace_root/interfaces/native/node/native_node_napi.cpp",
1068    "$ace_root/interfaces/native/node/node_animate.cpp",
1069    "$ace_root/interfaces/native/node/node_extened.cpp",
1070    "$ace_root/interfaces/native/node/node_model.cpp",
1071    "$ace_root/interfaces/native/node/node_transition.cpp",
1072    "$ace_root/interfaces/native/node/node_transition_imp.cpp",
1073    "$ace_root/interfaces/native/node/style_modifier.cpp",
1074    "$ace_root/test/mock/adapter/mock_log_wrapper.cpp",
1075    "node_extened_test.cpp",
1076  ]
1077
1078  configs = [
1079    "$ace_root/test/unittest:ace_unittest_config",
1080    ":c_api_configs",
1081  ]
1082
1083  include_dirs = [
1084    "$ace_root/frameworks/base/error",
1085    "$ace_root/frameworks/core/interfaces/arkoala",
1086    "$ace_root/frameworks/",
1087    "$ace_root/interfaces/native/",
1088    "$ace_root/interfaces/native/node",
1089    "$ace_root",
1090    "$ace_root/interfaces/inner_api/drawable_descriptor",
1091  ]
1092
1093  deps = []
1094
1095  public_deps = [
1096    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
1097    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
1098  ]
1099
1100  external_deps = [
1101    "cJSON:cjson",
1102    "c_utils:utils",
1103    "googletest:gmock_main",
1104    "hilog:libhilog",
1105    "image_framework:image",
1106    "image_framework:image_native",
1107    "napi:ace_napi",
1108    "resource_management:global_resmgr",
1109  ]
1110}
1111
1112ohos_unittest("node_animate_test") {
1113  module_out_path = interface_test_output_path
1114
1115  sources = [
1116    "$ace_root/adapter/ohos/osal/log_wrapper.cpp",
1117    "$ace_root/frameworks/core/components/common/properties/color.cpp",
1118    "$ace_root/frameworks/core/components_v2/inspector/inspector_constants.cpp",
1119    "$ace_root/interfaces/native/node/animate_impl.cpp",
1120    "$ace_root/interfaces/native/node/dialog_model.cpp",
1121    "$ace_root/interfaces/native/node/event_converter.cpp",
1122    "$ace_root/interfaces/native/node/gesture_impl.cpp",
1123    "$ace_root/interfaces/native/node/native_impl.cpp",
1124    "$ace_root/interfaces/native/node/native_node_napi.cpp",
1125    "$ace_root/interfaces/native/node/node_animate.cpp",
1126    "$ace_root/interfaces/native/node/node_extened.cpp",
1127    "$ace_root/interfaces/native/node/node_model.cpp",
1128    "$ace_root/interfaces/native/node/node_transition.cpp",
1129    "$ace_root/interfaces/native/node/node_transition_imp.cpp",
1130    "$ace_root/interfaces/native/node/style_modifier.cpp",
1131    "$ace_root/test/mock/adapter/mock_log_wrapper.cpp",
1132    "node_animate_test.cpp",
1133  ]
1134
1135  configs = [
1136    "$ace_root/test/unittest:ace_unittest_config",
1137    ":c_api_configs",
1138  ]
1139
1140  include_dirs = [
1141    "$ace_root/frameworks/base/error",
1142    "$ace_root/frameworks/core/interfaces/arkoala",
1143    "$ace_root/frameworks/",
1144    "$ace_root/interfaces/native/",
1145    "$ace_root/interfaces/native/node",
1146    "$ace_root",
1147  ]
1148
1149  deps = []
1150
1151  public_deps = [
1152    "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
1153    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
1154  ]
1155
1156  external_deps = [
1157    "cJSON:cjson",
1158    "c_utils:utils",
1159    "googletest:gmock_main",
1160    "hilog:libhilog",
1161    "image_framework:image",
1162    "image_framework:image_native",
1163    "napi:ace_napi",
1164    "resource_management:global_resmgr",
1165  ]
1166}
1167
1168ohos_unittest("js_drawable_descriptor_test") {
1169  module_out_path = interface_test_output_path
1170
1171  sources = [
1172    "$ace_root/interfaces/inner_api/drawable_descriptor/adapter/preview/file_uri_utils_preview.cpp",
1173    "$ace_root/interfaces/inner_api/drawable_descriptor/adapter/preview/image_data_preview.cpp",
1174    "$ace_root/interfaces/inner_api/drawable_descriptor/adapter/preview/pixel_map_preview.cpp",
1175    "$ace_root/interfaces/inner_api/drawable_descriptor/adapter/preview/resource_adapter_preview.cpp",
1176    "$ace_root/interfaces/inner_api/drawable_descriptor/adapter/preview/task_pool_preview.cpp",
1177    "$ace_root/interfaces/inner_api/drawable_descriptor/base/source_info.cpp",
1178    "$ace_root/interfaces/inner_api/drawable_descriptor/core/pixelmap_drawable_descriptor.cpp",
1179    "$ace_root/interfaces/inner_api/drawable_descriptor/drawable_descriptor.cpp",
1180    "$ace_root/interfaces/inner_api/drawable_descriptor/js_drawable_descriptor.cpp",
1181    "$ace_root/interfaces/inner_api/drawable_descriptor/loader/image_loader.cpp",
1182    "$ace_root/interfaces/inner_api/drawable_descriptor/loader/resource_image_loader.cpp",
1183    "$ace_root/interfaces/inner_api/drawable_descriptor/utils/napi_utils.cpp",
1184    "$ace_root/interfaces/inner_api/drawable_descriptor/utils/resource_manager.cpp",
1185    "$ace_root/interfaces/native/node/native_drawable_descriptor.cpp",
1186    "js_drawable_descriptor_test.cpp",
1187  ]
1188
1189  configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
1190
1191  include_dirs = [
1192    "$ace_root/interfaces/native/node",
1193    "$ace_root/interfaces/native/",
1194    "$ace_root/interfaces/inner_api/drawable_descriptor",
1195  ]
1196
1197  deps = []
1198
1199  cflags = [
1200    "-Dprivate=public",
1201    "-Dprotected=public",
1202  ]
1203
1204  external_deps = [
1205    "cJSON:cjson",
1206    "c_utils:utils",
1207    "googletest:gmock_main",
1208    "graphic_2d:2d_graphics",
1209    "graphic_2d:librender_service_client",
1210    "hilog:libhilog",
1211    "image_framework:image",
1212    "image_framework:image_native",
1213    "napi:ace_napi",
1214    "resource_management:global_resmgr",
1215  ]
1216}
1217
1218ohos_unittest("xcomponent_controller_test") {
1219  module_out_path = interface_test_output_path
1220
1221  sources = [ "xcomponent_controller_test.cpp" ]
1222
1223  configs = [
1224    "$ace_root/test/unittest:ace_unittest_config",
1225    ":c_api_configs",
1226  ]
1227
1228  include_dirs = [
1229    "$ace_root/frameworks/core/interfaces/arkoala",
1230    "$ace_root/frameworks/",
1231    "$ace_root/interfaces/native/",
1232    "$ace_root/interfaces/native/node",
1233    "$ace_root",
1234    "$ace_root/interfaces/inner_api/xcomponent_controller",
1235    "$ace_root/interfaces/inner_api/ace/",
1236  ]
1237
1238  deps = [ "$ace_root/interfaces/inner_api/xcomponent_controller:ace_xcomponent_controller" ]
1239
1240  external_deps = [
1241    "cJSON:cjson",
1242    "c_utils:utils",
1243    "ets_runtime:libark_jsruntime",
1244    "googletest:gmock_main",
1245    "hilog:libhilog",
1246    "image_framework:image",
1247    "image_framework:image_native",
1248    "napi:ace_napi",
1249    "resource_management:global_resmgr",
1250  ]
1251}
1252
1253group("interfaces_unittest") {
1254  testonly = true
1255  deps = [
1256    ":ace_forward_compatibility_test",
1257    ":animate_impl_test",
1258    ":dialog_model_test",
1259    ":drag_and_drop_test",
1260    ":drawable_descriptor_test",
1261    ":extension_custom_node_test_ng",
1262    ":form_render_delegate_impl_test",
1263    ":form_render_delegate_proxy_test",
1264    ":form_render_delegate_stub_test",
1265    ":form_render_dispatcher_impl_test",
1266    ":form_render_dispatcher_stub_test",
1267    ":form_render_group_test",
1268    ":form_render_test",
1269    ":js_drawable_descriptor_test",
1270    ":native_key_event_test",
1271    ":native_node_napi_test",
1272    ":navigation_controller_test",
1273    ":node_animate_test",
1274    ":node_component_snapshot_test",
1275    ":node_extened_test",
1276    ":node_transition_test",
1277    ":ui_content_test",
1278    ":ui_event_test",
1279    ":ui_input_event_first_test",
1280    ":ui_input_event_test",
1281    ":viewport_config_test",
1282    ":xcomponent_controller_test",
1283    "ace_kit:ace_kit_test",
1284  ]
1285}
1286