| Index: device/bluetooth/bluetooth_gatt_service_unittest.cc
|
| diff --git a/device/bluetooth/bluetooth_gatt_service_unittest.cc b/device/bluetooth/bluetooth_gatt_service_unittest.cc
|
| index e153cc5fce54a672a62d1fd83204b051e945b3b8..ed01bf8b5647bd14638f3748a4f7371191f2fe42 100644
|
| --- a/device/bluetooth/bluetooth_gatt_service_unittest.cc
|
| +++ b/device/bluetooth/bluetooth_gatt_service_unittest.cc
|
| @@ -137,6 +137,13 @@ TEST_F(BluetoothGattServiceTest, GetCharacteristics_and_GetCharacteristic) {
|
| EXPECT_EQ(char_uuid2, service->GetCharacteristic(char_id2)->GetUUID());
|
| EXPECT_EQ(char_uuid3, service->GetCharacteristic(char_id3)->GetUUID());
|
| EXPECT_EQ(char_uuid4, service->GetCharacteristic(char_id4)->GetUUID());
|
| +
|
| + // GetCharacteristics & GetCharacteristic return the same object for the same
|
| + // ID:
|
| + EXPECT_EQ(service->GetCharacteristics()[0],
|
| + service->GetCharacteristic(char_id1));
|
| + EXPECT_EQ(service->GetCharacteristic(char_id1),
|
| + service->GetCharacteristic(char_id1));
|
| }
|
| #endif // defined(OS_ANDROID)
|
|
|
|
|