Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "device/bluetooth/bluetooth_gatt_service.h" | 5 #include "device/bluetooth/bluetooth_gatt_service.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "device/bluetooth/bluetooth_gatt_characteristic.h" | 8 #include "device/bluetooth/bluetooth_gatt_characteristic.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 130 std::string char_id3 = service->GetCharacteristics()[2]->GetIdentifier(); | 130 std::string char_id3 = service->GetCharacteristics()[2]->GetIdentifier(); |
| 131 std::string char_id4 = service->GetCharacteristics()[3]->GetIdentifier(); | 131 std::string char_id4 = service->GetCharacteristics()[3]->GetIdentifier(); |
| 132 BluetoothUUID char_uuid1 = service->GetCharacteristics()[0]->GetUUID(); | 132 BluetoothUUID char_uuid1 = service->GetCharacteristics()[0]->GetUUID(); |
| 133 BluetoothUUID char_uuid2 = service->GetCharacteristics()[1]->GetUUID(); | 133 BluetoothUUID char_uuid2 = service->GetCharacteristics()[1]->GetUUID(); |
| 134 BluetoothUUID char_uuid3 = service->GetCharacteristics()[2]->GetUUID(); | 134 BluetoothUUID char_uuid3 = service->GetCharacteristics()[2]->GetUUID(); |
| 135 BluetoothUUID char_uuid4 = service->GetCharacteristics()[3]->GetUUID(); | 135 BluetoothUUID char_uuid4 = service->GetCharacteristics()[3]->GetUUID(); |
| 136 EXPECT_EQ(char_uuid1, service->GetCharacteristic(char_id1)->GetUUID()); | 136 EXPECT_EQ(char_uuid1, service->GetCharacteristic(char_id1)->GetUUID()); |
| 137 EXPECT_EQ(char_uuid2, service->GetCharacteristic(char_id2)->GetUUID()); | 137 EXPECT_EQ(char_uuid2, service->GetCharacteristic(char_id2)->GetUUID()); |
| 138 EXPECT_EQ(char_uuid3, service->GetCharacteristic(char_id3)->GetUUID()); | 138 EXPECT_EQ(char_uuid3, service->GetCharacteristic(char_id3)->GetUUID()); |
| 139 EXPECT_EQ(char_uuid4, service->GetCharacteristic(char_id4)->GetUUID()); | 139 EXPECT_EQ(char_uuid4, service->GetCharacteristic(char_id4)->GetUUID()); |
| 140 | |
| 141 // Multiple GetCharacteristic calls for an ID return the same object: | |
| 142 EXPECT_EQ(service->GetCharacteristic(char_id1)->GetUUID(), | |
|
Jeffrey Yasskin
2016/01/12 23:25:59
Remove "->GetUUID()".
scheib
2016/01/12 23:54:46
Done.
| |
| 143 service->GetCharacteristic(char_id1)->GetUUID()); | |
| 140 } | 144 } |
| 141 #endif // defined(OS_ANDROID) | 145 #endif // defined(OS_ANDROID) |
| 142 | 146 |
| 143 } // namespace device | 147 } // namespace device |
| OLD | NEW |