| 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 f3d98a7bd4eb97099af51ab71196e7caa84f8862..b3677b0c792d83b110cc21e1197ade23a9804992 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
|
| @@ -632,15 +632,6 @@ class Fakes {
|
| (FakeBluetoothGattCharacteristic) chromeCharacteristic.mCharacteristic;
|
| UUID uuid = UUID.fromString(uuidString);
|
|
|
| - // Check for duplicates
|
| - for (Wrappers.BluetoothGattDescriptorWrapper descriptor :
|
| - fakeCharacteristic.mDescriptors) {
|
| - if (descriptor.getUuid().equals(uuid)) {
|
| - throw new IllegalArgumentException(
|
| - "FakeBluetoothGattCharacteristic addDescriptor called with uuid '"
|
| - + uuidString + "' that has already been added to this characteristic.");
|
| - }
|
| - }
|
| fakeCharacteristic.mDescriptors.add(
|
| new FakeBluetoothGattDescriptor(fakeCharacteristic, uuid));
|
| }
|
| @@ -649,16 +640,6 @@ class Fakes {
|
| // Wrappers.BluetoothGattCharacteristicWrapper overrides:
|
|
|
| @Override
|
| - public Wrappers.BluetoothGattDescriptorWrapper getDescriptor(UUID uuid) {
|
| - for (Wrappers.BluetoothGattDescriptorWrapper descriptor : mDescriptors) {
|
| - if (descriptor.getUuid().equals(uuid)) {
|
| - return descriptor;
|
| - }
|
| - }
|
| - return null;
|
| - }
|
| -
|
| - @Override
|
| public List<Wrappers.BluetoothGattDescriptorWrapper> getDescriptors() {
|
| return mDescriptors;
|
| }
|
|
|