Modified BluetoothTestMac to support device discovery tests.
commit5a0eceb28201302bcb45621015119bd73351d659
authorkrstnmnlsn <krstnmnlsn@chromium.org>
Fri, 31 Jul 2015 20:15:14 +0000 (31 13:15 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 31 Jul 2015 20:15:41 +0000 (31 20:15 +0000)
treec0fb1bd482aa344db6c857f7de1db4a86a62bf98
parent3badf54b78e1b4296ff6cabfd534976b97da9a7e
Modified BluetoothTestMac to support device discovery tests.

Also implemented utility function FindCBUUIDForHashTarget() to find
relatively simple CBUUIDs mapping (under SHA256 plus truncating) to
a 6 byte address with the first 3 bytes specified.  Used to choose
CBUUID / bluetooth address pairs for testing.

BUG=511008

Review URL: https://codereview.chromium.org/1246913006

Cr-Commit-Position: refs/heads/master@{#341400}
12 files changed:
device/bluetooth/bluetooth_adapter_mac.h
device/bluetooth/bluetooth_adapter_unittest.cc
device/bluetooth/bluetooth_device_unittest.cc
device/bluetooth/bluetooth_low_energy_device_mac.h
device/bluetooth/bluetooth_low_energy_device_mac.mm
device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java
device/bluetooth/test/bluetooth_test.cc
device/bluetooth/test/bluetooth_test.h
device/bluetooth/test/bluetooth_test_android.cc
device/bluetooth/test/bluetooth_test_android.h
device/bluetooth/test/bluetooth_test_mac.h
device/bluetooth/test/bluetooth_test_mac.mm