Enable verbose logging for Chromoting browser-tests, to understand more about failure...
[chromium-blink-merge.git] / device / device_tests.gyp
blob6c48886961f4fb4c289bd4e5f02b5d4c23bca6c2
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_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         'usb/usb.gyp:device_usb_mocks',
28         'hid/hid.gyp:device_hid',
29         'serial/serial.gyp:device_serial',
30         'serial/serial.gyp:device_serial_test_util',
31       ],
32       'sources': [
33         'battery/battery_status_manager_linux_unittest.cc',
34         'battery/battery_status_manager_win_unittest.cc',
35         'battery/battery_status_service_unittest.cc',
36         'bluetooth/bluetooth_adapter_android_unittest.cc',
37         'bluetooth/bluetooth_adapter_mac_unittest.mm',
38         'bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc',
39         'bluetooth/bluetooth_adapter_unittest.cc',
40         'bluetooth/bluetooth_adapter_win_unittest.cc',
41         'bluetooth/bluetooth_advertisement_chromeos_unittest.cc',
42         'bluetooth/bluetooth_audio_sink_chromeos_unittest.cc',
43         'bluetooth/bluetooth_chromeos_unittest.cc',
44         'bluetooth/bluetooth_device_unittest.cc',
45         'bluetooth/bluetooth_device_win_unittest.cc',
46         'bluetooth/bluetooth_discovery_filter_unittest.cc',
47         'bluetooth/bluetooth_gatt_chromeos_unittest.cc',
48         'bluetooth/bluetooth_low_energy_win_unittest.cc',
49         'bluetooth/bluetooth_service_record_win_unittest.cc',
50         'bluetooth/bluetooth_socket_chromeos_unittest.cc',
51         'bluetooth/bluetooth_task_manager_win_unittest.cc',
52         'bluetooth/bluetooth_uuid_unittest.cc',
53         'bluetooth/test/test_bluetooth_adapter_observer.cc',
54         'bluetooth/test/test_bluetooth_adapter_observer.h',
55         'hid/hid_connection_unittest.cc',
56         'hid/hid_device_filter_unittest.cc',
57         'hid/hid_report_descriptor_unittest.cc',
58         'hid/input_service_linux_unittest.cc',
59         'hid/test_report_descriptors.cc',
60         'hid/test_report_descriptors.h',
61         'nfc/nfc_chromeos_unittest.cc',
62         'nfc/nfc_ndef_record_unittest.cc',
63         'serial/data_sink_unittest.cc',
64         'serial/data_source_unittest.cc',
65         'serial/serial_connection_unittest.cc',
66         'serial/serial_service_unittest.cc',
67         'test/run_all_unittests.cc',
68         'test/usb_test_gadget_impl.cc',
69         'usb/usb_context_unittest.cc',
70         'usb/usb_device_filter_unittest.cc',
71         'usb/usb_device_handle_unittest.cc',
72         'usb/usb_ids_unittest.cc',
73         'usb/usb_service_unittest.cc',
74       ],
75       'conditions': [
76         ['chromeos==1', {
77           'dependencies': [
78             '../build/linux/system.gyp:dbus',
79             '../chromeos/chromeos.gyp:chromeos_test_support',
80             '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock',
81             '../dbus/dbus.gyp:dbus',
82           ],
83           'sources!': [
84             'battery/battery_status_manager_linux_unittest.cc',
85           ],
86         }],
87         ['OS=="android"', {
88           'dependencies!': [
89             '../tools/usb_gadget/usb_gadget.gyp:usb_gadget',
90             'usb/usb.gyp:device_usb',
91             'usb/usb.gyp:device_usb_mocks',
92             'serial/serial.gyp:device_serial',
93             'serial/serial.gyp:device_serial_test_util',
94             'hid/hid.gyp:device_hid',
95           ],
96           'dependencies': [
97             '../testing/android/native_test.gyp:native_test_native_code',
98           ],
99           'sources/': [
100             ['exclude', '(^|/)hid'],
101             ['exclude', '(^|/)serial'],
102             ['exclude', '(^|/)usb'],
103           ],
104         }],
105         ['OS=="mac"', {
106           'link_settings': {
107             'libraries': [
108               '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
109             ],
110           },
111         }],
112         ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
113           'conditions': [
114             ['use_allocator!="none"', {
115               'dependencies': [
116                 '../base/allocator/allocator.gyp:allocator',
117               ],
118             }],
119           ],
120         }],
121         ['use_udev==1', {
122           'dependencies': [
123             'udev_linux/udev.gyp:udev_linux',
124           ],
125           'sources': [
126             'udev_linux/udev_unittest.cc',
127           ],
128         }],
129         ['OS=="linux" and use_udev==0', {
130           # Udev is the only Linux implementation. If we're compiling without
131           # Udev, disable these unittests.
132           'dependencies!': [
133             'hid/hid.gyp:device_hid',
134             'serial/serial.gyp:device_serial',
135             'serial/serial.gyp:device_serial_test_util',
136           ],
137           'sources/': [
138             ['exclude', '^serial/'],
139             ['exclude', '^hid/'],
140           ],
141         }],
142         ['use_dbus==0', {
143           'sources!': [
144             'battery/battery_status_manager_linux_unittest.cc',
145           ],
146         }],
147       ],
148     },
149   ],
150   'conditions': [
151     ['OS=="android"', {
152       'targets': [
153         {
154           'target_name': 'device_unittests_apk',
155           'type': 'none',
156           'dependencies': [
157             'device_unittests',
158           ],
159           'variables': {
160             'test_suite_name': 'device_unittests',
161           },
162           'includes': [ '../build/apk_test.gypi' ],
163         },
164       ],
165     }],
166   ],