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

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

Issue 2183903002: bluetooth: Reject getPrimaryService(s) if frame is not connected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Docs Created 4 years, 5 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 32747e89a43ac1e31af9369e65c154190ba9c245..e587855d07ae34d98289fbdaaa39a995215308d5 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
@@ -217,6 +217,29 @@ class LayoutTestBluetoothAdapterProvider {
static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
GetDisconnectingHeartRateAdapter();
+ // |ServicesDiscoveredAfterReconnectionAdapter|(disconnect)
+ // Inherits from |HeartRateAdapter|
+ // Internal Structure:
+ // - Heart Rate Device
+ // - UUIDs:
+ // - Generic Access UUID (0x1800)
+ // - Heart Rate UUID (0x180d)
+ // - Services:
+ // - Generic Access Service - Characteristics as described in
+ // GetGenericAccessService.
+ // - Heart Rate Service - Characteristics as described in
+ // GetHeartRateService.
+ // - CreateGattConnection: When called before IsGattDiscoveryComplete,
+ // runs success callback with a new Gatt connection. When called
+ // after IsGattDiscoveryComplete runs success callback with a new
+ // Gatt connection and notifies of services discovered.
+ // - IsGattDiscoveryComplete: The first time this function is called,
+ // it adds two services (Generic Access and Heart Rate) and
+ // if |disconnect| is true disconnects the device and returns false.
+ // After that it just returns true.
+ static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
+ GetServicesDiscoveredAfterReconnectionAdapter(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