OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos") | 5 assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos") |
6 | 6 |
7 static_library("tether") { | 7 static_library("tether") { |
8 sources = [ | 8 sources = [ |
9 "ble_advertisement_device_queue.cc", | 9 "ble_advertisement_device_queue.cc", |
10 "ble_advertisement_device_queue.h", | 10 "ble_advertisement_device_queue.h", |
11 "ble_constants.cc", | 11 "ble_constants.cc", |
12 "ble_constants.h", | 12 "ble_constants.h", |
| 13 "ble_scanner.cc", |
| 14 "ble_scanner.h", |
13 "host_scan_scheduler.cc", | 15 "host_scan_scheduler.cc", |
14 "host_scan_scheduler.h", | 16 "host_scan_scheduler.h", |
15 "host_scanner.cc", | 17 "host_scanner.cc", |
16 "host_scanner.h", | 18 "host_scanner.h", |
17 "initializer.cc", | 19 "initializer.cc", |
18 "initializer.h", | 20 "initializer.h", |
19 "local_device_data_provider.cc", | 21 "local_device_data_provider.cc", |
20 "local_device_data_provider.h", | 22 "local_device_data_provider.h", |
21 ] | 23 ] |
22 | 24 |
23 deps = [ | 25 deps = [ |
24 "//base", | 26 "//base", |
25 "//chromeos", | 27 "//chromeos", |
26 "//components/cryptauth", | 28 "//components/cryptauth", |
27 "//components/proximity_auth/logging", | 29 "//components/proximity_auth/logging", |
| 30 "//device/bluetooth", |
28 ] | 31 ] |
29 | 32 |
30 public_deps = [ | 33 public_deps = [ |
31 "//components/cryptauth/proto", | 34 "//components/cryptauth/proto", |
32 ] | 35 ] |
33 } | 36 } |
34 | 37 |
35 static_library("test_support") { | 38 static_library("test_support") { |
36 testonly = true | 39 testonly = true |
37 | 40 |
38 sources = [] | 41 sources = [ |
| 42 "mock_local_device_data_provider.cc", |
| 43 "mock_local_device_data_provider.h", |
| 44 ] |
39 | 45 |
40 public_deps = [ | 46 public_deps = [ |
41 ":tether", | 47 ":tether", |
42 ] | 48 ] |
43 | 49 |
44 deps = [ | 50 deps = [ |
45 "//base", | 51 "//base", |
| 52 "//components/cryptauth", |
46 "//testing/gmock", | 53 "//testing/gmock", |
47 ] | 54 ] |
48 } | 55 } |
49 | 56 |
50 source_set("unit_tests") { | 57 source_set("unit_tests") { |
51 testonly = true | 58 testonly = true |
52 | 59 |
53 sources = [ | 60 sources = [ |
54 "ble_advertisement_device_queue_unittest.cc", | 61 "ble_advertisement_device_queue_unittest.cc", |
| 62 "ble_scanner_unittest.cc", |
55 "host_scan_scheduler_unittest.cc", | 63 "host_scan_scheduler_unittest.cc", |
56 "local_device_data_provider_unittest.cc", | 64 "local_device_data_provider_unittest.cc", |
57 ] | 65 ] |
58 | 66 |
59 deps = [ | 67 deps = [ |
60 ":test_support", | 68 ":test_support", |
61 ":tether", | 69 ":tether", |
62 "//base/test:test_support", | 70 "//base/test:test_support", |
63 "//chromeos", | 71 "//chromeos", |
64 "//components/cryptauth", | 72 "//components/cryptauth", |
65 "//components/cryptauth:test_support", | 73 "//components/cryptauth:test_support", |
| 74 "//device/bluetooth", |
| 75 "//device/bluetooth:mocks", |
66 "//testing/gmock", | 76 "//testing/gmock", |
67 "//testing/gtest", | 77 "//testing/gtest", |
68 ] | 78 ] |
69 } | 79 } |
OLD | NEW |