DescriptionAdding 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=
Committed: https://crrev.com/e5da7f28b633b5f05c3b99aa019d7da6b4ff1a0b
Cr-Commit-Position: refs/heads/master@{#333051}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Adressing msarda's comments #Patch Set 3 : Fixing compilation on OS X and Windows. #Patch Set 4 : Fixing compilation on OS X and Windows 2 #Messages
Total messages: 9 (3 generated)
|