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

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

Issue 1227273005: bluetooth: Implement MissingServiceGenericAccessAdapter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-tests-small-3
Patch Set: Merged with ToT Created 5 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 2d27eb840c26db1c6776e52d8e90b3eb7aca63e1..1f5ad1d74f5004e5b7341fa5961099a5dfc59ce9 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
@@ -86,6 +86,14 @@ class LayoutTestBluetoothAdapterProvider {
static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
GetGlucoseHeartRateAdapter();
+ // |MissingServiceGenericAccessAdapter|
+ // Inherits from EmptyAdapter
+ // Internal Structure:
+ // - GenericAccessDevice
+ // - Generic Access UUID (0x1800)
+ static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
+ GetMissingServiceGenericAccessAdapter();
+
// Discovery Sessions
// |DiscoverySession|
@@ -167,6 +175,33 @@ class LayoutTestBluetoothAdapterProvider {
static scoped_ptr<testing::NiceMock<device::MockBluetoothDevice>>
GetHeartRateDevice(device::MockBluetoothAdapter* adapter);
+ // |ConnectableDevice|
+ // Inherits from BaseDevice(adapter, device_name)
+ // Adv UUIDs Added:
+ // None.
+ // Services Added:
+ // None.
+ // Mock Functions:
+ // - CreateGattConnection:
+ // - Run success callback with BaseGATTConnection
+ static scoped_ptr<testing::NiceMock<device::MockBluetoothDevice>>
+ GetConnectableDeviceNew(
+ device::MockBluetoothAdapter* adapter,
+ const std::string& device_name = "Connectable Device",
+ device::BluetoothDevice::UUIDList = device::BluetoothDevice::UUIDList());
+
+ // |GenericAccessDevice|
+ // Inherits from ConnectableDevice(adapter, device_name)
+ // Adv UUIDs Added:
+ // - Generic Access UUID (0x1800)
+ // Services Added:
+ // None. Each user of the GenericAccessDevice is in charge of adding the
+ // relevant services, characteristics, and descriptors.
+ static scoped_ptr<testing::NiceMock<device::MockBluetoothDevice>>
+ GetGenericAccessDevice(
+ device::MockBluetoothAdapter* adapter,
+ const std::string& device_name = "Generic Access Device");
+
// The functions after this haven't been updated to the new design yet.
// Returns "SingleEmptyDeviceAdapter" fake BluetoothAdapter with the following
« 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