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

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

Issue 1666003002: bluetooth: Add Web Bluetooth blacklist checks to requestDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-blacklist-
Patch Set: Created 4 years, 10 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 85b7d78e95ca487657614fd7fc6244fbbff29016..2beaf6f3bfd7be38f04e74c449605e2734a61fad 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
@@ -205,6 +205,23 @@ class LayoutTestBluetoothAdapterProvider {
static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
GetHeartRateAdapter();
+ // |HeartRateAndHIDAdapter|
ortuno 2016/02/12 16:41:47 Can you add this device to the testing API doc or
scheib 2016/02/12 18:25:32 issue filed: https://github.com/WebBluetoothCG/web
+ // Inherits from |EmptyAdapter|
+ // Internal Structure:
+ // - |ConnectableDevice|(adapter, "Heart Rate And HID Device", uuids)
+ // - Advertised UUIDs:
+ // - Heart Rate UUID (0x180d)
+ // - Human Interface Device UUID (0x1812) (a blacklisted service)
+ // - Services:
+ // - Generic Access Service - Characteristics as described in
+ // GetGenericAccessService.
+ // - Heart Rate Service - Characteristics as described in
+ // GetHeartRateService.
+ // - Human Interface Device Service - No characteristics needed
+ // because the service is blacklisted.
+ static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
+ GetHeartRateAndHIDAdapter();
+
// |DelayedServicesDiscoveryAdapter|
// Inherits from |EmptyAdapter|
// Internal Structure:

Powered by Google App Engine
This is Rietveld 408576698