1# Copyright (c) 2022-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 16ace_unittest("event_manager_test_ng") { 17 type = "new" 18 module_output = "events" 19 flutter_skia = true 20 render = true 21 sources = [ 22 "$ace_root/frameworks/core/event/mouse_event.cpp", 23 "$ace_root/frameworks/core/gestures/gesture_referee.cpp", 24 "$ace_root/test/mock/core/common/mock_watch_dog.cpp", 25 "$ace_root/test/mock/core/common/mock_window.cpp", 26 "event_dump_test_ng.cpp", 27 "event_manager_test_ng.cpp", 28 "event_manager_test_ng_new.cpp", 29 ] 30} 31 32ace_unittest("click_event_test_ng") { 33 module_output = "events" 34 type = "new" 35 sources = [ "click_event_test_ng.cpp" ] 36} 37 38ace_unittest("drag_event_test_ng") { 39 type = "new" 40 module_output = "events" 41 sources = [ 42 "drag_event_test_ng.cpp", 43 "drag_event_test_ng_property_config.cpp", 44 ] 45} 46 47ace_unittest("event_hub_test_ng") { 48 type = "new" 49 module_output = "events" 50 sources = [ "event_hub_test_ng.cpp" ] 51} 52 53ace_unittest("focus_hub_test_ng") { 54 type = "new" 55 module_output = "events" 56 sources = [ 57 "focus_hub_test_ng.cpp", 58 "focus_hub_test_ng_for_property_config.cpp", 59 "focus_hub_test_ng_new.cpp", 60 ] 61} 62 63ace_unittest("gesture_event_hub_test_ng") { 64 type = "new" 65 module_output = "events" 66 sources = [ 67 "gesture_event_hub_test_ng.cpp", 68 "gesture_event_hub_test_ng_property_config.cpp", 69 ] 70} 71 72ace_unittest("input_event_hub_test_ng") { 73 type = "new" 74 module_output = "events" 75 sources = [ 76 "$ace_root/frameworks/core/event/mouse_event.cpp", 77 "input_event_hub_test_ng.cpp", 78 ] 79} 80 81ace_unittest("long_press_event_test_ng") { 82 module_output = "events" 83 type = "new" 84 sources = [ "long_press_event_test_ng.cpp" ] 85} 86 87ace_unittest("pan_event_test_ng") { 88 type = "new" 89 module_output = "events" 90 sources = [ "pan_event_test_ng.cpp" ] 91} 92 93ace_unittest("scrollable_event_test_ng") { 94 type = "new" 95 module_output = "events" 96 sources = [ "scrollable_event_test_ng.cpp" ] 97} 98 99ace_unittest("state_style_test_ng") { 100 type = "new" 101 module_output = "events" 102 sources = [ "state_style_manager_test_ng.cpp" ] 103} 104 105ace_unittest("touch_event_test_ng") { 106 type = "new" 107 module_output = "events" 108 sources = [ "touch_event_test_ng.cpp" ] 109} 110 111ace_unittest("response_ctrl_test_ng") { 112 type = "new" 113 module_output = "events" 114 sources = [ "response_ctrl_test_ng.cpp" ] 115} 116 117ace_unittest("input_event_test_ng") { 118 type = "new" 119 module_output = "events" 120 sources = [ "input_event_test_ng.cpp" ] 121} 122 123ace_unittest("focus_box_test_ng") { 124 type = "new" 125 module_output = "events" 126 sources = [ "focus_box_test_ng.cpp" ] 127} 128 129group("core_event_unittest") { 130 testonly = true 131 deps = [ 132 ":click_event_test_ng", 133 ":drag_event_test_ng", 134 ":event_hub_test_ng", 135 ":event_manager_test_ng", 136 ":focus_box_test_ng", 137 ":focus_hub_test_ng", 138 ":gesture_event_hub_test_ng", 139 ":input_event_hub_test_ng", 140 ":input_event_test_ng", 141 ":long_press_event_test_ng", 142 ":pan_event_test_ng", 143 ":response_ctrl_test_ng", 144 ":scrollable_event_test_ng", 145 ":state_style_test_ng", 146 ":touch_event_test_ng", 147 ] 148} 149