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