| 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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 test("device_unittests") { | 8 test("device_unittests") { |
| 9 sources = [ | 9 sources = [ |
| 10 "battery/battery_status_manager_linux_unittest.cc", | 10 "battery/battery_status_manager_linux_unittest.cc", |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 } | 79 } |
| 80 | 80 |
| 81 if (is_posix && !is_mac) { | 81 if (is_posix && !is_mac) { |
| 82 libs = [ "rt" ] | 82 libs = [ "rt" ] |
| 83 } | 83 } |
| 84 | 84 |
| 85 if (is_mac) { | 85 if (is_mac) { |
| 86 libs = [ "IOBluetooth.framework" ] | 86 libs = [ "IOBluetooth.framework" ] |
| 87 } | 87 } |
| 88 | 88 |
| 89 if (use_udev) { |
| 90 sources += [ "udev_linux/udev_unittest.cc" ] |
| 91 |
| 92 deps += [ "//device/udev_linux" ] |
| 93 } |
| 94 |
| 89 if (is_linux && !use_udev) { | 95 if (is_linux && !use_udev) { |
| 90 # Udev is the only Linux implementation. If we're compiling without Udev, | 96 # Udev is the only Linux implementation. If we're compiling without Udev, |
| 91 # disable these unittests. | 97 # disable these unittests. |
| 92 sources -= [ | 98 sources -= [ |
| 93 "hid/hid_connection_unittest.cc", | 99 "hid/hid_connection_unittest.cc", |
| 94 "hid/hid_device_filter_unittest.cc", | 100 "hid/hid_device_filter_unittest.cc", |
| 95 "hid/hid_report_descriptor_unittest.cc", | 101 "hid/hid_report_descriptor_unittest.cc", |
| 96 "hid/input_service_linux_unittest.cc", | 102 "hid/input_service_linux_unittest.cc", |
| 97 "hid/test_report_descriptors.cc", | 103 "hid/test_report_descriptors.cc", |
| 98 "hid/test_report_descriptors.h", | 104 "hid/test_report_descriptors.h", |
| 99 "serial/data_sink_unittest.cc", | 105 "serial/data_sink_unittest.cc", |
| 100 "serial/data_source_unittest.cc", | 106 "serial/data_source_unittest.cc", |
| 101 "serial/serial_connection_unittest.cc", | 107 "serial/serial_connection_unittest.cc", |
| 102 "serial/serial_service_unittest.cc", | 108 "serial/serial_service_unittest.cc", |
| 103 ] | 109 ] |
| 104 | 110 |
| 105 deps -= [ | 111 deps -= [ |
| 106 "//device/hid", | 112 "//device/hid", |
| 107 "//device/serial", | 113 "//device/serial", |
| 108 "//device/serial:test_support", | 114 "//device/serial:test_support", |
| 109 ] | 115 ] |
| 110 } | 116 } |
| 111 | 117 |
| 112 if (is_linux && !use_dbus) { | 118 if (is_linux && !use_dbus) { |
| 113 sources -= [ "battery/battery_status_manager_linux_unittest.cc" ] | 119 sources -= [ "battery/battery_status_manager_linux_unittest.cc" ] |
| 114 } | 120 } |
| 115 } | 121 } |
| OLD | NEW |