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

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

Issue 2339253002: bluetooth: mac: add connected LE devices to chooser (Closed)
Patch Set: Nit for the tests 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
Index: device/bluetooth/test/mock_bluetooth_central_manager_mac.h
diff --git a/device/bluetooth/test/mock_bluetooth_central_manager_mac.h b/device/bluetooth/test/mock_bluetooth_central_manager_mac.h
index 5bc02457f53be705fc48a2b785178cdce2f844e6..aee59e3953fb75090cb9e8136fb6b0723d06456b 100644
--- a/device/bluetooth/test/mock_bluetooth_central_manager_mac.h
+++ b/device/bluetooth/test/mock_bluetooth_central_manager_mac.h
@@ -23,6 +23,7 @@
@property(nonatomic, assign) id<CBCentralManagerDelegate> delegate;
@property(nonatomic, assign) CBCentralManagerState state;
@property(nonatomic, assign) device::BluetoothTestMac* bluetoothTestMac;
+@property(nonatomic, readonly) NSArray* retrieveConnectedPeripheralServiceUUIDs;
- (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs
options:(NSDictionary*)options;
@@ -32,6 +33,15 @@
- (void)connectPeripheral:(CBPeripheral*)peripheral
options:(NSDictionary*)options;
+// Simulates a peripheral being used by another application. This peripheral
+// will be returned by -[MockCentralManager
+// retrieveConnectedPeripheralsWithServices:].
+- (void)setConnectedMockPeripheral:(CBPeripheral*)peripheral
+ withServiceUUIDs:(NSSet*)serviceUUIDs;
+
+// Reset -[MockCentralManager retrieveConnectedPeripheralServiceUUIDs].
+- (void)resetRetrieveConnectedPeripheralServiceUUIDs;
+
@end
#endif // DEVICE_BLUETOOTH_MOCK_BLUETOOTH_CENTRAL_MANAGER_MAC_H_
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm ('k') | device/bluetooth/test/mock_bluetooth_central_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698