| 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 2ef2df31c37492ee08de023807e45665aa6d2b43..f2fc99ab0dbee67c0715db5c9abdab8c52173dfd 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
|
| @@ -32,6 +32,15 @@ class LayoutTestBluetoothAdapterProvider {
|
| static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
|
| GetEmptyAdapter();
|
|
|
| + // Returns a fake BluetoothAdapter that asserts that its
|
| + // StartDiscoverySessionWithFilter() method is called with a filter consisting
|
| + // of the standard battery, heart rate, and glucose services.
|
| + // - |StartDiscoverySession| runs the first argument with |DiscoverySession|
|
| + // as argument.
|
| + // - |GetDevices| returns an empty list of devices.
|
| + static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
|
| + GetScanFilterCheckingAdapter();
|
| +
|
| // Returns "SingleEmptyDeviceAdapter" fake BluetoothAdapter with the following
|
| // characteristics:
|
| // - |StartDiscoverySession| runs the first argument with |DiscoverySession|
|
| @@ -40,6 +49,18 @@ class LayoutTestBluetoothAdapterProvider {
|
| static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
|
| GetSingleEmptyDeviceAdapter();
|
|
|
| + // Returns "MultiDeviceAdapter", a fake BluetoothAdapter with the following
|
| + // characteristics:
|
| + // - |StartDiscoverySession| runs the first argument with |DiscoverySession|
|
| + // as argument.
|
| + // - |GetDevices| returns a list with 2 devices:
|
| + // - GetUUIDs() returns a Heart Rate Service,
|
| + // and GetName() returns "Heart Rate Device".
|
| + // - GetUUIDs() returns a Glucose Service,
|
| + // and GetName() returns "Glucose Device".
|
| + static scoped_refptr<testing::NiceMock<device::MockBluetoothAdapter>>
|
| + GetMultiDeviceAdapter();
|
| +
|
| // Returns "ConnectableDeviceAdapter" fake BluetoothAdapter with the
|
| // following characteristics:
|
| // - |StartDiscoverySession| runs the first argument with |DiscoverySession|
|
| @@ -77,7 +98,8 @@ class LayoutTestBluetoothAdapterProvider {
|
| // "Empty Mock Device Name", and a "Reconnection Address" characteristic
|
| // which can't be read.
|
| static scoped_ptr<testing::NiceMock<device::MockBluetoothDevice>>
|
| - GetEmptyDevice(device::MockBluetoothAdapter* adapter);
|
| + GetEmptyDevice(device::MockBluetoothAdapter* adapter,
|
| + const std::string& device_name = "Empty Mock Device");
|
|
|
| // Returns a fake |ConnectableDevice| with the same characteristics as
|
| // |EmptyDevice| except:
|
|
|