AppWindow: Abstract over setting and querying fullscreen mode.
[chromium-blink-merge.git] / device / device_tests.gyp
blob2f0810b9aea8a15922e39f432fa531e825de6ff3
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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'device_unittests',
12       'type': '<(gtest_target_type)',
13       'dependencies': [
14         '../base/base.gyp:test_support_base',
15         '../mojo/mojo.gyp:mojo_environment_chromium',
16         '../mojo/mojo.gyp:mojo_system_impl',
17         '../testing/gmock.gyp:gmock',
18         '../testing/gtest.gyp:gtest',
19         'bluetooth/bluetooth.gyp:device_bluetooth',
20         'bluetooth/bluetooth.gyp:device_bluetooth_mocks',
21         'nfc/nfc.gyp:device_nfc',
22         'usb/usb.gyp:device_usb',
23         'hid/hid.gyp:device_hid',
24         'serial/serial.gyp:device_serial',
25         'serial/serial.gyp:device_serial_test_util',
26       ],
27       'sources': [
28         'bluetooth/bluetooth_adapter_mac_unittest.mm',
29         'bluetooth/bluetooth_adapter_unittest.cc',
30         'bluetooth/bluetooth_adapter_win_unittest.cc',
31         'bluetooth/bluetooth_device_unittest.cc',
32         'bluetooth/bluetooth_device_win_unittest.cc',
33         'bluetooth/bluetooth_chromeos_unittest.cc',
34         'bluetooth/bluetooth_gatt_chromeos_unittest.cc',
35         'bluetooth/bluetooth_low_energy_win_unittest.cc',
36         'bluetooth/bluetooth_service_record_win_unittest.cc',
37         'bluetooth/bluetooth_socket_chromeos_unittest.cc',
38         'bluetooth/bluetooth_task_manager_win_unittest.cc',
39         'bluetooth/bluetooth_uuid_unittest.cc',
40         'nfc/nfc_chromeos_unittest.cc',
41         'nfc/nfc_ndef_record_unittest.cc',
42         'usb/usb_ids_unittest.cc',
43         'hid/hid_connection_unittest.cc',
44         'hid/hid_report_descriptor_unittest.cc',
45         'hid/hid_service_unittest.cc',
46         'hid/input_service_linux_unittest.cc',
47         'serial/serial_connection_unittest.cc',
48         'serial/serial_service_unittest.cc',
49         'test/run_all_unittests.cc',
50       ],
51       'conditions': [
52         ['chromeos==1', {
53           'dependencies': [
54             '../build/linux/system.gyp:dbus',
55             '../chromeos/chromeos.gyp:chromeos_test_support',
56             '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock',
57             '../dbus/dbus.gyp:dbus',
58           ]
59         }],
60         ['OS=="mac"', {
61           'link_settings': {
62             'libraries': [
63               '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
64             ],
65           },
66         }],
67         ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
68           'conditions': [
69             ['use_allocator!="none"', {
70               'dependencies': [
71                 '../base/allocator/allocator.gyp:allocator',
72               ],
73             }],
74           ],
75         }],
76         ['OS=="linux" and use_udev==0', {
77           # Udev is the only Linux implementation. If we're compiling without
78           # Udev, disable these unittests.
79           'dependencies!': [
80             'hid/hid.gyp:device_hid',
81           ],
82           'sources/': [
83             ['exclude', '^hid/'],
84           ],
85         }],
86       ],
87     },
88   ],