| Index: device/bluetooth/test/bluetooth_test.h
|
| diff --git a/device/bluetooth/test/bluetooth_test.h b/device/bluetooth/test/bluetooth_test.h
|
| index 9f5468ef7c1fb3b44700ee5aad8d9d434ef945c2..c85ab5d55ced88f2d1ecc999691cf5a10f2ef88d 100644
|
| --- a/device/bluetooth/test/bluetooth_test.h
|
| +++ b/device/bluetooth/test/bluetooth_test.h
|
| @@ -41,6 +41,21 @@ class BluetoothTestBase : public testing::Test {
|
| public:
|
| enum class Call { EXPECTED, NOT_EXPECTED };
|
|
|
| + // List of devices that can be simulated with
|
| + // SimulateConnectedLowEnergyDevice().
|
| + // GENERIC_DEVICE:
|
| + // - Name: kTestDeviceName
|
| + // - Address: kTestPeripheralUUID1
|
| + // - Services: [ kTestUUIDGenericAccess ]
|
| + // HEART_RATE_DEVICE:
|
| + // - Name: kTestDeviceName
|
| + // - Address: kTestPeripheralUUID2
|
| + // - Services: [ kTestUUIDGenericAccess, kTestUUIDHeartRate]
|
| + enum class ConnectedDeviceType {
|
| + GENERIC_DEVICE,
|
| + HEART_RATE_DEVICE,
|
| + };
|
| +
|
| static const std::string kTestAdapterName;
|
| static const std::string kTestAdapterAddress;
|
|
|
| @@ -150,6 +165,11 @@ class BluetoothTestBase : public testing::Test {
|
| // Supports BR/EDR and LE.
|
| virtual BluetoothDevice* SimulateLowEnergyDevice(int device_ordinal);
|
|
|
| + // Simulates a connected low energy device. Used before starting a low energy
|
| + // discovey session.
|
| + virtual void SimulateConnectedLowEnergyDevice(
|
| + ConnectedDeviceType device_ordinal){};
|
| +
|
| // Create a fake classic device and discover it. The device will have
|
| // name kTestDeviceName, no advertised UUIDs and address kTestDeviceAddress3.
|
| virtual BluetoothDevice* SimulateClassicDevice();
|
|
|