Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2229)

Unified Diff: device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java

Issue 1423093003: bluetooth: android: BluetoothRemoteGattCharacteristicAndroid::GetProperties() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-getuuid-
Patch Set: merge tot Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_characteristic_android.cc ('k') | device/bluetooth/test/bluetooth_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698