• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  flutter_skia = true
19  render = true
20  sources = [
21    "$ace_root/frameworks/core/event/mouse_event.cpp",
22    "$ace_root/frameworks/core/gestures/gesture_referee.cpp",
23    "$ace_root/test/mock/core/common/mock_watch_dog.cpp",
24    "$ace_root/test/mock/core/common/mock_window.cpp",
25    "event_manager_test_ng.cpp",
26  ]
27}
28
29ace_unittest("click_event_test_ng") {
30  module_output = "events"
31  type = "new"
32  sources = [ "click_event_test_ng.cpp" ]
33}
34
35ace_unittest("drag_event_test_ng") {
36  type = "new"
37  module_output = "events"
38  sources = [ "drag_event_test_ng.cpp" ]
39}
40
41ace_unittest("event_hub_test_ng") {
42  type = "new"
43  module_output = "events"
44  sources = [ "event_hub_test_ng.cpp" ]
45}
46
47ace_unittest("focus_hub_test_ng") {
48  type = "new"
49  module_output = "events"
50  sources = [ "focus_hub_test_ng.cpp" ]
51}
52
53ace_unittest("gesture_event_hub_test_ng") {
54  type = "new"
55  module_output = "events"
56  sources = [ "gesture_event_hub_test_ng.cpp" ]
57}
58
59ace_unittest("input_event_hub_test_ng") {
60  type = "new"
61  module_output = "events"
62  sources = [ "input_event_hub_test_ng.cpp" ]
63}
64
65ace_unittest("long_press_event_test_ng") {
66  module_output = "events"
67  type = "new"
68  sources = [ "long_press_event_test_ng.cpp" ]
69}
70
71ace_unittest("pan_event_test_ng") {
72  type = "new"
73  module_output = "events"
74  sources = [ "pan_event_test_ng.cpp" ]
75}
76
77ace_unittest("scrollable_event_test_ng") {
78  type = "new"
79  module_output = "events"
80  sources = [ "scrollable_event_test_ng.cpp" ]
81}
82
83ace_unittest("state_style_test_ng") {
84  type = "new"
85  module_output = "events"
86  sources = [ "state_style_manager_test_ng.cpp" ]
87}
88
89ace_unittest("touch_event_test_ng") {
90  type = "new"
91  module_output = "events"
92  sources = [ "touch_event_test_ng.cpp" ]
93}
94
95ace_unittest("response_ctrl_test_ng") {
96  type = "new"
97  module_output = "events"
98  sources = [ "response_ctrl_test_ng.cpp" ]
99}
100
101group("core_event_unittest") {
102  testonly = true
103  deps = [
104    ":click_event_test_ng",
105    ":drag_event_test_ng",
106    ":event_hub_test_ng",
107    ":event_manager_test_ng",
108    ":focus_hub_test_ng",
109    ":gesture_event_hub_test_ng",
110    ":input_event_hub_test_ng",
111    ":long_press_event_test_ng",
112    ":pan_event_test_ng",
113    ":response_ctrl_test_ng",
114    ":scrollable_event_test_ng",
115    ":state_style_test_ng",
116    ":touch_event_test_ng",
117  ]
118}
119