1 # Copyright (c) 2012 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.
11 'target_name': 'device_unittests',
12 'type': '<(gtest_target_type)',
14 '../base/base.gyp:test_support_base',
15 '../mojo/mojo_base.gyp:mojo_environment_chromium',
16 '../testing/gmock.gyp:gmock',
17 '../testing/gtest.gyp:gtest',
18 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
19 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
20 '../tools/usb_gadget/usb_gadget.gyp:usb_gadget',
21 'battery/battery.gyp:device_battery',
22 'battery/battery.gyp:device_battery_mojo_bindings',
23 'bluetooth/bluetooth.gyp:device_bluetooth',
24 'bluetooth/bluetooth.gyp:device_bluetooth_mocks',
25 'nfc/nfc.gyp:device_nfc',
26 'usb/usb.gyp:device_usb',
27 'hid/hid.gyp:device_hid',
28 'serial/serial.gyp:device_serial',
29 'serial/serial.gyp:device_serial_test_util',
32 'battery/battery_status_manager_linux_unittest.cc',
33 'battery/battery_status_manager_win_unittest.cc',
34 'battery/battery_status_service_unittest.cc',
35 'bluetooth/bluetooth_adapter_mac_unittest.mm',
36 'bluetooth/bluetooth_adapter_unittest.cc',
37 'bluetooth/bluetooth_adapter_win_unittest.cc',
38 'bluetooth/bluetooth_device_unittest.cc',
39 'bluetooth/bluetooth_device_win_unittest.cc',
40 'bluetooth/bluetooth_chromeos_unittest.cc',
41 'bluetooth/bluetooth_gatt_chromeos_unittest.cc',
42 'bluetooth/bluetooth_low_energy_win_unittest.cc',
43 'bluetooth/bluetooth_service_record_win_unittest.cc',
44 'bluetooth/bluetooth_socket_chromeos_unittest.cc',
45 'bluetooth/bluetooth_task_manager_win_unittest.cc',
46 'bluetooth/bluetooth_uuid_unittest.cc',
47 'nfc/nfc_chromeos_unittest.cc',
48 'nfc/nfc_ndef_record_unittest.cc',
49 'usb/usb_context_unittest.cc',
50 'usb/usb_device_filter_unittest.cc',
51 'usb/usb_ids_unittest.cc',
52 'usb/usb_device_handle_unittest.cc',
53 'usb/usb_service_unittest.cc',
54 'hid/hid_connection_unittest.cc',
55 'hid/hid_device_filter_unittest.cc',
56 'hid/hid_report_descriptor_unittest.cc',
57 'hid/input_service_linux_unittest.cc',
58 'hid/test_report_descriptors.cc',
59 'hid/test_report_descriptors.h',
60 'serial/data_sink_unittest.cc',
61 'serial/data_source_unittest.cc',
62 'serial/serial_connection_unittest.cc',
63 'serial/serial_service_unittest.cc',
64 'test/run_all_unittests.cc',
65 'test/usb_test_gadget_impl.cc'
70 '../build/linux/system.gyp:dbus',
71 '../chromeos/chromeos.gyp:chromeos_test_support',
72 '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock',
73 '../dbus/dbus.gyp:dbus',
76 'battery/battery_status_manager_linux_unittest.cc',
82 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
86 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
88 ['use_allocator!="none"', {
90 '../base/allocator/allocator.gyp:allocator',
95 ['OS=="linux" and use_udev==0', {
96 # Udev is the only Linux implementation. If we're compiling without
97 # Udev, disable these unittests.
99 'hid/hid.gyp:device_hid',
100 'serial/serial.gyp:device_serial',
101 'serial/serial.gyp:device_serial_test_util',
104 ['exclude', '^serial/'],
105 ['exclude', '^hid/'],
110 'battery/battery_status_manager_linux_unittest.cc',