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/strings/sys_string_conversions.h" | 7 #include "base/strings/sys_string_conversions.h" |
8 #include "device/bluetooth/bluetooth_adapter_mac.h" | 8 #include "device/bluetooth/bluetooth_adapter_mac.h" |
9 #include "device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h" | 9 #include "device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h" |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 const std::vector<uint8_t>& new_value, | 67 const std::vector<uint8_t>& new_value, |
68 const base::Closure& callback, | 68 const base::Closure& callback, |
69 const ErrorCallback& error_callback) { | 69 const ErrorCallback& error_callback) { |
70 NOTIMPLEMENTED(); | 70 NOTIMPLEMENTED(); |
71 } | 71 } |
72 | 72 |
73 CBDescriptor* BluetoothRemoteGattDescriptorMac::GetCBDescriptor() const { | 73 CBDescriptor* BluetoothRemoteGattDescriptorMac::GetCBDescriptor() const { |
74 return cb_descriptor_.get(); | 74 return cb_descriptor_.get(); |
75 } | 75 } |
76 | 76 |
| 77 DEVICE_BLUETOOTH_EXPORT std::ostream& operator<<( |
| 78 std::ostream& out, |
| 79 const BluetoothRemoteGattDescriptorMac& descriptor) { |
| 80 const BluetoothRemoteGattCharacteristicMac* characteristic_mac = |
| 81 static_cast<const BluetoothRemoteGattCharacteristicMac*>( |
| 82 descriptor.GetCharacteristic()); |
| 83 return out << "<BluetoothRemoteGattServiceMac " |
| 84 << descriptor.GetUUID().canonical_value() << "/" << &descriptor |
| 85 << ", characteristic: " |
| 86 << characteristic_mac->GetUUID().canonical_value() << "/" |
| 87 << characteristic_mac << ">"; |
| 88 } |
| 89 |
77 } // namespace device. | 90 } // namespace device. |
OLD | NEW |