diff options
author | sacomoto <sacomoto@chromium.org> | 2015-07-08 10:11:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-08 17:11:59 +0000 |
commit | b8bc433ac7d9254ac9b58b33d3073831c6deeb87 (patch) | |
tree | 760770ddf7829f10f8eced9bc515e3bf0e97b117 /components/components_tests.gyp | |
parent | 41634b16099cde386dc1090423f566bd4624070c (diff) | |
download | chromium_src-b8bc433ac7d9254ac9b58b33d3073831c6deeb87.zip chromium_src-b8bc433ac7d9254ac9b58b33d3073831c6deeb87.tar.gz chromium_src-b8bc433ac7d9254ac9b58b33d3073831c6deeb87.tar.bz2 |
Persistent whitelist for Bluetooth low energy devices.
This CL adds a persistent whitelist for BLE devices to be used with proximity_auth::ProximityAuthBleSytem and proximity_auth::BluetoothLowEnergyConnectionFinder.
Currently, in BLE connection finder a device has to satisfy two conditions for the connection to be established: (i) paired and (ii) has a given service visible (either advertising or cached).
The problem with this strategy is that when the service cache is dropped by CrOS and the device has the service but is not advertising BLE connection finder is unable to connect.
This CL solves this problem, if a given device is whitelisted then BLE connection finder will connect even if (ii) is not satisfied.
A device is whitelisted if a connection is successfully established and its public key is register in CryptAuth. When a device is removed from CryptAuth it also removed from the whitelist.
TEST=unit tests
BUG=505464
Review URL: https://codereview.chromium.org/1208073003
Cr-Commit-Position: refs/heads/master@{#337845}
Diffstat (limited to 'components/components_tests.gyp')
-rw-r--r-- | components/components_tests.gyp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/components_tests.gyp b/components/components_tests.gyp index 41a1a8c..17e37f0 100644 --- a/components/components_tests.gyp +++ b/components/components_tests.gyp @@ -446,6 +446,7 @@ 'proximity_auth/ble/bluetooth_low_energy_characteristics_finder_unittest.cc', 'proximity_auth/ble/bluetooth_low_energy_connection_finder_unittest.cc', 'proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc', + 'proximity_auth/ble/bluetooth_low_energy_device_whitelist_unittest.cc', 'proximity_auth/ble/proximity_auth_ble_system_unittest.cc', 'proximity_auth/bluetooth_connection_finder_unittest.cc', 'proximity_auth/bluetooth_connection_unittest.cc', |