| Index: device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java
|
| diff --git a/device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java b/device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java
|
| index 7bf77c8576a253df3f49996c9bf5991834f01754..443da83345912157e2c8ca31cba0e62ba11acced 100644
|
| --- a/device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java
|
| +++ b/device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java
|
| @@ -317,7 +317,7 @@ class Fakes {
|
| // Create a characteristic and add it to this service.
|
| @CalledByNative("FakeBluetoothGattService")
|
| private static void addCharacteristic(
|
| - ChromeBluetoothRemoteGattService chromeService, String uuidString) {
|
| + ChromeBluetoothRemoteGattService chromeService, String uuidString, int properties) {
|
| FakeBluetoothGattService fakeService =
|
| (FakeBluetoothGattService) chromeService.mService;
|
| UUID uuid = UUID.fromString(uuidString);
|
| @@ -330,7 +330,7 @@ class Fakes {
|
| }
|
| }
|
| fakeService.mCharacteristics.add(new FakeBluetoothGattCharacteristic(
|
| - uuid, /* instanceId */ countOfDuplicateUUID));
|
| + /* instanceId */ countOfDuplicateUUID, properties, uuid));
|
| }
|
|
|
| // -----------------------------------------------------------------------------------------
|
| @@ -357,13 +357,15 @@ class Fakes {
|
| */
|
| static class FakeBluetoothGattCharacteristic
|
| extends Wrappers.BluetoothGattCharacteristicWrapper {
|
| - final UUID mUuid;
|
| final int mInstanceId;
|
| + final int mProperties;
|
| + final UUID mUuid;
|
|
|
| - public FakeBluetoothGattCharacteristic(UUID uuid, int instanceId) {
|
| + public FakeBluetoothGattCharacteristic(int instanceId, int properties, UUID uuid) {
|
| super(null);
|
| - mUuid = uuid;
|
| mInstanceId = instanceId;
|
| + mProperties = properties;
|
| + mUuid = uuid;
|
| }
|
|
|
| @Override
|
| @@ -372,6 +374,11 @@ class Fakes {
|
| }
|
|
|
| @Override
|
| + public int getProperties() {
|
| + return mProperties;
|
| + }
|
| +
|
| + @Override
|
| public UUID getUuid() {
|
| return mUuid;
|
| }
|
|
|