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