| 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 fc8efb9ee67ae1853784f21c6e3e2094c858d9c3..9cf3d8589c0aeec370fb8fd44c881bbb828e2874 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
|
| @@ -10,7 +10,9 @@
|
| #include "device/bluetooth/test/mock_bluetooth_adapter.h"
|
| #include "device/bluetooth/test/mock_bluetooth_device.h"
|
| #include "device/bluetooth/test/mock_bluetooth_discovery_session.h"
|
| +#include "device/bluetooth/test/mock_bluetooth_gatt_characteristic.h"
|
| #include "device/bluetooth/test/mock_bluetooth_gatt_service.h"
|
| +
|
| namespace content {
|
|
|
| // Implements fake adapters with named mock data set for use in tests as a
|
| @@ -97,6 +99,17 @@ class LayoutTestBluetoothAdapterProvider {
|
| // - |GetDevice| returns |device|.
|
| static scoped_ptr<testing::NiceMock<device::MockBluetoothGattService>>
|
| GetMockService(device::MockBluetoothDevice* device, const std::string& uuid);
|
| +
|
| + // Returns a fake BluetoothGattCharacteristic with the following
|
| + // characteristics:
|
| + // - |GetIdentifier| returns |uuid|.
|
| + // - |GetUUID| returns BluetoothUUID(|uuid|).
|
| + // - |IsLocal| returns false.
|
| + // - |GetService| returns |service|.
|
| + // - |IsNotifying| returns false.
|
| + static scoped_ptr<testing::NiceMock<device::MockBluetoothGattCharacteristic>>
|
| + GetMockCharacteristic(device::MockBluetoothGattService* service,
|
| + const std::string& uuid);
|
| };
|
|
|
| } // namespace content
|
|
|