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

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

Issue 2443063002: bluetooth: Require frame to be connected for stopNotifications to succeed. (Closed)
Patch Set: Fix test expectations Created 4 years, 1 month 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 2e0d570d66475d272115fb4f469dad2207f00d5b..adc7edf01158e7820e247da9610ef7fb22fa7f6f 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
@@ -376,6 +376,26 @@ class LayoutTestBluetoothAdapterProvider {
GetGATTOperationFinishesAfterReconnectionAdapter(bool disconnect,
bool succeeds);
+ // |StopNotifySessionFinishesAfterReconnection|(disconnect)
+ // Inherits from |EmptyAdapter|
+ // Internal Structure:
+ // - Health Thermometer Device
+ // - UUIDs:
+ // - Generic Access UUID (0x1800)
+ // - Health Thermometer UUID (0x1809)
+ // - Services:
+ // - Generic Access Service - Characteristics as described in
+ // GetGenericAccessService.
+ // - Health Thermometer
+ // - Measurement Interval:
+ // - StartNotifySession: Calls the success callback with a
+ // NotifySession whose Stop function: saves a callback and
+ // 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>>
+ GetStopNotifySessionFinishesAfterReconnectionAdapter(bool disconnect);
+
// |BlacklistTestAdapter|
// Inherits from |EmptyAdapter|
// Internal Structure:
« 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