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

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

Issue 1950033002: bluetooth: mac: Initial BluetoothRemoteGattCharacteristicMac implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@servicescan_cleanup
Patch Set: Fixing the build Created 4 years, 6 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_cbservice_mac.h
diff --git a/device/bluetooth/test/mock_bluetooth_cbservice_mac.h b/device/bluetooth/test/mock_bluetooth_cbservice_mac.h
index 553370649f751d3a03c222038def7f1a09e3f745..fd0867dd810fa79bbdbb3494ff6b9bba15bdc6c0 100644
--- a/device/bluetooth/test/mock_bluetooth_cbservice_mac.h
+++ b/device/bluetooth/test/mock_bluetooth_cbservice_mac.h
@@ -10,6 +10,8 @@
#import <CoreBluetooth/CoreBluetooth.h>
+@class MockCBCharacteristic;
+
// This class mocks the behavior of a CBService.
@interface MockCBService : NSObject
@@ -17,7 +19,13 @@
@property(readonly, nonatomic) BOOL isPrimary;
@property(readonly, nonatomic) CBService* service;
-- (instancetype)initWithCBUUID:(CBUUID*)uuid primary:(BOOL)isPrimary;
+- (instancetype)initWithPeripheral:(CBPeripheral*)peripheral
+ CBUUID:(CBUUID*)uuid
+ primary:(BOOL)isPrimary;
+
+// Creates and adds a mock characteristic.
+- (void)addCharacteristicWithUUID:(CBUUID*)cb_uuid properties:(int)properties;
+- (void)removeCharacteristicMock:(MockCBCharacteristic*)characteristic_mock;
@end
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm ('k') | device/bluetooth/test/mock_bluetooth_cbservice_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698