OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 static_library("dom_keycode_converter") { | 8 static_library("dom_keycode_converter") { |
9 sources = [ | 9 sources = [ |
10 "keycodes/dom/dom_code.h", | 10 "keycodes/dom/dom_code.h", |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 deps += [ "//ui/events/devices" ] | 293 deps += [ "//ui/events/devices" ] |
294 } else { | 294 } else { |
295 sources += [ "test/device_data_manager_test_api_stub.cc" ] | 295 sources += [ "test/device_data_manager_test_api_stub.cc" ] |
296 } | 296 } |
297 } | 297 } |
298 | 298 |
299 test("events_unittests") { | 299 test("events_unittests") { |
300 sources = [ | 300 sources = [ |
301 "android/scroller_unittest.cc", | 301 "android/scroller_unittest.cc", |
302 "cocoa/events_mac_unittest.mm", | 302 "cocoa/events_mac_unittest.mm", |
303 "devices/x11/device_data_manager_x11_unittest.cc", | |
304 "event_dispatcher_unittest.cc", | 303 "event_dispatcher_unittest.cc", |
305 "event_processor_unittest.cc", | 304 "event_processor_unittest.cc", |
306 "event_rewriter_unittest.cc", | 305 "event_rewriter_unittest.cc", |
307 "event_unittest.cc", | 306 "event_unittest.cc", |
308 "gesture_detection/bitset_32_unittest.cc", | 307 "gesture_detection/bitset_32_unittest.cc", |
309 "gesture_detection/filtered_gesture_provider_unittest.cc", | 308 "gesture_detection/filtered_gesture_provider_unittest.cc", |
310 "gesture_detection/gesture_event_data_packet_unittest.cc", | 309 "gesture_detection/gesture_event_data_packet_unittest.cc", |
311 "gesture_detection/gesture_provider_unittest.cc", | 310 "gesture_detection/gesture_provider_unittest.cc", |
312 "gesture_detection/motion_event_buffer_unittest.cc", | 311 "gesture_detection/motion_event_buffer_unittest.cc", |
313 "gesture_detection/motion_event_generic_unittest.cc", | 312 "gesture_detection/motion_event_generic_unittest.cc", |
314 "gesture_detection/snap_scroll_controller_unittest.cc", | 313 "gesture_detection/snap_scroll_controller_unittest.cc", |
315 "gesture_detection/touch_disposition_gesture_filter_unittest.cc", | 314 "gesture_detection/touch_disposition_gesture_filter_unittest.cc", |
316 "gesture_detection/velocity_tracker_unittest.cc", | 315 "gesture_detection/velocity_tracker_unittest.cc", |
317 "gestures/blink/web_gesture_curve_impl_unittest.cc", | |
318 "gestures/fling_curve_unittest.cc", | 316 "gestures/fling_curve_unittest.cc", |
319 "keycodes/dom/keycode_converter_unittest.cc", | 317 "keycodes/dom/keycode_converter_unittest.cc", |
320 "keycodes/keyboard_code_conversion_unittest.cc", | 318 "keycodes/keyboard_code_conversion_unittest.cc", |
321 "latency_info_unittest.cc", | 319 "latency_info_unittest.cc", |
322 "platform/platform_event_source_unittest.cc", | 320 "platform/platform_event_source_unittest.cc", |
323 "x/events_x_unittest.cc", | |
324 ] | 321 ] |
325 | 322 |
326 deps = [ | 323 deps = [ |
327 ":dom_keycode_converter", | 324 ":dom_keycode_converter", |
328 ":events", | 325 ":events", |
329 ":events_base", | 326 ":events_base", |
330 ":gesture_detection", | 327 ":gesture_detection", |
331 ":test_support", | 328 ":test_support", |
332 "//base", | 329 "//base", |
333 "//base/test:run_all_unittests", | 330 "//base/test:run_all_unittests", |
334 "//skia", | 331 "//skia", |
335 "//testing/gtest", | 332 "//testing/gtest", |
336 "//third_party/WebKit/public:blink_headers", | |
337 "//ui/events/devices", | 333 "//ui/events/devices", |
338 "//ui/events/gestures/blink", | |
339 "//ui/events/platform", | 334 "//ui/events/platform", |
340 "//ui/gfx:test_support", | 335 "//ui/gfx:test_support", |
341 ] | 336 ] |
342 | 337 |
| 338 if (!is_ios) { |
| 339 sources += [ "gestures/blink/web_gesture_curve_impl_unittest.cc" ] |
| 340 deps += [ |
| 341 "//third_party/WebKit/public:blink_headers", |
| 342 "//ui/events/gestures/blink", |
| 343 ] |
| 344 } |
| 345 |
343 include_dirs = [ "//testing/gmock/include" ] | 346 include_dirs = [ "//testing/gmock/include" ] |
344 | 347 |
345 if (use_x11) { | 348 if (use_x11) { |
346 configs += [ "//build/config/linux:x11" ] | 349 sources += [ |
347 deps += [ "//ui/gfx/x" ] | |
348 } else { | |
349 sources -= [ | |
350 "devices/x11/device_data_manager_x11_unittest.cc", | 350 "devices/x11/device_data_manager_x11_unittest.cc", |
351 "x/events_x_unittest.cc", | 351 "x/events_x_unittest.cc", |
352 ] | 352 ] |
| 353 configs += [ "//build/config/linux:x11" ] |
| 354 deps += [ "//ui/gfx/x" ] |
353 } | 355 } |
354 | 356 |
355 if (use_ozone) { | 357 if (use_ozone) { |
356 sources += [ | 358 sources += [ |
357 "ozone/chromeos/cursor_controller_unittest.cc", | 359 "ozone/chromeos/cursor_controller_unittest.cc", |
358 "ozone/evdev/event_converter_evdev_impl_unittest.cc", | 360 "ozone/evdev/event_converter_evdev_impl_unittest.cc", |
359 "ozone/evdev/event_converter_test_util.cc", | 361 "ozone/evdev/event_converter_test_util.cc", |
360 "ozone/evdev/event_device_info_unittest.cc", | 362 "ozone/evdev/event_device_info_unittest.cc", |
361 "ozone/evdev/event_device_test_util.cc", | 363 "ozone/evdev/event_device_test_util.cc", |
362 "ozone/evdev/input_injector_evdev_unittest.cc", | 364 "ozone/evdev/input_injector_evdev_unittest.cc", |
(...skipping 17 matching lines...) Expand all Loading... |
380 if (is_nacl) { | 382 if (is_nacl) { |
381 source_set("latency_info") { | 383 source_set("latency_info") { |
382 sources = [ | 384 sources = [ |
383 "ipc/latency_info_param_traits.cc", | 385 "ipc/latency_info_param_traits.cc", |
384 "ipc/latency_info_param_traits.h", | 386 "ipc/latency_info_param_traits.h", |
385 "latency_info.cc", | 387 "latency_info.cc", |
386 "latency_info.h", | 388 "latency_info.h", |
387 ] | 389 ] |
388 } | 390 } |
389 } | 391 } |
OLD | NEW |