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

Unified Diff: device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm

Issue 2641133003: Bluetooth: macOS: Adding counter for service discovery callbacks. (Closed)
Patch Set: Splitting test Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm
diff --git a/device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm b/device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm
index a11a11ba5ddcda7c04fd1e30664aa8673f009963..75a1de62ee7abc1e578067256d47a66eb900b08c 100644
--- a/device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm
+++ b/device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm
@@ -83,11 +83,13 @@ using base::scoped_nsobject;
if (_bluetoothTestMac) {
_bluetoothTestMac->OnFakeBluetoothServiceDiscovery();
}
- [_delegate peripheral:self.peripheral didDiscoverServices:nil];
}
- (void)discoverCharacteristics:(NSArray*)characteristics
forService:(CBService*)service {
+ if (_bluetoothTestMac) {
+ _bluetoothTestMac->OnFakeBluetoothCharacteristicDiscovery();
+ }
}
- (void)discoverDescriptorsForCharacteristic:(CBCharacteristic*)characteristic {

Powered by Google App Engine
This is Rietveld 408576698