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