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

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

Issue 2253223002: bluetooth: Implement hardware filtering on macOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 4 years, 4 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_central_manager_mac.mm
diff --git a/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm b/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm
index fbb0dff41e75d315a5044a6e61dde508fe7382fd..9ddb8eb8232e903a2ed29dfd4f3bb75e30d72a1b 100644
--- a/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm
+++ b/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm
@@ -33,6 +33,7 @@
- (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs
options:(NSDictionary*)options {
+ scan_uuids_.reset([serviceUUIDs retain]);
_scanForPeripheralsCallCount++;
}
@@ -53,4 +54,13 @@
}
}
+- (NSArray*)scan_uuids {
+ return scan_uuids_.get();
+}
+
+- (void)resetEventCounts {
+ _scanForPeripheralsCallCount = 0;
+ _stopScanCallCount = 0;
+}
+
@end

Powered by Google App Engine
This is Rietveld 408576698