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 "ui_content_test.cpp", 31 ] 32 33 deps = [ 34 "$ace_root/frameworks/base:ace_memory_monitor_ohos", 35 "$ace_root/interfaces/inner_api/ace:ace_forward_compatibility", 36 "$ace_root/test/unittest:ace_engine_unittest_flutter_deps", 37 "$ace_root/test/unittest:ace_unittest_log", 38 "$ace_root/test/unittest:ace_unittest_trace", 39 "//third_party/googletest:gmock_main", 40 ] 41 42 external_deps = [ 43 "ability_runtime:abilitykit_native", 44 "cJSON:cjson", 45 "graphic_2d:librender_service_client", 46 "image_framework:image", 47 "input:libmmi-client", 48 "ipc:ipc_single", 49 "window_manager:libdm", 50 "window_manager:libwm", 51 "window_manager:scene_session", 52 "window_manager:scene_session_manager", 53 ] 54 55 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 56} 57 58ohos_unittest("form_render_test") { 59 module_out_path = interface_test_output_path 60 include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ] 61 sources = [ 62 "$ace_root/interfaces/inner_api/form_render/src/form_renderer.cpp", 63 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_impl.cpp", 64 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_proxy.cpp", 65 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_stub.cpp", 66 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_impl.cpp", 67 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_proxy.cpp", 68 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_stub.cpp", 69 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_group.cpp", 70 "$ace_root/test/mock/interfaces/mock_uicontent_creator.cpp", 71 "form_render_test.cpp", 72 "form_renderer_dispatcher_proxy_test.cpp", 73 ] 74 75 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 76 77 deps = [ 78 "$ace_root/test/unittest:ace_base", 79 "$ace_root/test/unittest:ace_components_base", 80 "$ace_root/test/unittest:ace_components_event", 81 "$ace_root/test/unittest:ace_components_gestures", 82 "$ace_root/test/unittest:ace_components_layout", 83 "$ace_root/test/unittest:ace_components_manager", 84 "$ace_root/test/unittest:ace_components_mock", 85 "$ace_root/test/unittest:ace_components_pattern", 86 "$ace_root/test/unittest:ace_components_property", 87 "$ace_root/test/unittest:ace_components_render", 88 "$ace_root/test/unittest:ace_components_syntax", 89 "$ace_root/test/unittest:ace_core_animation", 90 "$ace_root/test/unittest:ace_core_extra", 91 "$ace_root/test/unittest:ace_engine_unittest_flutter_deps", 92 "$ace_root/test/unittest:ace_unittest_log", 93 "//third_party/googletest:gmock_main", 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 "graphic_2d:librender_service_client", 108 "graphic_surface:surface", 109 "hilog:libhilog", 110 "input:libmmi-client", 111 "ipc:ipc_core", 112 "napi:ace_napi", 113 ] 114} 115 116ohos_unittest("form_render_group_test") { 117 module_out_path = interface_test_output_path 118 include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ] 119 sources = [ 120 "$ace_root/interfaces/inner_api/form_render/src/form_renderer.cpp", 121 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_impl.cpp", 122 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_proxy.cpp", 123 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_stub.cpp", 124 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_impl.cpp", 125 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_proxy.cpp", 126 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_stub.cpp", 127 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_group.cpp", 128 "$ace_root/test/mock/base/mock_ace_performance_check.cpp", 129 "$ace_root/test/mock/base/mock_ace_performance_monitor.cpp", 130 "$ace_root/test/mock/base/mock_engine_helper.cpp", 131 "$ace_root/test/mock/base/mock_frame_trace_adapter.cpp", 132 "$ace_root/test/mock/base/mock_ressched_report.cpp", 133 "$ace_root/test/mock/base/mock_system_properties.cpp", 134 "$ace_root/test/mock/core/common/mock_ace_application_info.cpp", 135 "$ace_root/test/mock/core/common/mock_container.cpp", 136 "$ace_root/test/mock/core/common/mock_frame_report.cpp", 137 "$ace_root/test/mock/core/common/mock_raw_recognizer.cpp", 138 "$ace_root/test/mock/core/image_provider/mock_image_source_info.cpp", 139 "$ace_root/test/mock/core/package/mock_package_event_proxy.cpp", 140 "$ace_root/test/mock/core/pipeline/mock_element_register.cpp", 141 "$ace_root/test/mock/core/pipeline/mock_pipeline_context.cpp", 142 "$ace_root/test/mock/core/render/mock_animation_utils.cpp", 143 "$ace_root/test/mock/core/render/mock_modifier_adapter.cpp", 144 "$ace_root/test/mock/core/render/mock_render_context_creator.cpp", 145 "$ace_root/test/mock/interfaces/mock_uicontent_creator.cpp", 146 "form_render_group_test.cpp", 147 ] 148 149 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 150 151 deps = [ 152 "$ace_root/test/unittest:ace_base", 153 "$ace_root/test/unittest:ace_components_base", 154 "$ace_root/test/unittest:ace_components_event", 155 "$ace_root/test/unittest:ace_components_gestures", 156 "$ace_root/test/unittest:ace_components_layout", 157 "$ace_root/test/unittest:ace_components_manager", 158 "$ace_root/test/unittest:ace_components_pattern", 159 "$ace_root/test/unittest:ace_components_property", 160 "$ace_root/test/unittest:ace_components_render", 161 "$ace_root/test/unittest:ace_components_syntax", 162 "$ace_root/test/unittest:ace_core_animation", 163 "$ace_root/test/unittest:ace_core_extra", 164 "$ace_root/test/unittest:ace_engine_unittest_flutter_deps", 165 "$ace_root/test/unittest:ace_unittest_log", 166 "$ace_root/test/unittest:ace_unittest_trace", 167 "//third_party/googletest:gmock_main", 168 ] 169 170 external_deps = [ 171 "ability_base:want", 172 "ability_runtime:ability_context_native", 173 "ability_runtime:ability_manager", 174 "ability_runtime:runtime", 175 "accessibility:accessibility_common", 176 "ace_engine:ace_uicontent", 177 "cJSON:cjson", 178 "c_utils:utils", 179 "eventhandler:libeventhandler", 180 "form_fwk:form_manager", 181 "graphic_2d:librender_service_client", 182 "graphic_surface:surface", 183 "hilog:libhilog", 184 "input:libmmi-client", 185 "ipc:ipc_core", 186 "napi:ace_napi", 187 ] 188} 189 190ohos_unittest("form_render_delegate_proxy_test") { 191 module_out_path = interface_test_output_path 192 include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ] 193 sources = [ 194 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_impl.cpp", 195 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_proxy.cpp", 196 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_stub.cpp", 197 "$ace_root/test/mock/base/mock_ace_performance_monitor.cpp", 198 "$ace_root/test/mock/base/mock_system_properties.cpp", 199 "$ace_root/test/mock/core/common/mock_container.cpp", 200 "form_render_delegate_proxy_test.cpp", 201 ] 202 203 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 204 205 deps = [ "//third_party/googletest:gmock_main" ] 206 207 external_deps = [ 208 "ability_base:want", 209 "ability_runtime:ability_context_native", 210 "ability_runtime:ability_manager", 211 "ability_runtime:runtime", 212 "accessibility:accessibility_common", 213 "ace_engine:ace_uicontent", 214 "cJSON:cjson", 215 "c_utils:utils", 216 "eventhandler:libeventhandler", 217 "form_fwk:form_manager", 218 "graphic_2d:librender_service_client", 219 "graphic_surface:surface", 220 "hilog:libhilog", 221 "input:libmmi-client", 222 "ipc:ipc_core", 223 "napi:ace_napi", 224 ] 225} 226 227ohos_unittest("form_render_delegate_stub_test") { 228 module_out_path = interface_test_output_path 229 include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ] 230 sources = [ 231 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_impl.cpp", 232 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_stub.cpp", 233 "$ace_root/test/mock/base/mock_ace_performance_monitor.cpp", 234 "$ace_root/test/mock/base/mock_system_properties.cpp", 235 "$ace_root/test/mock/core/common/mock_container.cpp", 236 "form_render_delegate_stub_test.cpp", 237 ] 238 239 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 240 241 deps = [ "//third_party/googletest:gmock_main" ] 242 243 external_deps = [ 244 "ability_base:want", 245 "cJSON:cjson", 246 "c_utils:utils", 247 "eventhandler:libeventhandler", 248 "form_fwk:form_manager", 249 "graphic_2d:librender_service_client", 250 "graphic_surface:surface", 251 "hilog:libhilog", 252 "ipc:ipc_core", 253 "napi:ace_napi", 254 ] 255} 256 257ohos_unittest("form_render_dispatcher_stub_test") { 258 module_out_path = interface_test_output_path 259 include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ] 260 sources = [ 261 "$ace_root/interfaces/inner_api/form_render/src/form_renderer.cpp", 262 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_impl.cpp", 263 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_proxy.cpp", 264 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_stub.cpp", 265 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_impl.cpp", 266 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_proxy.cpp", 267 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_stub.cpp", 268 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_group.cpp", 269 "$ace_root/test/mock/base/mock_ace_performance_check.cpp", 270 "$ace_root/test/mock/base/mock_ace_performance_monitor.cpp", 271 "$ace_root/test/mock/base/mock_engine_helper.cpp", 272 "$ace_root/test/mock/base/mock_frame_trace_adapter.cpp", 273 "$ace_root/test/mock/base/mock_ressched_report.cpp", 274 "$ace_root/test/mock/base/mock_system_properties.cpp", 275 "$ace_root/test/mock/core/common/mock_ace_application_info.cpp", 276 "$ace_root/test/mock/core/common/mock_container.cpp", 277 "$ace_root/test/mock/core/common/mock_frame_report.cpp", 278 "$ace_root/test/mock/core/common/mock_raw_recognizer.cpp", 279 "$ace_root/test/mock/core/event/mock_touch_event.cpp", 280 "$ace_root/test/mock/core/image_provider/mock_image_source_info.cpp", 281 "$ace_root/test/mock/core/pipeline/mock_element_register.cpp", 282 "$ace_root/test/mock/core/pipeline/mock_pipeline_context.cpp", 283 "$ace_root/test/mock/core/render/mock_animation_utils.cpp", 284 "$ace_root/test/mock/core/render/mock_modifier_adapter.cpp", 285 "$ace_root/test/mock/core/render/mock_render_context_creator.cpp", 286 "$ace_root/test/mock/interfaces/mock_uicontent_creator.cpp", 287 "form_render_dispatcher_stub_test.cpp", 288 ] 289 290 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 291 292 deps = [ "//third_party/googletest:gmock_main" ] 293 294 external_deps = [ 295 "ability_base:want", 296 "ability_runtime:ability_context_native", 297 "ability_runtime:ability_manager", 298 "ability_runtime:runtime", 299 "accessibility:accessibility_common", 300 "ace_engine:ace_uicontent", 301 "cJSON:cjson", 302 "c_utils:utils", 303 "eventhandler:libeventhandler", 304 "form_fwk:form_manager", 305 "graphic_2d:librender_service_client", 306 "graphic_surface:surface", 307 "hilog:libhilog", 308 "input:libmmi-client", 309 "ipc:ipc_core", 310 "napi:ace_napi", 311 ] 312} 313 314ohos_unittest("form_render_delegate_impl_test") { 315 module_out_path = interface_test_output_path 316 include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ] 317 sources = [ 318 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_impl.cpp", 319 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_stub.cpp", 320 "$ace_root/test/mock/base/mock_ace_performance_monitor.cpp", 321 "$ace_root/test/mock/base/mock_system_properties.cpp", 322 "$ace_root/test/mock/core/common/mock_container.cpp", 323 "form_render_delegate_impl_test.cpp", 324 ] 325 326 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 327 328 deps = [ "//third_party/googletest:gmock_main" ] 329 330 external_deps = [ 331 "ability_base:want", 332 "cJSON:cjson", 333 "c_utils:utils", 334 "eventhandler:libeventhandler", 335 "form_fwk:form_manager", 336 "graphic_2d:librender_service_client", 337 "graphic_surface:surface", 338 "hilog:libhilog", 339 "ipc:ipc_core", 340 "napi:ace_napi", 341 ] 342} 343 344ohos_unittest("form_render_dispatcher_impl_test") { 345 module_out_path = interface_test_output_path 346 include_dirs = [ "$ace_root/interfaces/inner_api/form_render/include" ] 347 sources = [ 348 "$ace_root/interfaces/inner_api/form_render/src/form_renderer.cpp", 349 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_impl.cpp", 350 "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_stub.cpp", 351 "form_render_dispatcher_impl_test.cpp", 352 ] 353 354 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 355 356 deps = [ "//third_party/googletest:gmock_main" ] 357 358 external_deps = [ 359 "ability_base:want", 360 "ability_runtime:ability_context_native", 361 "ability_runtime:ability_manager", 362 "ability_runtime:runtime", 363 "accessibility:accessibility_common", 364 "ace_engine:ace_uicontent", 365 "cJSON:cjson", 366 "c_utils:utils", 367 "eventhandler:libeventhandler", 368 "form_fwk:form_manager", 369 "graphic_2d:librender_service_client", 370 "graphic_surface:surface", 371 "hilog:libhilog", 372 "input:libmmi-client", 373 "ipc:ipc_core", 374 "napi:ace_napi", 375 ] 376} 377 378ohos_unittest("drawable_descriptor_test") { 379 module_out_path = interface_test_output_path 380 381 sources = [ 382 "$ace_root/interfaces/inner_api/drawable_descriptor/drawable_descriptor.cpp", 383 "$ace_root/interfaces/inner_api/drawable_descriptor/image_converter.cpp", 384 "$ace_root/interfaces/native/node/native_drawable_descriptor.cpp", 385 "drawable_descriptor_test.cpp", 386 ] 387 388 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 389 390 include_dirs = [ 391 "$ace_root/interfaces/native/node", 392 "$ace_root/interfaces/native/", 393 "$ace_root/interfaces/inner_api/drawable_descriptor", 394 ] 395 396 deps = [ "//third_party/googletest:gmock_main" ] 397 398 external_deps = [ 399 "cJSON:cjson", 400 "c_utils:utils", 401 "graphic_2d:2d_graphics", 402 "graphic_2d:librender_service_client", 403 "hilog:libhilog", 404 "image_framework:image", 405 "image_framework:image_native", 406 "napi:ace_napi", 407 "resource_management:global_resmgr", 408 ] 409} 410 411ohos_unittest("ui_event_test") { 412 module_out_path = interface_test_output_path 413 414 sources = [ 415 "$ace_root/interfaces/inner_api/ace/ui_event.cpp", 416 "$ace_root/interfaces/inner_api/ace/ui_event_func.cpp", 417 "ui_event_test.cpp", 418 ] 419 420 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 421 include_dirs = [ "${ace_root}/interfaces/inner_api/ace" ] 422 deps = [ 423 "$ace_root/frameworks/core/components/theme:build_theme_code", 424 "$ace_root/test/unittest:ace_base", 425 "$ace_root/test/unittest:ace_components_base", 426 "$ace_root/test/unittest:ace_components_event", 427 "$ace_root/test/unittest:ace_components_gestures", 428 "$ace_root/test/unittest:ace_components_layout", 429 "$ace_root/test/unittest:ace_components_manager", 430 "$ace_root/test/unittest:ace_components_mock", 431 "$ace_root/test/unittest:ace_components_pattern", 432 "$ace_root/test/unittest:ace_components_property", 433 "$ace_root/test/unittest:ace_components_render", 434 "$ace_root/test/unittest:ace_components_syntax", 435 "$ace_root/test/unittest:ace_core_animation", 436 "$ace_root/test/unittest:ace_core_extra", 437 "//third_party/googletest:gmock_main", 438 ] 439 external_deps = [ 440 "hilog:libhilog", 441 "init:libbegetutil", 442 ] 443} 444 445ace_unittest("extension_custom_node_test_ng") { 446 type = "new" 447 module_output = "basic" 448 sources = [ 449 "$ace_root/frameworks/core/interfaces/native/node/extension_custom_node.cpp", 450 "extension_custom_node_test_ng.cpp", 451 ] 452} 453 454ohos_unittest("ace_forward_compatibility_test") { 455 module_out_path = interface_test_output_path 456 457 sources = [ 458 "$ace_root/interfaces/inner_api/ace/ace_forward_compatibility.cpp", 459 "ace_forward_compatibility_test.cpp", 460 ] 461 462 include_dirs = [ "${ace_root}/interfaces/inner_api/ace" ] 463 464 external_deps = [ 465 "hilog:libhilog", 466 "init:libbegetutil", 467 ] 468} 469 470ohos_unittest("navigation_controller_test") { 471 module_out_path = interface_test_output_path 472 473 sources = [ "navigation_controller_test.cpp" ] 474 475 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 476 include_dirs = [ "${ace_root}/interfaces/inner_api/ace" ] 477 478 external_deps = [ 479 "hilog:libhilog", 480 "init:libbegetutil", 481 ] 482} 483 484config("c_api_configs") { 485 cflags = [ "-Wno-missing-braces" ] 486} 487 488ohos_unittest("native_node_napi_test") { 489 module_out_path = interface_test_output_path 490 491 sources = [ 492 "$ace_root/interfaces/native/node/animate_impl.cpp", 493 "$ace_root/interfaces/native/node/dialog_model.cpp", 494 "$ace_root/interfaces/native/node/event_converter.cpp", 495 "$ace_root/interfaces/native/node/gesture_impl.cpp", 496 "$ace_root/interfaces/native/node/native_impl.cpp", 497 "$ace_root/interfaces/native/node/native_node_napi.cpp", 498 "$ace_root/interfaces/native/node/node_extened.cpp", 499 "$ace_root/interfaces/native/node/node_model.cpp", 500 "$ace_root/interfaces/native/node/node_node_relative_container.cpp", 501 "$ace_root/interfaces/native/node/node_transition.cpp", 502 "$ace_root/interfaces/native/node/style_modifier.cpp", 503 "native_gesture_test.cpp", 504 "native_node_napi_test.cpp", 505 "native_node_test.cpp", 506 ] 507 508 configs = [ 509 "$ace_root/test/unittest:ace_unittest_config", 510 ":c_api_configs", 511 ] 512 513 include_dirs = [ 514 "$ace_root/frameworks/core/interfaces/arkoala", 515 "$ace_root/frameworks/", 516 "$ace_root/interfaces/native/", 517 "$ace_root/interfaces/native/node", 518 "$ace_root", 519 "$ace_root/interfaces/inner_api/drawable_descriptor", 520 ] 521 522 deps = [ 523 "$ace_root/test/unittest:ace_base", 524 "$ace_root/test/unittest:ace_components_base", 525 "$ace_root/test/unittest:ace_components_event", 526 "$ace_root/test/unittest:ace_components_gestures", 527 "$ace_root/test/unittest:ace_components_layout", 528 "$ace_root/test/unittest:ace_components_manager", 529 "$ace_root/test/unittest:ace_components_mock", 530 "$ace_root/test/unittest:ace_components_pattern", 531 "$ace_root/test/unittest:ace_components_property", 532 "$ace_root/test/unittest:ace_components_render", 533 "$ace_root/test/unittest:ace_components_syntax", 534 "$ace_root/test/unittest:ace_core_animation", 535 "$ace_root/test/unittest:ace_core_extra", 536 "//third_party/googletest:gmock_main", 537 ] 538 539 public_deps = [ 540 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics", 541 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 542 ] 543 544 external_deps = [ 545 "cJSON:cjson", 546 "c_utils:utils", 547 "hilog:libhilog", 548 "image_framework:image", 549 "image_framework:image_native", 550 "napi:ace_napi", 551 "resource_management:global_resmgr", 552 ] 553} 554 555ohos_unittest("drag_and_drop_test") { 556 module_out_path = interface_test_output_path 557 558 sources = [ 559 "$ace_root/interfaces/native/event/drag_and_drop_impl.cpp", 560 "$ace_root/interfaces/native/node/animate_impl.cpp", 561 "$ace_root/interfaces/native/node/dialog_model.cpp", 562 "$ace_root/interfaces/native/node/event_converter.cpp", 563 "$ace_root/interfaces/native/node/gesture_impl.cpp", 564 "$ace_root/interfaces/native/node/native_impl.cpp", 565 "$ace_root/interfaces/native/node/native_node_napi.cpp", 566 "$ace_root/interfaces/native/node/node_extened.cpp", 567 "$ace_root/interfaces/native/node/node_model.cpp", 568 "$ace_root/interfaces/native/node/node_node_relative_container.cpp", 569 "$ace_root/interfaces/native/node/node_transition.cpp", 570 "$ace_root/interfaces/native/node/style_modifier.cpp", 571 "drag_and_drop_test.cpp", 572 ] 573 574 configs = [ 575 "$ace_root/test/unittest:ace_unittest_config", 576 ":c_api_configs", 577 ] 578 579 include_dirs = [ 580 "$ace_root/frameworks/core/interfaces/arkoala", 581 "$ace_root/frameworks/", 582 "$ace_root/interfaces/native/", 583 "$ace_root/interfaces/native/node", 584 "$ace_root", 585 ] 586 587 deps = [ 588 "$ace_root/test/unittest:ace_base", 589 "$ace_root/test/unittest:ace_components_base", 590 "$ace_root/test/unittest:ace_components_event", 591 "$ace_root/test/unittest:ace_components_gestures", 592 "$ace_root/test/unittest:ace_components_layout", 593 "$ace_root/test/unittest:ace_components_manager", 594 "$ace_root/test/unittest:ace_components_mock", 595 "$ace_root/test/unittest:ace_components_pattern", 596 "$ace_root/test/unittest:ace_components_property", 597 "$ace_root/test/unittest:ace_components_render", 598 "$ace_root/test/unittest:ace_components_syntax", 599 "$ace_root/test/unittest:ace_core_animation", 600 "$ace_root/test/unittest:ace_core_extra", 601 "//third_party/googletest:gmock_main", 602 ] 603 604 public_deps = [ 605 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics", 606 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 607 ] 608 609 external_deps = [ 610 "cJSON:cjson", 611 "c_utils:utils", 612 "hilog:libhilog", 613 "image_framework:image", 614 "image_framework:image_native", 615 "image_framework:pixelmap", 616 "napi:ace_napi", 617 "resource_management:global_resmgr", 618 "udmf:udmf_client", 619 ] 620} 621 622ohos_unittest("node_transition_test") { 623 module_out_path = interface_test_output_path 624 625 sources = [ 626 "$ace_root/adapter/ohos/osal/log_wrapper.cpp", 627 "$ace_root/frameworks/core/components/common/properties/color.cpp", 628 "$ace_root/interfaces/native/node/animate_impl.cpp", 629 "$ace_root/interfaces/native/node/dialog_model.cpp", 630 "$ace_root/interfaces/native/node/event_converter.cpp", 631 "$ace_root/interfaces/native/node/gesture_impl.cpp", 632 "$ace_root/interfaces/native/node/native_impl.cpp", 633 "$ace_root/interfaces/native/node/native_node_napi.cpp", 634 "$ace_root/interfaces/native/node/node_animate.cpp", 635 "$ace_root/interfaces/native/node/node_extened.cpp", 636 "$ace_root/interfaces/native/node/node_model.cpp", 637 "$ace_root/interfaces/native/node/node_transition.cpp", 638 "$ace_root/interfaces/native/node/node_transition_imp.cpp", 639 "$ace_root/interfaces/native/node/style_modifier.cpp", 640 "$ace_root/test/mock/adapter/mock_log_wrapper.cpp", 641 "node_transition_test.cpp", 642 ] 643 644 configs = [ 645 "$ace_root/test/unittest:ace_unittest_config", 646 ":c_api_configs", 647 ] 648 649 include_dirs = [ 650 "$ace_root/frameworks/core/interfaces/arkoala", 651 "$ace_root/frameworks/", 652 "$ace_root/interfaces/native/", 653 "$ace_root/interfaces/native/node", 654 "$ace_root", 655 "$ace_root/interfaces/inner_api/drawable_descriptor", 656 ] 657 658 deps = [ "//third_party/googletest:gmock_main" ] 659 660 public_deps = [ 661 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics", 662 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 663 ] 664 665 external_deps = [ 666 "cJSON:cjson", 667 "c_utils:utils", 668 "hilog:libhilog", 669 "image_framework:image", 670 "image_framework:image_native", 671 "napi:ace_napi", 672 "resource_management:global_resmgr", 673 ] 674} 675 676ohos_unittest("animate_impl_test") { 677 module_out_path = interface_test_output_path 678 679 sources = [ 680 "$ace_root/adapter/ohos/osal/log_wrapper.cpp", 681 "$ace_root/frameworks/core/components/common/properties/color.cpp", 682 "$ace_root/interfaces/native/node/animate_impl.cpp", 683 "$ace_root/interfaces/native/node/dialog_model.cpp", 684 "$ace_root/interfaces/native/node/event_converter.cpp", 685 "$ace_root/interfaces/native/node/gesture_impl.cpp", 686 "$ace_root/interfaces/native/node/native_impl.cpp", 687 "$ace_root/interfaces/native/node/native_node_napi.cpp", 688 "$ace_root/interfaces/native/node/node_animate.cpp", 689 "$ace_root/interfaces/native/node/node_extened.cpp", 690 "$ace_root/interfaces/native/node/node_model.cpp", 691 "$ace_root/interfaces/native/node/node_transition.cpp", 692 "$ace_root/interfaces/native/node/node_transition_imp.cpp", 693 "$ace_root/interfaces/native/node/style_modifier.cpp", 694 "$ace_root/test/mock/adapter/mock_log_wrapper.cpp", 695 "animate_impl_test.cpp", 696 ] 697 698 configs = [ 699 "$ace_root/test/unittest:ace_unittest_config", 700 ":c_api_configs", 701 ] 702 703 include_dirs = [ 704 "$ace_root/frameworks/base/error", 705 "$ace_root/frameworks/core/interfaces/arkoala", 706 "$ace_root/frameworks/", 707 "$ace_root/interfaces/native/", 708 "$ace_root/interfaces/native/node", 709 "$ace_root", 710 "$ace_root/interfaces/inner_api/drawable_descriptor", 711 ] 712 713 deps = [ "//third_party/googletest:gmock_main" ] 714 715 public_deps = [ 716 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics", 717 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 718 ] 719 720 external_deps = [ 721 "cJSON:cjson", 722 "c_utils:utils", 723 "hilog:libhilog", 724 "image_framework:image", 725 "image_framework:image_native", 726 "napi:ace_napi", 727 "resource_management:global_resmgr", 728 ] 729} 730 731ohos_unittest("dialog_model_test") { 732 module_out_path = interface_test_output_path 733 734 sources = [ 735 "$ace_root/adapter/ohos/osal/log_wrapper.cpp", 736 "$ace_root/frameworks/core/components/common/properties/color.cpp", 737 "$ace_root/interfaces/native/node/animate_impl.cpp", 738 "$ace_root/interfaces/native/node/dialog_model.cpp", 739 "$ace_root/interfaces/native/node/event_converter.cpp", 740 "$ace_root/interfaces/native/node/gesture_impl.cpp", 741 "$ace_root/interfaces/native/node/native_impl.cpp", 742 "$ace_root/interfaces/native/node/native_node_napi.cpp", 743 "$ace_root/interfaces/native/node/node_animate.cpp", 744 "$ace_root/interfaces/native/node/node_extened.cpp", 745 "$ace_root/interfaces/native/node/node_model.cpp", 746 "$ace_root/interfaces/native/node/node_transition.cpp", 747 "$ace_root/interfaces/native/node/node_transition_imp.cpp", 748 "$ace_root/interfaces/native/node/style_modifier.cpp", 749 "$ace_root/test/mock/adapter/mock_log_wrapper.cpp", 750 "dialog_model_test.cpp", 751 ] 752 753 configs = [ 754 "$ace_root/test/unittest:ace_unittest_config", 755 ":c_api_configs", 756 ] 757 758 include_dirs = [ 759 "$ace_root/frameworks/base/error", 760 "$ace_root/frameworks/core/interfaces/arkoala", 761 "$ace_root/frameworks/", 762 "$ace_root/interfaces/native/", 763 "$ace_root/interfaces/native/node", 764 "$ace_root", 765 "$ace_root/interfaces/inner_api/drawable_descriptor", 766 ] 767 768 deps = [ "//third_party/googletest:gmock_main" ] 769 770 public_deps = [ 771 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics", 772 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 773 ] 774 775 external_deps = [ 776 "cJSON:cjson", 777 "c_utils:utils", 778 "hilog:libhilog", 779 "image_framework:image", 780 "image_framework:image_native", 781 "napi:ace_napi", 782 "resource_management:global_resmgr", 783 ] 784} 785 786ohos_unittest("node_extened_test") { 787 module_out_path = interface_test_output_path 788 789 sources = [ 790 "$ace_root/adapter/ohos/osal/log_wrapper.cpp", 791 "$ace_root/frameworks/core/components/common/properties/color.cpp", 792 "$ace_root/interfaces/native/node/animate_impl.cpp", 793 "$ace_root/interfaces/native/node/dialog_model.cpp", 794 "$ace_root/interfaces/native/node/event_converter.cpp", 795 "$ace_root/interfaces/native/node/gesture_impl.cpp", 796 "$ace_root/interfaces/native/node/native_impl.cpp", 797 "$ace_root/interfaces/native/node/native_node_napi.cpp", 798 "$ace_root/interfaces/native/node/node_animate.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_transition.cpp", 802 "$ace_root/interfaces/native/node/node_transition_imp.cpp", 803 "$ace_root/interfaces/native/node/style_modifier.cpp", 804 "$ace_root/test/mock/adapter/mock_log_wrapper.cpp", 805 "node_extened_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/base/error", 815 "$ace_root/frameworks/core/interfaces/arkoala", 816 "$ace_root/frameworks/", 817 "$ace_root/interfaces/native/", 818 "$ace_root/interfaces/native/node", 819 "$ace_root", 820 "$ace_root/interfaces/inner_api/drawable_descriptor", 821 ] 822 823 deps = [ "//third_party/googletest:gmock_main" ] 824 825 public_deps = [ 826 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics", 827 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 828 ] 829 830 external_deps = [ 831 "cJSON:cjson", 832 "c_utils:utils", 833 "hilog:libhilog", 834 "image_framework:image", 835 "image_framework:image_native", 836 "napi:ace_napi", 837 "resource_management:global_resmgr", 838 ] 839} 840 841ohos_unittest("node_animate_test") { 842 module_out_path = interface_test_output_path 843 844 sources = [ 845 "$ace_root/adapter/ohos/osal/log_wrapper.cpp", 846 "$ace_root/frameworks/core/components/common/properties/color.cpp", 847 "$ace_root/interfaces/native/node/animate_impl.cpp", 848 "$ace_root/interfaces/native/node/dialog_model.cpp", 849 "$ace_root/interfaces/native/node/event_converter.cpp", 850 "$ace_root/interfaces/native/node/gesture_impl.cpp", 851 "$ace_root/interfaces/native/node/native_impl.cpp", 852 "$ace_root/interfaces/native/node/native_node_napi.cpp", 853 "$ace_root/interfaces/native/node/node_animate.cpp", 854 "$ace_root/interfaces/native/node/node_extened.cpp", 855 "$ace_root/interfaces/native/node/node_model.cpp", 856 "$ace_root/interfaces/native/node/node_transition.cpp", 857 "$ace_root/interfaces/native/node/node_transition_imp.cpp", 858 "$ace_root/interfaces/native/node/style_modifier.cpp", 859 "$ace_root/test/mock/adapter/mock_log_wrapper.cpp", 860 "node_animate_test.cpp", 861 ] 862 863 configs = [ 864 "$ace_root/test/unittest:ace_unittest_config", 865 ":c_api_configs", 866 ] 867 868 include_dirs = [ 869 "$ace_root/frameworks/base/error", 870 "$ace_root/frameworks/core/interfaces/arkoala", 871 "$ace_root/frameworks/", 872 "$ace_root/interfaces/native/", 873 "$ace_root/interfaces/native/node", 874 "$ace_root", 875 ] 876 877 deps = [ "//third_party/googletest:gmock_main" ] 878 879 public_deps = [ 880 "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics", 881 "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client", 882 ] 883 884 external_deps = [ 885 "cJSON:cjson", 886 "c_utils:utils", 887 "hilog:libhilog", 888 "image_framework:image", 889 "image_framework:image_native", 890 "napi:ace_napi", 891 "resource_management:global_resmgr", 892 ] 893} 894 895ohos_unittest("js_drawable_descriptor_test") { 896 module_out_path = interface_test_output_path 897 898 sources = [ 899 "$ace_root/interfaces/inner_api/drawable_descriptor/drawable_descriptor.cpp", 900 "$ace_root/interfaces/inner_api/drawable_descriptor/image_converter.cpp", 901 "$ace_root/interfaces/inner_api/drawable_descriptor/js_drawable_descriptor.cpp", 902 "$ace_root/interfaces/native/node/native_drawable_descriptor.cpp", 903 "js_drawable_descriptor_test.cpp", 904 ] 905 906 configs = [ "$ace_root/test/unittest:ace_unittest_config" ] 907 908 include_dirs = [ 909 "$ace_root/interfaces/native/node", 910 "$ace_root/interfaces/native/", 911 "$ace_root/interfaces/inner_api/drawable_descriptor", 912 ] 913 914 deps = [ "//third_party/googletest:gmock_main" ] 915 916 cflags = [ 917 "-Dprivate=public", 918 "-Dprotected=public", 919 ] 920 921 external_deps = [ 922 "cJSON:cjson", 923 "c_utils:utils", 924 "graphic_2d:2d_graphics", 925 "graphic_2d:librender_service_client", 926 "hilog:libhilog", 927 "image_framework:image", 928 "image_framework:image_native", 929 "napi:ace_napi", 930 "resource_management:global_resmgr", 931 ] 932} 933 934ohos_unittest("xcomponent_controller_test") { 935 module_out_path = interface_test_output_path 936 937 sources = [ 938 "$ace_root/interfaces/inner_api/xcomponent_controller/xcomponent_controller.cpp", 939 "xcomponent_controller_test.cpp", 940 ] 941 942 configs = [ 943 "$ace_root/test/unittest:ace_unittest_config", 944 ":c_api_configs", 945 ] 946 947 include_dirs = [ 948 "$ace_root/frameworks/core/interfaces/arkoala", 949 "$ace_root/frameworks/", 950 "$ace_root/interfaces/native/", 951 "$ace_root/interfaces/native/node", 952 "$ace_root", 953 "$ace_root/interfaces/inner_api/xcomponent_controller", 954 ] 955 956 deps = [ 957 "$ace_root/interfaces/inner_api/xcomponent_controller:ace_xcomponent_controller", 958 "//third_party/googletest:gmock_main", 959 ] 960 961 external_deps = [ 962 "cJSON:cjson", 963 "c_utils:utils", 964 "ets_runtime:libark_jsruntime", 965 "hilog:libhilog", 966 "image_framework:image", 967 "image_framework:image_native", 968 "napi:ace_napi", 969 "resource_management:global_resmgr", 970 ] 971} 972 973group("interfaces_unittest") { 974 testonly = true 975 deps = [ 976 ":ace_forward_compatibility_test", 977 ":animate_impl_test", 978 ":dialog_model_test", 979 ":drag_and_drop_test", 980 ":drawable_descriptor_test", 981 ":extension_custom_node_test_ng", 982 ":form_render_delegate_impl_test", 983 ":form_render_delegate_proxy_test", 984 ":form_render_delegate_stub_test", 985 ":form_render_dispatcher_impl_test", 986 ":form_render_dispatcher_stub_test", 987 ":form_render_group_test", 988 ":form_render_test", 989 ":js_drawable_descriptor_test", 990 ":native_node_napi_test", 991 ":navigation_controller_test", 992 ":node_animate_test", 993 ":node_extened_test", 994 ":node_transition_test", 995 ":ui_content_test", 996 ":ui_event_test", 997 ":viewport_config_test", 998 ":xcomponent_controller_test", 999 ] 1000} 1001