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