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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.mm

Issue 2465283003: bluetooth: Add logging for peripheral events on mac (Closed)
Patch Set: Fixup Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_low_energy_device_mac.mm
diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.mm b/device/bluetooth/bluetooth_low_energy_device_mac.mm
index ebf0f4cccaa613a1aabd9c8ab84bbba80289e908..324318de03c6bb9b450d410a0edda40518a71025 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
@@ -192,6 +192,7 @@ void BluetoothLowEnergyDeviceMac::DidDiscoverPrimaryServices(NSError* error) {
<< ": " << error.code << ")";
return;
}
+ VLOG(1) << "DidDiscoverPrimaryServices.";
if (!IsGattConnected()) {
// Don't create services if the device disconnected.
@@ -230,6 +231,7 @@ void BluetoothLowEnergyDeviceMac::DidDiscoverCharacteristics(
<< ": " << error.code << ")";
return;
}
+ VLOG(1) << "DidDiscoverCharacteristics.";
if (!IsGattConnected()) {
// Don't create characteristics if the device disconnected.
@@ -260,10 +262,12 @@ void BluetoothLowEnergyDeviceMac::DidDiscoverCharacteristics(
void BluetoothLowEnergyDeviceMac::DidModifyServices(
NSArray* invalidatedServices) {
+ VLOG(1) << "DidModifyServices: ";
for (CBService* cb_service in invalidatedServices) {
BluetoothRemoteGattServiceMac* gatt_service =
GetBluetoothRemoteGattService(cb_service);
DCHECK(gatt_service);
+ VLOG(1) << gatt_service->GetUUID().canonical_value();
std::unique_ptr<BluetoothRemoteGattService> scoped_service =
gatt_services_.take_and_erase(gatt_service->GetIdentifier());
adapter_->NotifyGattServiceRemoved(scoped_service.get());
@@ -277,6 +281,7 @@ void BluetoothLowEnergyDeviceMac::DidModifyServices(
void BluetoothLowEnergyDeviceMac::DidUpdateValue(
CBCharacteristic* characteristic,
NSError* error) {
+ VLOG(1) << "DidUpdateValue.";
BluetoothRemoteGattServiceMac* gatt_service =
GetBluetoothRemoteGattService(characteristic.service);
DCHECK(gatt_service);
@@ -286,6 +291,7 @@ void BluetoothLowEnergyDeviceMac::DidUpdateValue(
void BluetoothLowEnergyDeviceMac::DidWriteValue(
CBCharacteristic* characteristic,
NSError* error) {
+ VLOG(1) << "DidWriteValue.";
BluetoothRemoteGattServiceMac* gatt_service =
GetBluetoothRemoteGattService(characteristic.service);
DCHECK(gatt_service);
@@ -295,6 +301,7 @@ void BluetoothLowEnergyDeviceMac::DidWriteValue(
void BluetoothLowEnergyDeviceMac::DidUpdateNotificationState(
CBCharacteristic* characteristic,
NSError* error) {
+ VLOG(1) << "DidUpdateNotificationState";
BluetoothRemoteGattServiceMac* gatt_service =
GetBluetoothRemoteGattService(characteristic.service);
DCHECK(gatt_service);
« 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