Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1681)

Unified Diff: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h

Issue 2443473003: bluetooth: Require frame to be connected for characteristic.readValue to succeed (Closed)
Patch Set: Fix typo Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698