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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm

Issue 2745983003: Bluetooth: macOS: Adding logs (Closed)
Patch Set: Changing GetIdentifier() by GetUUID() + pointer Created 3 years, 9 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/bluetooth_remote_gatt_descriptor_mac.mm
diff --git a/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm b/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm
index d867349abf338719329b1e7f4bb25d29eebd5751..76cda0c349c19726f6917e40af48db3fd210a4a2 100644
--- a/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm
+++ b/device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm
@@ -74,4 +74,17 @@ CBDescriptor* BluetoothRemoteGattDescriptorMac::GetCBDescriptor() const {
return cb_descriptor_.get();
}
+DEVICE_BLUETOOTH_EXPORT std::ostream& operator<<(
+ std::ostream& out,
+ const BluetoothRemoteGattDescriptorMac& descriptor) {
+ const BluetoothRemoteGattCharacteristicMac* characteristic_mac =
+ static_cast<const BluetoothRemoteGattCharacteristicMac*>(
+ descriptor.GetCharacteristic());
+ return out << "<BluetoothRemoteGattServiceMac "
+ << descriptor.GetUUID().canonical_value() << "/" << &descriptor
+ << ", characteristic: "
+ << characteristic_mac->GetUUID().canonical_value() << "/"
+ << characteristic_mac << ">";
+}
+
} // namespace device.
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_descriptor_mac.h ('k') | device/bluetooth/bluetooth_remote_gatt_service_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698