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

Side by Side Diff: device/bluetooth/bluetooth_remote_gatt_descriptor_mac.mm

Issue 2869833004: bluetooth: macOS: Fixing BluetoothRemoteGattDescriptorMac log description (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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.
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698