| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 | 6 |
| 7 source_set("proximity_auth") { | 7 source_set("proximity_auth") { |
| 8 sources = [ | 8 sources = [ |
| 9 "bluetooth_connection.cc", | 9 "bluetooth_connection.cc", |
| 10 "bluetooth_connection.h", | 10 "bluetooth_connection.h", |
| 11 "bluetooth_connection_finder.cc", | 11 "bluetooth_connection_finder.cc", |
| 12 "bluetooth_connection_finder.h", | 12 "bluetooth_connection_finder.h", |
| 13 "bluetooth_throttler.h", | 13 "bluetooth_throttler.h", |
| 14 "bluetooth_throttler_impl.cc", | 14 "bluetooth_throttler_impl.cc", |
| 15 "bluetooth_throttler_impl.h", | 15 "bluetooth_throttler_impl.h", |
| 16 "bluetooth_util.cc", | 16 "bluetooth_util.cc", |
| 17 "bluetooth_util.h", | 17 "bluetooth_util.h", |
| 18 "bluetooth_util_chromeos.cc", | 18 "bluetooth_util_chromeos.cc", |
| 19 "client.h", | 19 "client.h", |
| 20 "client_impl.cc", | 20 "client_impl.cc", |
| 21 "client_impl.h", | 21 "client_impl.h", |
| 22 "client_observer.h", | 22 "client_observer.h", |
| 23 "connection.cc", | 23 "connection.cc", |
| 24 "connection.h", | 24 "connection.h", |
| 25 "connection_finder.h", | 25 "connection_finder.h", |
| 26 "connection_observer.h", | 26 "connection_observer.h", |
| 27 "controller.h", |
| 27 "metrics.cc", | 28 "metrics.cc", |
| 28 "metrics.h", | 29 "metrics.h", |
| 29 "proximity_auth_client.h", | 30 "proximity_auth_client.h", |
| 30 "proximity_auth_system.cc", | 31 "proximity_auth_system.cc", |
| 31 "proximity_auth_system.h", | 32 "proximity_auth_system.h", |
| 32 "proximity_monitor.h", | 33 "proximity_monitor.h", |
| 33 "proximity_monitor_impl.cc", | 34 "proximity_monitor_impl.cc", |
| 34 "proximity_monitor_impl.h", | 35 "proximity_monitor_impl.h", |
| 35 "proximity_monitor_observer.h", | 36 "proximity_monitor_observer.h", |
| 36 "remote_device.h", | 37 "remote_device.h", |
| 37 "remote_status_update.cc", | 38 "remote_status_update.cc", |
| 38 "remote_status_update.h", | 39 "remote_status_update.h", |
| 39 "screenlock_bridge.cc", | 40 "screenlock_bridge.cc", |
| 40 "screenlock_bridge.h", | 41 "screenlock_bridge.h", |
| 41 "screenlock_state.h", | 42 "screenlock_state.h", |
| 42 "secure_context.h", | 43 "secure_context.h", |
| 43 "switches.cc", | 44 "switches.cc", |
| 44 "switches.h", | 45 "switches.h", |
| 45 "throttled_bluetooth_connection_finder.cc", | 46 "throttled_bluetooth_connection_finder.cc", |
| 46 "throttled_bluetooth_connection_finder.h", | 47 "throttled_bluetooth_connection_finder.h", |
| 48 "unlock_manager.cc", |
| 49 "unlock_manager.h", |
| 47 "wire_message.cc", | 50 "wire_message.cc", |
| 48 "wire_message.h", | 51 "wire_message.h", |
| 49 ] | 52 ] |
| 50 | 53 |
| 51 deps = [ | 54 deps = [ |
| 52 "logging", | 55 "logging", |
| 53 "//base", | 56 "//base", |
| 54 "//device/bluetooth", | 57 "//device/bluetooth", |
| 55 "//net", | 58 "//net", |
| 56 ] | 59 ] |
| 57 } | 60 } |
| 58 | 61 |
| 59 source_set("unit_tests") { | 62 source_set("unit_tests") { |
| 60 testonly = true | 63 testonly = true |
| 61 sources = [ | 64 sources = [ |
| 62 "bluetooth_connection_finder_unittest.cc", | 65 "bluetooth_connection_finder_unittest.cc", |
| 63 "bluetooth_connection_unittest.cc", | 66 "bluetooth_connection_unittest.cc", |
| 64 "bluetooth_throttler_impl_unittest.cc", | 67 "bluetooth_throttler_impl_unittest.cc", |
| 65 "client_impl_unittest.cc", | 68 "client_impl_unittest.cc", |
| 66 "connection_unittest.cc", | 69 "connection_unittest.cc", |
| 67 "proximity_auth_system_unittest.cc", | 70 "proximity_auth_system_unittest.cc", |
| 68 "proximity_monitor_impl_unittest.cc", | 71 "proximity_monitor_impl_unittest.cc", |
| 69 "remote_status_update_unittest.cc", | 72 "remote_status_update_unittest.cc", |
| 70 "throttled_bluetooth_connection_finder_unittest.cc", | 73 "throttled_bluetooth_connection_finder_unittest.cc", |
| 74 "unlock_manager_unittest.cc", |
| 71 "wire_message_unittest.cc", | 75 "wire_message_unittest.cc", |
| 72 ] | 76 ] |
| 73 | 77 |
| 74 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 78 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 75 | 79 |
| 76 deps = [ | 80 deps = [ |
| 77 ":proximity_auth", | 81 ":proximity_auth", |
| 78 "ble:unit_tests", | 82 "ble:unit_tests", |
| 79 "cryptauth:unit_tests", | 83 "cryptauth:unit_tests", |
| 80 "logging:unit_tests", | 84 "logging:unit_tests", |
| 81 "//base/test:test_support", | 85 "//base/test:test_support", |
| 82 "//device/bluetooth:mocks", | 86 "//device/bluetooth:mocks", |
| 83 "//testing/gmock", | 87 "//testing/gmock", |
| 84 "//testing/gtest", | 88 "//testing/gtest", |
| 85 ] | 89 ] |
| 86 } | 90 } |
| 87 | 91 |
| 88 # Note: This is a convenience target for ease of rapid iteration during | 92 # Note: This is a convenience target for ease of rapid iteration during |
| 89 # development. It is not executed on any try or build bots. | 93 # development. It is not executed on any try or build bots. |
| 90 test("proximity_auth_unittests") { | 94 test("proximity_auth_unittests") { |
| 91 sources = [ | 95 sources = [ |
| 92 "run_all_unittests.cc", | 96 "run_all_unittests.cc", |
| 93 ] | 97 ] |
| 94 deps = [ | 98 deps = [ |
| 95 ":unit_tests", | 99 ":unit_tests", |
| 96 ] | 100 ] |
| 97 } | 101 } |
| OLD | NEW |