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
3 # found in the LICENSE file.
5 import("//testing/test.gni")
7 source_set("proximity_auth") {
10 "bluetooth_connection.cc",
11 "bluetooth_connection.h",
12 "bluetooth_connection_finder.cc",
13 "bluetooth_connection_finder.h",
14 "bluetooth_throttler.h",
15 "bluetooth_throttler_impl.cc",
16 "bluetooth_throttler_impl.h",
19 "bluetooth_util_chromeos.cc",
26 "connection_finder.h",
27 "connection_observer.h",
29 "cryptauth_enroller_factory_impl.cc",
30 "cryptauth_enroller_factory_impl.h",
31 "device_to_device_authenticator.cc",
32 "device_to_device_authenticator.h",
33 "device_to_device_initiator_operations.cc",
34 "device_to_device_initiator_operations.h",
35 "device_to_device_secure_context.cc",
36 "device_to_device_secure_context.h",
39 "proximity_auth_client.h",
40 "proximity_auth_system.cc",
41 "proximity_auth_system.h",
42 "proximity_monitor.h",
43 "proximity_monitor_impl.cc",
44 "proximity_monitor_impl.h",
45 "proximity_monitor_observer.h",
48 "remote_status_update.cc",
49 "remote_status_update.h",
50 "screenlock_bridge.cc",
51 "screenlock_bridge.h",
56 "throttled_bluetooth_connection_finder.cc",
57 "throttled_bluetooth_connection_finder.h",
73 source_set("test_support") {
77 "device_to_device_responder_operations.cc",
78 "device_to_device_responder_operations.h",
79 "mock_proximity_auth_client.cc",
80 "mock_proximity_auth_client.h",
84 "cryptauth:test_support",
90 source_set("unit_tests") {
93 "bluetooth_connection_finder_unittest.cc",
94 "bluetooth_connection_unittest.cc",
95 "bluetooth_throttler_impl_unittest.cc",
96 "client_impl_unittest.cc",
97 "connection_unittest.cc",
98 "device_to_device_authenticator_unittest.cc",
99 "device_to_device_operations_unittest.cc",
100 "device_to_device_secure_context_unittest.cc",
101 "proximity_auth_system_unittest.cc",
102 "proximity_monitor_impl_unittest.cc",
103 "remote_status_update_unittest.cc",
104 "throttled_bluetooth_connection_finder_unittest.cc",
105 "unlock_manager_unittest.cc",
106 "wire_message_unittest.cc",
109 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
115 "cryptauth:test_support",
116 "cryptauth:unit_tests",
117 "logging:unit_tests",
118 "//base/test:test_support",
119 "//device/bluetooth:mocks",
125 # Note: This is a convenience target for ease of rapid iteration during
126 # development. It is not executed on any try or build bots.
127 test("proximity_auth_unittests") {
129 "run_all_unittests.cc",