1# Copyright (c) 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 16config("c_api_configs") { 17 cflags = [ "-Wno-missing-braces" ] 18} 19 20ohos_unittest("ace_native_gesture_test") { 21 module_out_path = interface_test_output_path 22 23 sources = [ 24 "$ace_root/interfaces/native/event/ui_input_event.cpp", 25 "$ace_root/interfaces/native/node/animate_impl.cpp", 26 "$ace_root/interfaces/native/node/dialog_model.cpp", 27 "$ace_root/interfaces/native/node/event_converter.cpp", 28 "$ace_root/interfaces/native/node/native_impl.cpp", 29 "$ace_root/interfaces/native/node/native_node_napi.cpp", 30 "$ace_root/interfaces/native/node/node_extened.cpp", 31 "$ace_root/interfaces/native/node/node_model.cpp", 32 "$ace_root/interfaces/native/node/node_model_safely.cpp", 33 "$ace_root/interfaces/native/node/node_transition.cpp", 34 "$ace_root/interfaces/native/node/node_utils.cpp", 35 "$ace_root/interfaces/native/node/style_modifier.cpp", 36 "native_gesture_test.cpp", 37 "native_pan_gesture_test.cpp", 38 "native_tap_gesture_test.cpp", 39 "native_long_press_gesture_test.cpp", 40 "native_pinch_gesture_test.cpp", 41 "native_rotation_gesture_test.cpp", 42 "native_swiper_gesture_test.cpp", 43 ] 44 45 configs = [ 46 "$ace_root/test/unittest:ace_unittest_config", 47 ":c_api_configs", 48 ] 49 50 include_dirs = [ 51 "$ace_root/frameworks/core/interfaces/arkoala", 52 "$ace_root/frameworks/", 53 "$ace_root/interfaces/native/", 54 "$ace_root/interfaces/native/node", 55 "$ace_root", 56 ] 57 58 deps = [ 59 "$ace_root/test/unittest:ace_base", 60 "$ace_root/test/unittest:ace_components_base", 61 "$ace_root/test/unittest:ace_components_event", 62 "$ace_root/test/unittest:ace_components_gestures", 63 "$ace_root/test/unittest:ace_components_layout", 64 "$ace_root/test/unittest:ace_components_manager", 65 "$ace_root/test/unittest:ace_components_mock", 66 "$ace_root/test/unittest:ace_components_pattern", 67 "$ace_root/test/unittest:ace_components_property", 68 "$ace_root/test/unittest:ace_components_render", 69 "$ace_root/test/unittest:ace_components_syntax", 70 "$ace_root/test/unittest:ace_core_animation", 71 "$ace_root/test/unittest:ace_core_extra", 72 ] 73 74 external_deps = [ 75 "cJSON:cjson", 76 "c_utils:utils", 77 "googletest:gmock_main", 78 "hilog:libhilog", 79 "image_framework:image", 80 "image_framework:image_native", 81 "napi:ace_napi", 82 "resource_management:global_resmgr", 83 ] 84} 85