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 static_library("proximity_auth") { | 7 static_library("proximity_auth") { |
8 sources = [ | 8 sources = [ |
9 "authenticator.h", | 9 "authenticator.h", |
10 "bluetooth_connection.cc", | 10 "bluetooth_connection.cc", |
11 "bluetooth_connection.h", | 11 "bluetooth_connection.h", |
12 "bluetooth_connection_finder.cc", | 12 "bluetooth_connection_finder.cc", |
13 "bluetooth_connection_finder.h", | 13 "bluetooth_connection_finder.h", |
14 "bluetooth_throttler.h", | |
15 "bluetooth_throttler_impl.cc", | |
16 "bluetooth_throttler_impl.h", | |
17 "bluetooth_util.cc", | 14 "bluetooth_util.cc", |
18 "bluetooth_util.h", | 15 "bluetooth_util.h", |
19 "bluetooth_util_chromeos.cc", | 16 "bluetooth_util_chromeos.cc", |
20 "connection.cc", | |
21 "connection.h", | |
22 "connection_finder.h", | |
23 "connection_observer.h", | |
24 "cryptauth_enroller_factory_impl.cc", | 17 "cryptauth_enroller_factory_impl.cc", |
25 "cryptauth_enroller_factory_impl.h", | 18 "cryptauth_enroller_factory_impl.h", |
26 "device_to_device_authenticator.cc", | 19 "device_to_device_authenticator.cc", |
27 "device_to_device_authenticator.h", | 20 "device_to_device_authenticator.h", |
28 "device_to_device_initiator_operations.cc", | 21 "device_to_device_initiator_operations.cc", |
29 "device_to_device_initiator_operations.h", | 22 "device_to_device_initiator_operations.h", |
30 "device_to_device_secure_context.cc", | 23 "device_to_device_secure_context.cc", |
31 "device_to_device_secure_context.h", | 24 "device_to_device_secure_context.h", |
32 "messenger.h", | 25 "messenger.h", |
33 "messenger_impl.cc", | 26 "messenger_impl.cc", |
(...skipping 22 matching lines...) Expand all Loading... |
56 "screenlock_bridge.cc", | 49 "screenlock_bridge.cc", |
57 "screenlock_bridge.h", | 50 "screenlock_bridge.h", |
58 "screenlock_state.h", | 51 "screenlock_state.h", |
59 "secure_context.h", | 52 "secure_context.h", |
60 "switches.cc", | 53 "switches.cc", |
61 "switches.h", | 54 "switches.h", |
62 "throttled_bluetooth_connection_finder.cc", | 55 "throttled_bluetooth_connection_finder.cc", |
63 "throttled_bluetooth_connection_finder.h", | 56 "throttled_bluetooth_connection_finder.h", |
64 "unlock_manager.cc", | 57 "unlock_manager.cc", |
65 "unlock_manager.h", | 58 "unlock_manager.h", |
66 "wire_message.cc", | |
67 "wire_message.h", | |
68 ] | 59 ] |
69 | 60 |
70 deps = [ | 61 deps = [ |
71 "//base", | 62 "//base", |
72 "//components/cryptauth", | 63 "//components/cryptauth", |
| 64 "//components/cryptauth/ble", |
73 "//components/prefs", | 65 "//components/prefs", |
74 "//components/proximity_auth/ble", | 66 "//components/proximity_auth/ble", |
75 "//components/proximity_auth/logging", | 67 "//components/proximity_auth/logging", |
76 "//components/signin/core/account_id:account_id", | 68 "//components/signin/core/account_id:account_id", |
77 "//device/bluetooth", | 69 "//device/bluetooth", |
78 "//net", | 70 "//net", |
79 ] | 71 ] |
80 | 72 |
81 # TODO(https://crbug.com/562683): This whitelists a circular include | 73 # TODO(https://crbug.com/562683): This whitelists a circular include |
82 # dependency between this target and the following targets which should not | 74 # dependency between this target and the following targets which should not |
83 # exist. | 75 # exist. |
84 allow_circular_includes_from = [ "//components/proximity_auth/ble" ] | 76 allow_circular_includes_from = [ "//components/proximity_auth/ble" ] |
85 | 77 |
86 if (is_chromeos) { | 78 if (is_chromeos) { |
87 deps += [ "//chromeos" ] | 79 deps += [ "//chromeos" ] |
88 } | 80 } |
89 } | 81 } |
90 | 82 |
91 static_library("test_support") { | 83 static_library("test_support") { |
92 testonly = true | 84 testonly = true |
93 | 85 |
94 sources = [ | 86 sources = [ |
95 "device_to_device_responder_operations.cc", | 87 "device_to_device_responder_operations.cc", |
96 "device_to_device_responder_operations.h", | 88 "device_to_device_responder_operations.h", |
97 "fake_connection.cc", | |
98 "fake_connection.h", | |
99 "fake_secure_context.cc", | 89 "fake_secure_context.cc", |
100 "fake_secure_context.h", | 90 "fake_secure_context.h", |
101 "mock_proximity_auth_client.cc", | 91 "mock_proximity_auth_client.cc", |
102 "mock_proximity_auth_client.h", | 92 "mock_proximity_auth_client.h", |
103 "proximity_auth_test_util.cc", | |
104 "proximity_auth_test_util.h", | |
105 ] | 93 ] |
106 | 94 |
107 public_deps = [ | 95 public_deps = [ |
108 ":proximity_auth", | 96 ":proximity_auth", |
109 ] | 97 ] |
110 | 98 |
111 deps = [ | 99 deps = [ |
112 "//base", | 100 "//base", |
113 "//components/cryptauth:test_support", | 101 "//components/cryptauth:test_support", |
114 "//components/proximity_auth/logging", | 102 "//components/proximity_auth/logging", |
115 "//testing/gmock", | 103 "//testing/gmock", |
116 ] | 104 ] |
117 } | 105 } |
118 | 106 |
119 source_set("unit_tests") { | 107 source_set("unit_tests") { |
120 testonly = true | 108 testonly = true |
121 sources = [ | 109 sources = [ |
122 "bluetooth_connection_finder_unittest.cc", | 110 "bluetooth_connection_finder_unittest.cc", |
123 "bluetooth_connection_unittest.cc", | 111 "bluetooth_connection_unittest.cc", |
124 "bluetooth_throttler_impl_unittest.cc", | |
125 "connection_unittest.cc", | |
126 "device_to_device_authenticator_unittest.cc", | 112 "device_to_device_authenticator_unittest.cc", |
127 "device_to_device_operations_unittest.cc", | 113 "device_to_device_operations_unittest.cc", |
128 "device_to_device_secure_context_unittest.cc", | 114 "device_to_device_secure_context_unittest.cc", |
129 "messenger_impl_unittest.cc", | 115 "messenger_impl_unittest.cc", |
130 "proximity_auth_pref_manager_unittest.cc", | 116 "proximity_auth_pref_manager_unittest.cc", |
131 "proximity_auth_system_unittest.cc", | 117 "proximity_auth_system_unittest.cc", |
132 "proximity_monitor_impl_unittest.cc", | 118 "proximity_monitor_impl_unittest.cc", |
133 "remote_device_life_cycle_impl_unittest.cc", | 119 "remote_device_life_cycle_impl_unittest.cc", |
134 "remote_device_loader_unittest.cc", | 120 "remote_device_loader_unittest.cc", |
135 "remote_status_update_unittest.cc", | 121 "remote_status_update_unittest.cc", |
136 "throttled_bluetooth_connection_finder_unittest.cc", | 122 "throttled_bluetooth_connection_finder_unittest.cc", |
137 "unlock_manager_unittest.cc", | 123 "unlock_manager_unittest.cc", |
138 "wire_message_unittest.cc", | |
139 ] | 124 ] |
140 | 125 |
141 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 126 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
142 | 127 |
143 deps = [ | 128 deps = [ |
144 ":proximity_auth", | 129 ":proximity_auth", |
145 ":test_support", | 130 ":test_support", |
146 "//base", | 131 "//base", |
147 "//base/test:test_support", | 132 "//base/test:test_support", |
148 "//components/cryptauth:test_support", | 133 "//components/cryptauth:test_support", |
(...skipping 19 matching lines...) Expand all Loading... |
168 sources = [ | 153 sources = [ |
169 "run_all_unittests.cc", | 154 "run_all_unittests.cc", |
170 ] | 155 ] |
171 deps = [ | 156 deps = [ |
172 ":unit_tests", | 157 ":unit_tests", |
173 "//base", | 158 "//base", |
174 "//base/test:test_support", | 159 "//base/test:test_support", |
175 ] | 160 ] |
176 } | 161 } |
177 } | 162 } |
OLD | NEW |