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. |