| 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..bfe6cbbabfe19c6e4a38ce1d71425f551e1e49d7 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) {}
|
|
|
| + // Simulates success of discovering included services of |service|. |uuids| is
|
| + // 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 SimulateGattCharacteristicRemoved(
|
| + 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
|
|
|