| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_remote_gatt_descriptor_mac.h" | 5 #include "device/bluetooth/bluetooth_remote_gatt_descriptor_mac.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #import "base/mac/foundation_util.h" | 8 #import "base/mac/foundation_util.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 CBDescriptor* BluetoothRemoteGattDescriptorMac::GetCBDescriptor() const { | 182 CBDescriptor* BluetoothRemoteGattDescriptorMac::GetCBDescriptor() const { |
| 183 return cb_descriptor_; | 183 return cb_descriptor_; |
| 184 } | 184 } |
| 185 | 185 |
| 186 DEVICE_BLUETOOTH_EXPORT std::ostream& operator<<( | 186 DEVICE_BLUETOOTH_EXPORT std::ostream& operator<<( |
| 187 std::ostream& out, | 187 std::ostream& out, |
| 188 const BluetoothRemoteGattDescriptorMac& descriptor) { | 188 const BluetoothRemoteGattDescriptorMac& descriptor) { |
| 189 const BluetoothRemoteGattCharacteristicMac* characteristic_mac = | 189 const BluetoothRemoteGattCharacteristicMac* characteristic_mac = |
| 190 static_cast<const BluetoothRemoteGattCharacteristicMac*>( | 190 static_cast<const BluetoothRemoteGattCharacteristicMac*>( |
| 191 descriptor.GetCharacteristic()); | 191 descriptor.GetCharacteristic()); |
| 192 return out << "<BluetoothRemoteGattServiceMac " | 192 return out << "<BluetoothRemoteGattDescriptorMac " |
| 193 << descriptor.GetUUID().canonical_value() << "/" << &descriptor | 193 << descriptor.GetUUID().canonical_value() << "/" << &descriptor |
| 194 << ", characteristic: " | 194 << ", characteristic: " |
| 195 << characteristic_mac->GetUUID().canonical_value() << "/" | 195 << characteristic_mac->GetUUID().canonical_value() << "/" |
| 196 << characteristic_mac << ">"; | 196 << characteristic_mac << ">"; |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace device. | 199 } // namespace device. |
| OLD | NEW |