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

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

Issue 2595373003: Bluetooth: mac: Working on macOS descriptor implementation. (Closed)
Patch Set: Fixes Created 3 years, 11 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_cbcharacteristic_mac.h
diff --git a/device/bluetooth/test/mock_bluetooth_cbcharacteristic_mac.h b/device/bluetooth/test/mock_bluetooth_cbcharacteristic_mac.h
index 4a4c9255d2483a1969c0dc40dbaa1b0993c37fee..a231970ff569f5ecbef98563b449ad0578834de6 100644
--- a/device/bluetooth/test/mock_bluetooth_cbcharacteristic_mac.h
+++ b/device/bluetooth/test/mock_bluetooth_cbcharacteristic_mac.h
@@ -13,8 +13,9 @@
// This class mocks the behavior of a CBCharacteristic.
@interface MockCBCharacteristic : NSObject
-@property(readonly, nonatomic) CBUUID* UUID;
-@property(readonly, nonatomic) CBCharacteristic* characteristic;
+@property(nonatomic, readonly) CBUUID* UUID;
+@property(nonatomic, readonly) CBCharacteristic* characteristic;
+@property(nonatomic, readonly) NSArray* descriptors;
- (instancetype)initWithService:(CBService*)service
CBUUID:(CBUUID*)uuid
@@ -26,6 +27,8 @@
- (void)simulateGattNotifySessionStarted;
- (void)simulateGattNotifySessionFailedWithError:(NSError*)error;
- (void)simulateGattCharacteristicChangedWithValue:(NSData*)value;
+- (void)simulateDescriptorWithUUID:(CBUUID*)uuid;
+- (void)discoverDescriptors;
@end
« no previous file with comments | « device/bluetooth/test/bluetooth_test_mac.mm ('k') | device/bluetooth/test/mock_bluetooth_cbcharacteristic_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698