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

Unified Diff: device/bluetooth/test/bluetooth_test_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/bluetooth_test_mac.mm
diff --git a/device/bluetooth/test/bluetooth_test_mac.mm b/device/bluetooth/test/bluetooth_test_mac.mm
index 41b5748f1050c3bbc12e3a893f0c0867a43b604a..30b33d330955319a2b72c39b2f556acdbfe00b9f 100644
--- a/device/bluetooth/test/bluetooth_test_mac.mm
+++ b/device/bluetooth/test/bluetooth_test_mac.mm
@@ -467,6 +467,7 @@ void BluetoothTestMac::SimulateGattCharacteristicRemoved(
MockCBCharacteristic* characteristic_mock =
ObjCCast<MockCBCharacteristic>(cb_characteristic);
[service_mock removeCharacteristicMock:characteristic_mock];
+ [peripheral_mock didModifyServices:@[]];
[peripheral_mock mockDidDiscoverEvents];
}
@@ -499,6 +500,10 @@ void BluetoothTestMac::OnFakeBluetoothServiceDiscovery() {
gatt_discovery_attempts_++;
}
+void BluetoothTestMac::OnFakeBluetoothCharacteristicDiscovery() {
+ gatt_characteristic_discovery_attempts_++;
+}
+
void BluetoothTest::OnFakeBluetoothCharacteristicReadValue() {
gatt_read_characteristic_attempts_++;
}

Powered by Google App Engine
This is Rietveld 408576698