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("ble") { | 7 static_library("ble") { |
8 sources = [ | 8 sources = [ |
9 "bluetooth_low_energy_characteristics_finder.cc", | |
10 "bluetooth_low_energy_characteristics_finder.h", | |
11 "bluetooth_low_energy_connection.cc", | 9 "bluetooth_low_energy_connection.cc", |
12 "bluetooth_low_energy_connection.h", | 10 "bluetooth_low_energy_connection.h", |
13 "bluetooth_low_energy_connection_finder.cc", | 11 "bluetooth_low_energy_connection_finder.cc", |
14 "bluetooth_low_energy_connection_finder.h", | 12 "bluetooth_low_energy_connection_finder.h", |
15 "bluetooth_low_energy_device_whitelist.cc", | 13 "bluetooth_low_energy_device_whitelist.cc", |
16 "bluetooth_low_energy_device_whitelist.h", | 14 "bluetooth_low_energy_device_whitelist.h", |
17 "bluetooth_low_energy_weave_client_connection.cc", | |
18 "bluetooth_low_energy_weave_client_connection.h", | |
19 "bluetooth_low_energy_weave_defines.h", | |
20 "bluetooth_low_energy_weave_packet_generator.cc", | |
21 "bluetooth_low_energy_weave_packet_generator.h", | |
22 "bluetooth_low_energy_weave_packet_receiver.cc", | |
23 "bluetooth_low_energy_weave_packet_receiver.h", | |
24 "fake_wire_message.cc", | |
25 "fake_wire_message.h", | |
26 "pref_names.cc", | 15 "pref_names.cc", |
27 "pref_names.h", | 16 "pref_names.h", |
28 "remote_attribute.h", | |
29 ] | 17 ] |
30 | 18 |
31 deps = [ | 19 deps = [ |
32 "//base", | 20 "//base", |
33 "//components/cryptauth", | 21 "//components/cryptauth", |
| 22 "//components/cryptauth/ble", |
34 "//components/prefs", | 23 "//components/prefs", |
35 "//components/proximity_auth/logging", | 24 "//components/proximity_auth/logging", |
36 | 25 |
37 # TODO(https://crbug.com/562683): This component has a circular dependency | 26 # TODO(https://crbug.com/562683): This component has a circular dependency |
38 # with the root proximity auth target. It is whitelisted in that target for | 27 # with the root proximity auth target. It is whitelisted in that target for |
39 # includes. | 28 # includes. |
40 #"//components/proximity_auth", | 29 #"//components/proximity_auth", |
41 "//device/bluetooth", | 30 "//device/bluetooth", |
42 "//net", | 31 "//net", |
43 ] | 32 ] |
44 | 33 |
45 public_deps = [ | 34 public_deps = [ |
46 "//components/cryptauth/proto", | 35 "//components/cryptauth/proto", |
47 ] | 36 ] |
48 } | 37 } |
49 | 38 |
50 source_set("unit_tests") { | 39 source_set("unit_tests") { |
51 testonly = true | 40 testonly = true |
52 sources = [ | 41 sources = [ |
53 "bluetooth_low_energy_characteristics_finder_unittest.cc", | |
54 "bluetooth_low_energy_connection_finder_unittest.cc", | 42 "bluetooth_low_energy_connection_finder_unittest.cc", |
55 "bluetooth_low_energy_connection_unittest.cc", | 43 "bluetooth_low_energy_connection_unittest.cc", |
56 "bluetooth_low_energy_device_whitelist_unittest.cc", | 44 "bluetooth_low_energy_device_whitelist_unittest.cc", |
57 "bluetooth_low_energy_weave_client_connection_unittest.cc", | 45 "bluetooth_low_energy_weave_client_connection_unittest.cc", |
58 "bluetooth_low_energy_weave_packet_generator_unittest.cc", | 46 "bluetooth_low_energy_weave_packet_generator_unittest.cc", |
59 "bluetooth_low_energy_weave_packet_receiver_unittest.cc", | 47 "bluetooth_low_energy_weave_packet_receiver_unittest.cc", |
60 ] | 48 ] |
61 | 49 |
62 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 50 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
63 | 51 |
64 deps = [ | 52 deps = [ |
65 ":ble", | 53 ":ble", |
66 "//base/test:test_support", | 54 "//base/test:test_support", |
67 "//components/cryptauth", | 55 "//components/cryptauth", |
68 "//components/prefs:test_support", | 56 "//components/prefs:test_support", |
69 "//components/proximity_auth:test_support", | 57 "//components/proximity_auth:test_support", |
70 "//device/bluetooth:mocks", | 58 "//device/bluetooth:mocks", |
71 "//testing/gmock", | 59 "//testing/gmock", |
72 "//testing/gtest", | 60 "//testing/gtest", |
73 ] | 61 ] |
74 | 62 |
75 public_deps = [ | 63 public_deps = [ |
76 "//components/cryptauth/proto", | 64 "//components/cryptauth/proto", |
77 ] | 65 ] |
78 } | 66 } |
OLD | NEW |