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