| Index: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h
|
| diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h
|
| index c685dca5fa3d268d918c287b3f01b6cd1e83bf57..30748dcf7237f7193b04582ac672ee32cbe95085 100644
|
| --- a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h
|
| +++ b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h
|
| @@ -295,12 +295,33 @@ class LayoutTestBluetoothAdapterProvider {
|
| // GetGenericAccessService.
|
| // - Heart Rate Service - Characteristics as described in
|
| // GetHeartRateService.
|
| - // - Request Disconnection Service:
|
| - // - Request Disconnection Characteristic - A write will cause the
|
| - // device to disconnect.
|
| + // - Request Disconnection Service: - Characteristics as described in
|
| + // GetDisconnectingService
|
| static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
|
| GetDisconnectingHeartRateAdapter();
|
|
|
| + // |DisconnectingHealthThermometerAdapter|
|
| + // Inherits from |EmptyAdapter|
|
| + // Internal Structure:
|
| + // - Disconnecting Health Thermometer Device
|
| + // - UUIDs:
|
| + // - Generic Access UUID (0x1800)
|
| + // - Health Thermometer UUID (0x1809)
|
| + // - Services:
|
| + // - Generic Access Service - Characteristics as described in
|
| + // GetGenericAccessService.
|
| + // - Request Disconnection Service: - Characteristics as described in
|
| + // GetDisconnectingService
|
| + // - Health Thermometer:
|
| + // - Measurement Interval (0x2a21):
|
| + // - Read: Calls GattCharacteristicValueChanged and success
|
| + // callback with [1].
|
| + // - GetProperties: Returns
|
| + // BluetoothRemoteGattCharacteristic::PROPERTY_READ
|
| + // TODO(crbug.com/608538): Mock Write and StartNotifySession.
|
| + static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
|
| + GetDisconnectingHealthThermometer();
|
| +
|
| // |ServicesDiscoveredAfterReconnectionAdapter|(disconnect)
|
| // Inherits from |HeartRateAdapter|
|
| // Internal Structure:
|
| @@ -439,6 +460,8 @@ class LayoutTestBluetoothAdapterProvider {
|
| // - ErrorCharacteristic(
|
| // BluetoothRemoteGattService::GATT_ERROR_NOT_SUPPORTED)
|
| // errorUUID(0xA8)
|
| + // - Request Disconnection Service: - Characteristics as described in
|
| + // GetDisconnectingService
|
| static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
|
| GetFailingGATTOperationsAdapter();
|
|
|
| @@ -652,6 +675,16 @@ class LayoutTestBluetoothAdapterProvider {
|
| GetHeartRateService(device::MockBluetoothAdapter* adapter,
|
| device::MockBluetoothDevice* device);
|
|
|
| + // |DisconnectingService|
|
| + // Internal Structure:
|
| + // - Characteristics:
|
| + // - Request Disconnection Characteristic (
|
| + // 01d7d889-7451-419f-aeb8-d65e7b9277af)
|
| + // - Write: Sets the device to disconnected and calls DeviceChanged.
|
| + static std::unique_ptr<testing::NiceMock<device::MockBluetoothGattService>>
|
| + GetDisconnectingService(device::MockBluetoothAdapter* adapter,
|
| + device::MockBluetoothDevice* device);
|
| +
|
| // Characteristics
|
|
|
| // |BaseCharacteristic|(identifier, service, uuid)
|
|
|