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 std::string BluetoothRemoteGattDescriptorMac::ToString() const { | |
78 return std::string("<BluetoothRemoteGattServiceMac ") + GetIdentifier() + | |
79 ", characteristic " + gatt_characteristic_->GetIdentifier() + ">"; | |
ortuno
2017/03/14 00:34:33
Same here. The UUID would be more useful.
| |
80 } | |
81 | |
77 } // namespace device. | 82 } // namespace device. |
OLD | NEW |