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

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

Issue 2438963002: bluetooth: Add tests for when frame reconnects during readValue (Closed)
Patch Set: Clean up 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
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 30748dcf7237f7193b04582ac672ee32cbe95085..6f09971b74d4f4c061cc94f44395588ad6e33e2b 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
@@ -345,6 +345,28 @@ class LayoutTestBluetoothAdapterProvider {
static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
GetServicesDiscoveredAfterReconnectionAdapter(bool disconnect);
+ // |GATTOperationFinishesAfterReconnectionAdapter|(disconnect, succeeds)
+ // Inherits from |EmptyAdapter|
+ // Internal Structure:
+ // - Health Thermometer Device
+ // - UUIDs:
+ // - Generic Access UUID (0x1800)
+ // - Health Thermometer UUID (0x1809)
+ // - Services:
+ // - Generic Access Service - Characteristics as describe in
Jeffrey Yasskin 2016/10/22 01:02:06 "as described"
ortuno 2016/10/24 01:52:33 Done.
+ // GetGenericAccessService.
+ // - Health Thermometer
+ // - Measurement Interval:
+ // - Read: If |succeeds| is true, saves a success callback,
+ // otherwise it saves a failured callback. This callback
Jeffrey Yasskin 2016/10/22 01:02:06 s/failured/failure/? or "succeeding" and "failing"
ortuno 2016/10/24 01:52:33 Oops. Done.
+ // is run during CreateGattConnection. If |disconnect| is true
+ // disconnects the device.
+ // - CreateGattConnection: Runs success callback with a new GATT
+ // connection and runs any pending GATT operation callbacks.
+ static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
+ GetGATTOperationFinishesAfterReconnectionAdapter(bool disconnect,
+ bool succeeds);
+
// |BlacklistTestAdapter|
// Inherits from |EmptyAdapter|
// Internal Structure:

Powered by Google App Engine
This is Rietveld 408576698