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", |
| 14 "bluetooth_throttler_impl.cc", |
| 15 "bluetooth_throttler_impl.h", |
13 "bluetooth_util.cc", | 16 "bluetooth_util.cc", |
14 "bluetooth_util.h", | 17 "bluetooth_util.h", |
15 "bluetooth_util_chromeos.cc", | 18 "bluetooth_util_chromeos.cc", |
16 "client.cc", | 19 "client.cc", |
17 "client.h", | 20 "client.h", |
18 "client_observer.h", | 21 "client_observer.h", |
19 "connection.cc", | 22 "connection.cc", |
20 "connection.h", | 23 "connection.h", |
21 "connection_finder.h", | 24 "connection_finder.h", |
22 "connection_observer.h", | 25 "connection_observer.h", |
23 "proximity_auth_system.cc", | 26 "proximity_auth_system.cc", |
24 "proximity_auth_system.h", | 27 "proximity_auth_system.h", |
25 "remote_device.h", | 28 "remote_device.h", |
26 "remote_status_update.cc", | 29 "remote_status_update.cc", |
27 "remote_status_update.h", | 30 "remote_status_update.h", |
28 "secure_context.h", | 31 "secure_context.h", |
29 "switches.cc", | 32 "switches.cc", |
30 "switches.h", | 33 "switches.h", |
| 34 "throttled_bluetooth_connection_finder.cc", |
| 35 "throttled_bluetooth_connection_finder.h", |
31 "wire_message.cc", | 36 "wire_message.cc", |
32 "wire_message.h", | 37 "wire_message.h", |
33 ] | 38 ] |
34 | 39 |
35 deps = [ | 40 deps = [ |
36 "//base", | 41 "//base", |
37 "//device/bluetooth", | 42 "//device/bluetooth", |
38 "//net", | 43 "//net", |
39 ] | 44 ] |
40 } | 45 } |
41 | 46 |
42 source_set("unit_tests") { | 47 source_set("unit_tests") { |
43 testonly = true | 48 testonly = true |
44 sources = [ | 49 sources = [ |
45 "bluetooth_connection_finder_unittest.cc", | 50 "bluetooth_connection_finder_unittest.cc", |
46 "bluetooth_connection_unittest.cc", | 51 "bluetooth_connection_unittest.cc", |
| 52 "bluetooth_throttler_impl_unittest.cc", |
47 "client_unittest.cc", | 53 "client_unittest.cc", |
48 "connection_unittest.cc", | 54 "connection_unittest.cc", |
49 "proximity_auth_system_unittest.cc", | 55 "proximity_auth_system_unittest.cc", |
50 "remote_status_update_unittest.cc", | 56 "remote_status_update_unittest.cc", |
| 57 "throttled_bluetooth_connection_finder_unittest.cc", |
51 "wire_message_unittest.cc", | 58 "wire_message_unittest.cc", |
52 ] | 59 ] |
53 | 60 |
54 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 61 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
55 | 62 |
56 deps = [ | 63 deps = [ |
57 ":proximity_auth", | 64 ":proximity_auth", |
58 "cryptauth:unit_tests", | 65 "cryptauth:unit_tests", |
59 "//base/test:test_support", | 66 "//base/test:test_support", |
60 "//device/bluetooth:mocks", | 67 "//device/bluetooth:mocks", |
61 "//testing/gmock", | 68 "//testing/gmock", |
62 "//testing/gtest", | 69 "//testing/gtest", |
63 ] | 70 ] |
64 } | 71 } |
65 | 72 |
66 # Note: This is a convenience target for ease of rapid iteration during | 73 # Note: This is a convenience target for ease of rapid iteration during |
67 # development. It is not executed on any try or build bots. | 74 # development. It is not executed on any try or build bots. |
68 test("proximity_auth_unittests") { | 75 test("proximity_auth_unittests") { |
69 sources = [ | 76 sources = [ |
70 "run_all_unittests.cc", | 77 "run_all_unittests.cc", |
71 ] | 78 ] |
72 deps = [ | 79 deps = [ |
73 ":unit_tests", | 80 ":unit_tests", |
74 ] | 81 ] |
75 } | 82 } |
OLD | NEW |