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

Side by Side 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 unified diff | Download patch
OLDNEW
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
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.
OLDNEW
« 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