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