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 41d0bfd44e85a0fb39a3c2f825f9b2a2318b5d52..d7a0337d01c07da30c4e5308be123cd26e0022c0 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 |
@@ -213,10 +213,13 @@ class LayoutTestBluetoothAdapterProvider { |
// Internal Structure: |
// - |ConnectableDevice|(adapter, "Heart Rate And HID Device", uuids) |
// - UUIDs: |
+ // - Device Information UUID (0x180a) |
// - Generic Access UUID (0x1800) |
// - Heart Rate UUID (0x180d) |
// - Human Interface Device UUID (0x1812) (a blacklisted service) |
// - Services: |
+ // - Device Information Service - Characteristics as described in |
ortuno
2016/02/24 23:08:17
Ah. I ordered these by UUID, but it looks alphabet
scheib
2016/02/24 23:38:52
Done.
|
+ // GetDeviceInformationService. |
// - Generic Access Service - Characteristics as described in |
// GetGenericAccessService. |
// - Heart Rate Service - Characteristics as described in |
@@ -456,6 +459,17 @@ class LayoutTestBluetoothAdapterProvider { |
GetBaseGATTService(device::MockBluetoothDevice* device, |
const std::string& uuid); |
+ // |GetDeviceInformationService| |
+ // Internal Structure: |
+ // - Characteristics: |
+ // - Serial Number String: (a blacklisted characteristic) |
+ // - Mock Functions: |
+ // - Read: Fails test. |
+ // - GetProperties: Returns |
+ // BluetoothGattCharacteristic::PROPERTY_READ |
+ static scoped_ptr<testing::NiceMock<device::MockBluetoothGattService>> |
+ GetDeviceInformationService(device::MockBluetoothDevice* device); |
+ |
// |GenericAccessService| |
// Internal Structure: |
// - Characteristics: |
@@ -467,8 +481,7 @@ class LayoutTestBluetoothAdapterProvider { |
// BluetoothGattCharacteristic::PROPERTY_READ | |
// BluetoothGattCharacteristic::PROPERTY_WRITE |
static scoped_ptr<testing::NiceMock<device::MockBluetoothGattService>> |
- GetGenericAccessService(device::MockBluetoothAdapter* adapter, |
- device::MockBluetoothDevice* device); |
+ GetGenericAccessService(device::MockBluetoothDevice* device); |
// |HeartRateService| |
// Internal Structure: |