diff options
author | sacomoto <sacomoto@chromium.org> | 2015-06-05 08:37:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-05 15:38:06 +0000 |
commit | e5da7f28b633b5f05c3b99aa019d7da6b4ff1a0b (patch) | |
tree | ff1d822c0450d7a769126956a55fcda4f868531b /components/components_tests.gyp | |
parent | 15df477605e2afc0abf2b05074c8ecbd8ac28c29 (diff) | |
download | chromium_src-e5da7f28b633b5f05c3b99aa019d7da6b4ff1a0b.zip chromium_src-e5da7f28b633b5f05c3b99aa019d7da6b4ff1a0b.tar.gz chromium_src-e5da7f28b633b5f05c3b99aa019d7da6b4ff1a0b.tar.bz2 |
Adding unit tests for BLE connection.
In order making testing more convenient, this CL does the following
refactoring:
- Creates a new virtual CreateCharacteristicsFinder in
BluetoothLowEnergyConnection;
- Starts the connection on BluetoothLowEnergyConnection after a call to
Connect() (this was already suggested by tengs@ in a previous CL);
- Creates a new protected constructor in BluetoothCharacteristicsFinder;
- Mocks for BluetoothCharacteristicsFinder and
BluetoothLowEnergyConnection;
The unit tests covers the Connect() and Disconnect() execution paths. A
second part will cover receiving bytes and Send().
This CL also fixes some small bugs on BluetoothLowEnergyConnection.
BUG=
Review URL: https://codereview.chromium.org/1144333007
Cr-Commit-Position: refs/heads/master@{#333051}
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 dbac980..303f10d 100644 --- a/components/components_tests.gyp +++ b/components/components_tests.gyp @@ -435,6 +435,7 @@ 'proximity_auth_unittest_sources': [ '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/proximity_auth_ble_system_unittest.cc', 'proximity_auth/bluetooth_connection_finder_unittest.cc', 'proximity_auth/bluetooth_connection_unittest.cc', |