| OLD | NEW |
| (Empty) |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'chromium_code': 1, | |
| 8 }, | |
| 9 'targets': [ | |
| 10 { | |
| 11 # GN version: //ui/events:events_unittests | |
| 12 'target_name': 'events_unittests', | |
| 13 'type': '<(gtest_target_type)', | |
| 14 'dependencies': [ | |
| 15 '<(DEPTH)/base/base.gyp:base', | |
| 16 '<(DEPTH)/base/base.gyp:run_all_unittests', | |
| 17 '<(DEPTH)/base/base.gyp:test_support_base', | |
| 18 '<(DEPTH)/ipc/ipc.gyp:test_support_ipc', | |
| 19 '<(DEPTH)/skia/skia.gyp:skia', | |
| 20 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 21 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', | |
| 22 '../gfx/gfx.gyp:gfx', | |
| 23 '../gfx/gfx.gyp:gfx_geometry', | |
| 24 '../gfx/gfx.gyp:gfx_test_support', | |
| 25 '../gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry', | |
| 26 'devices/events_devices.gyp:events_devices', | |
| 27 'events.gyp:dom_keycode_converter', | |
| 28 'events.gyp:events', | |
| 29 'events.gyp:events_base', | |
| 30 'events.gyp:events_ipc', | |
| 31 'events.gyp:events_test_support', | |
| 32 'events.gyp:gesture_detection', | |
| 33 'events.gyp:gestures_blink', | |
| 34 'platform/events_platform.gyp:events_platform', | |
| 35 ], | |
| 36 'sources': [ | |
| 37 # Note: sources list duplicated in GN build. | |
| 38 'android/scroller_unittest.cc', | |
| 39 'cocoa/events_mac_unittest.mm', | |
| 40 'devices/x11/device_data_manager_x11_unittest.cc', | |
| 41 'event_dispatcher_unittest.cc', | |
| 42 'event_processor_unittest.cc', | |
| 43 'event_rewriter_unittest.cc', | |
| 44 'event_unittest.cc', | |
| 45 'gesture_detection/bitset_32_unittest.cc', | |
| 46 'gesture_detection/filtered_gesture_provider_unittest.cc', | |
| 47 'gesture_detection/gesture_event_data_packet_unittest.cc', | |
| 48 'gesture_detection/gesture_provider_unittest.cc', | |
| 49 'gesture_detection/motion_event_buffer_unittest.cc', | |
| 50 'gesture_detection/motion_event_generic_unittest.cc', | |
| 51 'gesture_detection/snap_scroll_controller_unittest.cc', | |
| 52 'gesture_detection/touch_disposition_gesture_filter_unittest.cc', | |
| 53 'gesture_detection/velocity_tracker_unittest.cc', | |
| 54 'gestures/blink/web_gesture_curve_impl_unittest.cc', | |
| 55 'gestures/fling_curve_unittest.cc', | |
| 56 'gestures/gesture_provider_aura_unittest.cc', | |
| 57 'gestures/motion_event_aura_unittest.cc', | |
| 58 'ipc/latency_info_param_traits_unittest.cc', | |
| 59 'keycodes/dom/keycode_converter_unittest.cc', | |
| 60 'keycodes/keyboard_code_conversion_unittest.cc', | |
| 61 'keycodes/platform_key_map_win_unittest.cc', | |
| 62 'latency_info_unittest.cc', | |
| 63 'platform/platform_event_source_unittest.cc', | |
| 64 'scoped_target_handler_unittest.cc', | |
| 65 'win/event_utils_win_unittest.cc', | |
| 66 'x/events_x_unittest.cc', | |
| 67 ], | |
| 68 'conditions': [ | |
| 69 ['use_x11==1', { | |
| 70 'dependencies': [ | |
| 71 '../../build/linux/system.gyp:x11', | |
| 72 '../gfx/x/gfx_x11.gyp:gfx_x11', | |
| 73 'devices/x11/events_devices_x11.gyp:events_devices_x11', | |
| 74 'x/events_x.gyp:events_x', | |
| 75 ], | |
| 76 }], | |
| 77 ['use_ozone==1', { | |
| 78 'sources': [ | |
| 79 'ozone/chromeos/cursor_controller_unittest.cc', | |
| 80 'ozone/evdev/event_converter_evdev_impl_unittest.cc', | |
| 81 'ozone/evdev/event_converter_test_util.cc', | |
| 82 'ozone/evdev/event_device_info_unittest.cc', | |
| 83 'ozone/evdev/event_device_test_util.cc', | |
| 84 'ozone/evdev/input_injector_evdev_unittest.cc', | |
| 85 'ozone/evdev/tablet_event_converter_evdev_unittest.cc', | |
| 86 'ozone/evdev/touch_event_converter_evdev_unittest.cc', | |
| 87 'ozone/evdev/touch_noise/touch_noise_finder_unittest.cc', | |
| 88 ], | |
| 89 'dependencies': [ | |
| 90 'ozone/events_ozone.gyp:events_ozone', | |
| 91 'ozone/events_ozone.gyp:events_ozone_evdev', | |
| 92 'ozone/events_ozone.gyp:events_ozone_layout', | |
| 93 ] | |
| 94 }], | |
| 95 ['use_xkbcommon==1', { | |
| 96 'sources': [ | |
| 97 'ozone/layout/keyboard_layout_engine_unittest.cc', | |
| 98 'ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.cc', | |
| 99 ] | |
| 100 }], | |
| 101 ['use_aura==0', { | |
| 102 'sources!': [ | |
| 103 'gestures/gesture_provider_aura_unittest.cc', | |
| 104 'gestures/motion_event_aura_unittest.cc', | |
| 105 ], | |
| 106 }], | |
| 107 # Exclude tests that rely on event_utils.h for platforms that do not | |
| 108 # provide native cracking, i.e., platforms that use events_stub.cc. | |
| 109 ['OS!="win" and use_x11!=1 and use_ozone!=1', { | |
| 110 'sources!': [ | |
| 111 'event_unittest.cc', | |
| 112 ], | |
| 113 }], | |
| 114 ['OS == "android"', { | |
| 115 'sources': [ | |
| 116 'android/motion_event_android_unittest.cc', | |
| 117 ], | |
| 118 'dependencies': [ | |
| 119 '../../testing/android/native_test.gyp:native_test_native_code', | |
| 120 ], | |
| 121 }], | |
| 122 ['OS!="ios"', { | |
| 123 'sources': [ | |
| 124 'blink/blink_event_util_unittest.cc', | |
| 125 'blink/input_handler_proxy_unittest.cc', | |
| 126 'blink/input_scroll_elasticity_controller_unittest.cc', | |
| 127 'blink/web_input_event_traits_unittest.cc', | |
| 128 ], | |
| 129 'dependencies': [ | |
| 130 'blink/events_blink.gyp:events_blink', | |
| 131 ], | |
| 132 }], | |
| 133 ], | |
| 134 }, | |
| 135 ], | |
| 136 'conditions': [ | |
| 137 ['OS == "android"', { | |
| 138 'targets': [ | |
| 139 { | |
| 140 'target_name': 'events_unittests_apk', | |
| 141 'type': 'none', | |
| 142 'dependencies': [ | |
| 143 'events_unittests', | |
| 144 ], | |
| 145 'variables': { | |
| 146 'test_suite_name': 'events_unittests', | |
| 147 }, | |
| 148 'includes': [ '../../build/apk_test.gypi' ], | |
| 149 }, | |
| 150 ], | |
| 151 'conditions': [ | |
| 152 ['test_isolation_mode != "noop"', { | |
| 153 'targets': [ | |
| 154 { | |
| 155 'target_name': 'events_unittests_apk_run', | |
| 156 'type': 'none', | |
| 157 'dependencies': [ | |
| 158 'events_unittests_apk', | |
| 159 ], | |
| 160 'includes': [ | |
| 161 '../../build/isolate.gypi', | |
| 162 ], | |
| 163 'sources': [ | |
| 164 'events_unittests_apk.isolate', | |
| 165 ], | |
| 166 }, | |
| 167 ], | |
| 168 }], | |
| 169 ], | |
| 170 }], | |
| 171 ['test_isolation_mode != "noop"', { | |
| 172 'targets': [ | |
| 173 { | |
| 174 'target_name': 'events_unittests_run', | |
| 175 'type': 'none', | |
| 176 'dependencies': [ | |
| 177 'events_unittests', | |
| 178 ], | |
| 179 'includes': [ | |
| 180 '../../build/isolate.gypi', | |
| 181 ], | |
| 182 'sources': [ | |
| 183 'events_unittests.isolate', | |
| 184 ], | |
| 185 'conditions': [ | |
| 186 ['use_x11 == 1', { | |
| 187 'dependencies': [ | |
| 188 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | |
| 189 ], | |
| 190 }], | |
| 191 ], | |
| 192 }, | |
| 193 ], | |
| 194 }], | |
| 195 ], | |
| 196 } | |
| OLD | NEW |