Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: device/BUILD.gn

Issue 2721223002: Add support for U2fHidDevice interaction (Closed)
Patch Set: Use MockHidConnection to fail writes in unittest Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | device/u2f/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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/features.gni") 5 import("//build/config/features.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/rules.gni") # For generate_jni(). 9 import("//build/config/android/rules.gni") # For generate_jni().
10 } 10 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 "bluetooth/test/test_bluetooth_local_gatt_service_delegate.h", 65 "bluetooth/test/test_bluetooth_local_gatt_service_delegate.h",
66 "gamepad/gamepad_provider_unittest.cc", 66 "gamepad/gamepad_provider_unittest.cc",
67 "gamepad/gamepad_service_unittest.cc", 67 "gamepad/gamepad_service_unittest.cc",
68 "gamepad/public/interfaces/gamepad_struct_traits_unittest.cc", 68 "gamepad/public/interfaces/gamepad_struct_traits_unittest.cc",
69 "generic_sensor/platform_sensor_and_provider_unittest_win.cc", 69 "generic_sensor/platform_sensor_and_provider_unittest_win.cc",
70 "generic_sensor/platform_sensor_provider_unittest.cc", 70 "generic_sensor/platform_sensor_provider_unittest.cc",
71 "sensors/data_fetcher_shared_memory_base_unittest.cc", 71 "sensors/data_fetcher_shared_memory_base_unittest.cc",
72 "sensors/sensor_manager_android_unittest.cc", 72 "sensors/sensor_manager_android_unittest.cc",
73 "sensors/sensor_manager_chromeos_unittest.cc", 73 "sensors/sensor_manager_chromeos_unittest.cc",
74 "test/run_all_unittests.cc", 74 "test/run_all_unittests.cc",
75 "u2f/u2f_apdu_unittest.cc",
76 "u2f/u2f_message_unittest.cc",
75 "wake_lock/wake_lock_service_context_unittest.cc", 77 "wake_lock/wake_lock_service_context_unittest.cc",
76 ] 78 ]
77 79
78 deps = [ 80 deps = [
79 "//base/test:test_support", 81 "//base/test:test_support",
80 "//base/third_party/dynamic_annotations:dynamic_annotations", 82 "//base/third_party/dynamic_annotations:dynamic_annotations",
81 "//device/base/synchronization", 83 "//device/base/synchronization",
82 "//device/battery", 84 "//device/battery",
83 "//device/battery:mojo_bindings", 85 "//device/battery:mojo_bindings",
84 "//device/bluetooth", 86 "//device/bluetooth",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 # Linux, requires udev. 125 # Linux, requires udev.
124 if (!is_linux_without_udev && !is_android) { 126 if (!is_linux_without_udev && !is_android) {
125 sources += [ 127 sources += [
126 "hid/hid_connection_unittest.cc", 128 "hid/hid_connection_unittest.cc",
127 "hid/hid_device_filter_unittest.cc", 129 "hid/hid_device_filter_unittest.cc",
128 "hid/hid_report_descriptor_unittest.cc", 130 "hid/hid_report_descriptor_unittest.cc",
129 "hid/input_service_linux_unittest.cc", 131 "hid/input_service_linux_unittest.cc",
130 "hid/test_report_descriptors.cc", 132 "hid/test_report_descriptors.cc",
131 "hid/test_report_descriptors.h", 133 "hid/test_report_descriptors.h",
132 "serial/serial_io_handler_posix_unittest.cc", 134 "serial/serial_io_handler_posix_unittest.cc",
135 "u2f/u2f_hid_device_unittest.cc",
133 ] 136 ]
134 deps += [ 137 deps += [
135 "//device/hid", 138 "//device/hid",
139 "//device/hid:mocks",
136 "//device/serial", 140 "//device/serial",
137 "//device/serial:test_support", 141 "//device/serial:test_support",
138 ] 142 ]
139 } 143 }
140 144
141 if (use_udev) { 145 if (use_udev) {
142 sources += [ "udev_linux/udev_unittest.cc" ] 146 sources += [ "udev_linux/udev_unittest.cc" ]
143 deps += [ "//device/udev_linux" ] 147 deps += [ "//device/udev_linux" ]
144 } 148 }
145 149
146 # USB does not compile on iOS. 150 # USB does not compile on iOS.
147 if (!is_ios) { 151 if (!is_ios) {
148 sources += [ 152 sources += [
149 "test/test_device_client.cc", 153 "test/test_device_client.cc",
150 "test/test_device_client.h", 154 "test/test_device_client.h",
151 "test/usb_test_gadget_impl.cc", 155 "test/usb_test_gadget_impl.cc",
152 "u2f/u2f_apdu_unittest.cc",
153 "u2f/u2f_message_unittest.cc",
154 "usb/mojo/device_impl_unittest.cc", 156 "usb/mojo/device_impl_unittest.cc",
155 "usb/mojo/device_manager_impl_unittest.cc", 157 "usb/mojo/device_manager_impl_unittest.cc",
156 "usb/mojo/mock_permission_provider.cc", 158 "usb/mojo/mock_permission_provider.cc",
157 "usb/mojo/mock_permission_provider.h", 159 "usb/mojo/mock_permission_provider.h",
158 "usb/usb_descriptors_unittest.cc", 160 "usb/usb_descriptors_unittest.cc",
159 "usb/usb_device_filter_unittest.cc", 161 "usb/usb_device_filter_unittest.cc",
160 "usb/usb_device_handle_unittest.cc", 162 "usb/usb_device_handle_unittest.cc",
161 "usb/usb_ids_unittest.cc", 163 "usb/usb_ids_unittest.cc",
162 "usb/usb_service_unittest.cc", 164 "usb/usb_service_unittest.cc",
163 "usb/webusb_descriptors_unittest.cc", 165 "usb/webusb_descriptors_unittest.cc",
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 ] 307 ]
306 srcjar_deps = [ "//device/gamepad:java_enums_srcjar" ] 308 srcjar_deps = [ "//device/gamepad:java_enums_srcjar" ]
307 } 309 }
308 310
309 java_cpp_enum("bluetooth_test_javagen") { 311 java_cpp_enum("bluetooth_test_javagen") {
310 sources = [ 312 sources = [
311 "bluetooth/test/bluetooth_test.h", 313 "bluetooth/test/bluetooth_test.h",
312 ] 314 ]
313 } 315 }
314 } 316 }
OLDNEW
« no previous file with comments | « no previous file | device/u2f/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698