| OLD | NEW | 
|---|
| 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("vr/features.gni") | 5 import("vr/features.gni") | 
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") | 
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") | 
| 8 | 8 | 
| 9 if (is_android) { | 9 if (is_android) { | 
| 10   import("//build/config/android/rules.gni")  # For generate_jni(). | 10   import("//build/config/android/rules.gni")  # For generate_jni(). | 
| 11 } | 11 } | 
| 12 | 12 | 
| 13 if (is_mac) { | 13 if (is_mac) { | 
| 14   import("//build/config/mac/mac_sdk.gni") | 14   import("//build/config/mac/mac_sdk.gni") | 
| 15 } | 15 } | 
| 16 | 16 | 
| 17 is_linux_without_udev = is_linux && !use_udev | 17 is_linux_without_udev = is_linux && !use_udev | 
| 18 | 18 | 
| 19 test("device_unittests") { | 19 test("device_unittests") { | 
| 20   sources = [ | 20   sources = [ | 
| 21     "base/synchronization/one_writer_seqlock_unittest.cc", | 21     "base/synchronization/one_writer_seqlock_unittest.cc", | 
| 22     "battery/battery_status_manager_win_unittest.cc", |  | 
| 23     "battery/battery_status_service_unittest.cc", |  | 
| 24     "bluetooth/bluetooth_adapter_mac_unittest.mm", | 22     "bluetooth/bluetooth_adapter_mac_unittest.mm", | 
| 25     "bluetooth/bluetooth_adapter_unittest.cc", | 23     "bluetooth/bluetooth_adapter_unittest.cc", | 
| 26     "bluetooth/bluetooth_adapter_win_unittest.cc", | 24     "bluetooth/bluetooth_adapter_win_unittest.cc", | 
| 27     "bluetooth/bluetooth_advertisement_unittest.cc", | 25     "bluetooth/bluetooth_advertisement_unittest.cc", | 
| 28     "bluetooth/bluetooth_device_unittest.cc", | 26     "bluetooth/bluetooth_device_unittest.cc", | 
| 29     "bluetooth/bluetooth_device_win_unittest.cc", | 27     "bluetooth/bluetooth_device_win_unittest.cc", | 
| 30     "bluetooth/bluetooth_discovery_filter_unittest.cc", | 28     "bluetooth/bluetooth_discovery_filter_unittest.cc", | 
| 31     "bluetooth/bluetooth_local_gatt_characteristic_unittest.cc", | 29     "bluetooth/bluetooth_local_gatt_characteristic_unittest.cc", | 
| 32     "bluetooth/bluetooth_local_gatt_descriptor_unittest.cc", | 30     "bluetooth/bluetooth_local_gatt_descriptor_unittest.cc", | 
| 33     "bluetooth/bluetooth_local_gatt_service_unittest.cc", | 31     "bluetooth/bluetooth_local_gatt_service_unittest.cc", | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 73     "sensors/data_fetcher_shared_memory_base_unittest.cc", | 71     "sensors/data_fetcher_shared_memory_base_unittest.cc", | 
| 74     "sensors/sensor_manager_android_unittest.cc", | 72     "sensors/sensor_manager_android_unittest.cc", | 
| 75     "sensors/sensor_manager_chromeos_unittest.cc", | 73     "sensors/sensor_manager_chromeos_unittest.cc", | 
| 76     "test/run_all_unittests.cc", | 74     "test/run_all_unittests.cc", | 
| 77   ] | 75   ] | 
| 78 | 76 | 
| 79   deps = [ | 77   deps = [ | 
| 80     "//base/test:test_support", | 78     "//base/test:test_support", | 
| 81     "//base/third_party/dynamic_annotations:dynamic_annotations", | 79     "//base/third_party/dynamic_annotations:dynamic_annotations", | 
| 82     "//device/base/synchronization", | 80     "//device/base/synchronization", | 
| 83     "//device/battery", |  | 
| 84     "//device/battery:mojo_bindings", |  | 
| 85     "//device/bluetooth", | 81     "//device/bluetooth", | 
| 86     "//device/bluetooth:mocks", | 82     "//device/bluetooth:mocks", | 
| 87     "//device/bluetooth:mojo", | 83     "//device/bluetooth:mojo", | 
| 88     "//device/bluetooth/uribeacon", | 84     "//device/bluetooth/uribeacon", | 
| 89     "//device/gamepad", | 85     "//device/gamepad", | 
| 90     "//device/gamepad:test_helpers", | 86     "//device/gamepad:test_helpers", | 
| 91     "//device/gamepad/public/cpp:shared_with_blink", | 87     "//device/gamepad/public/cpp:shared_with_blink", | 
| 92     "//device/gamepad/public/interfaces", | 88     "//device/gamepad/public/interfaces", | 
| 93     "//device/gamepad/public/interfaces:gamepad_struct_traits_test", | 89     "//device/gamepad/public/interfaces:gamepad_struct_traits_test", | 
| 94     "//device/generic_sensor", | 90     "//device/generic_sensor", | 
| 95     "//device/generic_sensor:testing", | 91     "//device/generic_sensor:testing", | 
| 96     "//device/geolocation:unittests", | 92     "//device/geolocation:unittests", | 
| 97     "//device/power_save_blocker", | 93     "//device/power_save_blocker", | 
| 98     "//device/sensors", | 94     "//device/sensors", | 
| 99     "//device/sensors/public/cpp:full", | 95     "//device/sensors/public/cpp:full", | 
| 100     "//device/sensors/public/interfaces", | 96     "//device/sensors/public/interfaces", | 
| 101     "//device/wake_lock", | 97     "//device/wake_lock", | 
| 102     "//mojo/common", | 98     "//mojo/common", | 
| 103     "//mojo/edk/system", | 99     "//mojo/edk/system", | 
| 104     "//mojo/public/cpp/bindings", | 100     "//mojo/public/cpp/bindings", | 
| 105     "//net", | 101     "//net", | 
| 106     "//testing/gmock", | 102     "//testing/gmock", | 
| 107     "//testing/gtest", | 103     "//testing/gtest", | 
| 108     "//third_party/WebKit/public:blink_headers", | 104     "//third_party/WebKit/public:blink_headers", | 
| 109     "//tools/usb_gadget", | 105     "//tools/usb_gadget", | 
| 110     "//url", | 106     "//url", | 
| 111   ] | 107   ] | 
| 112 | 108 | 
| 113   if (is_linux && !is_chromeos && use_dbus) { |  | 
| 114     sources += [ "battery/battery_status_manager_linux_unittest.cc" ] |  | 
| 115     deps += [ "//dbus:test_support" ] |  | 
| 116   } |  | 
| 117 |  | 
| 118   if (!is_linux_without_udev) { | 109   if (!is_linux_without_udev) { | 
| 119     sources += | 110     sources += | 
| 120         [ "generic_sensor/platform_sensor_and_provider_unittest_linux.cc" ] | 111         [ "generic_sensor/platform_sensor_and_provider_unittest_linux.cc" ] | 
| 121   } | 112   } | 
| 122 | 113 | 
| 123   # HID and Serial: | 114   # HID and Serial: | 
| 124   # Android doesn't compile. | 115   # Android doesn't compile. | 
| 125   # Linux, requires udev. | 116   # Linux, requires udev. | 
| 126   if (!is_linux_without_udev && !is_android) { | 117   if (!is_linux_without_udev && !is_android) { | 
| 127     sources += [ | 118     sources += [ | 
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 183     ] | 174     ] | 
| 184   } | 175   } | 
| 185 | 176 | 
| 186   # UsbContext is a libusb-specific object. | 177   # UsbContext is a libusb-specific object. | 
| 187   if (is_mac || is_win) { | 178   if (is_mac || is_win) { | 
| 188     sources += [ "usb/usb_context_unittest.cc" ] | 179     sources += [ "usb/usb_context_unittest.cc" ] | 
| 189     deps += [ "//third_party/libusb" ] | 180     deps += [ "//third_party/libusb" ] | 
| 190   } | 181   } | 
| 191 | 182 | 
| 192   if (is_android) { | 183   if (is_android) { | 
| 193     sources -= [ "battery/battery_status_service_unittest.cc" ] |  | 
| 194     deps += [ | 184     deps += [ | 
| 195       ":bluetooth_test_java", | 185       ":bluetooth_test_java", | 
| 196       ":bluetooth_test_jni_headers", | 186       ":bluetooth_test_jni_headers", | 
| 197       "//device/geolocation:geolocation_java", | 187       "//device/geolocation:geolocation_java", | 
| 198       "//device/geolocation:geolocation_java_test_support", | 188       "//device/geolocation:geolocation_java_test_support", | 
| 199       "//device/sensors:java", | 189       "//device/sensors:java", | 
| 200       "//device/usb:java", | 190       "//device/usb:java", | 
| 201     ] | 191     ] | 
| 202     deps -= [ "//device/battery" ] |  | 
| 203   } | 192   } | 
| 204 | 193 | 
| 205   if (is_chromeos) { | 194   if (is_chromeos) { | 
| 206     deps += [ | 195     deps += [ | 
| 207       "//chromeos", | 196       "//chromeos", | 
| 208       "//chromeos:test_support", | 197       "//chromeos:test_support", | 
| 209       "//chromeos:test_support_without_gmock", | 198       "//chromeos:test_support_without_gmock", | 
| 210     ] | 199     ] | 
| 211   } | 200   } | 
| 212 | 201 | 
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 318     ] | 307     ] | 
| 319     srcjar_deps = [ "//device/gamepad:java_enums_srcjar" ] | 308     srcjar_deps = [ "//device/gamepad:java_enums_srcjar" ] | 
| 320   } | 309   } | 
| 321 | 310 | 
| 322   java_cpp_enum("bluetooth_test_javagen") { | 311   java_cpp_enum("bluetooth_test_javagen") { | 
| 323     sources = [ | 312     sources = [ | 
| 324       "bluetooth/test/bluetooth_test.h", | 313       "bluetooth/test/bluetooth_test.h", | 
| 325     ] | 314     ] | 
| 326   } | 315   } | 
| 327 } | 316 } | 
| OLD | NEW | 
|---|