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