Chromium Code Reviews| Index: device/bluetooth/test/bluetooth_test.h |
| diff --git a/device/bluetooth/test/bluetooth_test.h b/device/bluetooth/test/bluetooth_test.h |
| index 5e34d909d8666a6f1408a95cc4cb8ca38fc2de69..7cbf16d02ad28c7789682a240d66a35d8c77f4be 100644 |
| --- a/device/bluetooth/test/bluetooth_test.h |
| +++ b/device/bluetooth/test/bluetooth_test.h |
| @@ -113,6 +113,16 @@ class BluetoothTestBase : public testing::Test { |
| BluetoothDevice* device, |
| const std::vector<std::string>& uuids) {} |
| + // Simualtes success of discovering included services of |service|. |uuids| is |
|
scheib
2016/02/24 01:39:10
Simulates
gogerald1
2016/02/24 16:09:07
Done.
|
| + // used to create an included service for each UUID string. Multiple UUIDs |
| + // with the same value produce multiple service instances. |
| + virtual void SimulateIncludedGattServicesDiscovered( |
| + BluetoothGattService* service, |
| + const std::vector<std::string>& uuids) {} |
| + |
| + // Simulates remove of a |service|. |
| + virtual void SimulateGattServiceRemoved(BluetoothGattService* service) {} |
| + |
| // Simulates failure to discover services. |
| virtual void SimulateGattServicesDiscoveryError(BluetoothDevice* device) {} |
| @@ -121,6 +131,11 @@ class BluetoothTestBase : public testing::Test { |
| const std::string& uuid, |
| int properties) {} |
| + // Simulates remove of a |characteristic| from |service|. |
| + virtual void SimulateGattCharacteristicRemove( |
|
scheib
2016/02/24 01:39:10
SimulateGattCharacteristicRemoved
gogerald1
2016/02/24 16:09:07
Done.
|
| + BluetoothGattService* service, |
| + BluetoothGattCharacteristic* characteristic) {} |
| + |
| // Remembers |characteristic|'s platform specific object to be used in a |
| // subsequent call to methods such as SimulateGattCharacteristicRead that |
| // accept a nullptr value to select this remembered characteristic. This |