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

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

Issue 1264323002: bluetooth: Return specific message if Bluetooth Adapter is off (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-web-bluetooth-action
Patch Set: Add issue to TODO Created 5 years, 4 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 e1340c86a1116242a8c048529da7036abc621d71..9d52de934c1d4b9ee2631142262174339c5b0ee4 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
@@ -42,8 +42,44 @@ class LayoutTestBluetoothAdapterProvider {
static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
GetBaseAdapter();
- // |ScanFilterCheckingAdapter|
+ // |PresentAdapter|
+ // Inherits from |BaseAdapter|
+ // Devices added:
+ // None.
+ // Mock Functions:
+ // - IsPresent: Returns true
+ static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
+ GetPresentAdapter();
+
+ // |NotPresentAdapter|
// Inherits from |BaseAdapter|
+ // Devices added:
+ // None.
+ // Mock Functions:
+ // - IsPresent: Returns false
+ static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
+ GetNotPresentAdapter();
+
+ // |PoweredAdapter|
+ // Inherits from |PresentAdapter|
+ // Devices added:
+ // None.
+ // Mock Functions:
+ // - IsPowered: Returns true
+ static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
+ GetPoweredAdapter();
+
+ // |NotPoweredAdapter|
+ // Inherits from |PresentAdapter|
+ // Devices added:
+ // None.
+ // Mock Functions:
+ // - IsPowered: Returns false
+ static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
+ GetNotPoweredAdapter();
+
+ // |ScanFilterCheckingAdapter|
+ // Inherits from |PoweredAdapter|
// BluetoothAdapter that asserts that its StartDiscoverySessionWithFilter()
// method is called with a filter consisting of the standard battery, heart
// rate, and glucose services.
@@ -58,7 +94,7 @@ class LayoutTestBluetoothAdapterProvider {
GetScanFilterCheckingAdapter();
// |FailStartDiscoveryAdapter|
- // Inherits from |BaseAdapter|
+ // Inherits from |PoweredAdapter|
// Devices added:
// None.
// Mock Functions:
@@ -68,7 +104,7 @@ class LayoutTestBluetoothAdapterProvider {
GetFailStartDiscoveryAdapter();
// |EmptyAdapter|
- // Inherits from |BaseAdapter|
+ // Inherits from |PoweredAdapter|
// Devices Added:
// None.
// Mock Functions:
@@ -116,7 +152,7 @@ class LayoutTestBluetoothAdapterProvider {
GetGenericAccessAdapter();
// |FailingConnectionsAdapter|
- // Inherits from |BaseAdapter|
+ // Inherits from |EmptyAdapter|
// FailingConnectionsAdapter holds a device for each type of connection error
// that can occur. This way we don’t need to create an adapter for each type
// of error. Each of the devices has a service with a different UUID so that

Powered by Google App Engine
This is Rietveld 408576698