@@ -46,13 +46,13 @@ - (instancetype)_initWithMock:(MTRMockCB *)mock;
46
46
- (void )_didUpdateState ;
47
47
- (void )_maybeDiscoverPeripheral : (MTRMockCBPeripheralDetails *)details ;
48
48
49
- // MARK: CBManager
49
+ # pragma mark - CBManager
50
50
51
51
@property (nonatomic , assign , readonly ) CBManagerState state;
52
52
@property (nonatomic , assign , readonly ) CBManagerAuthorization authorization;
53
53
@property (class , nonatomic , assign , readonly ) CBManagerAuthorization authorization;
54
54
55
- // MARK: CBCentralManager
55
+ # pragma mark - CBCentralManager
56
56
57
57
@property (nonatomic , weak , nullable ) id <CBCentralManagerDelegate> delegate;
58
58
@property (nonatomic , assign , readonly ) BOOL isScanning;
@@ -82,11 +82,11 @@ - (instancetype)_initWithDetails:(MTRMockCBPeripheralDetails *)details manager:(
82
82
83
83
@property (readonly , strong , nonatomic ) MTRMockCBCentralManager * manager; // not API, but used by BlePlatformDelegateImpl via KVC
84
84
85
- // MARK: CBPeer
85
+ # pragma mark - CBPeer
86
86
87
87
@property (readonly , nonatomic ) NSUUID * identifier;
88
88
89
- // MARK: CBPeripheral
89
+ # pragma mark - CBPeripheral
90
90
91
91
@property (weak , nonatomic , nullable ) id <CBPeripheralDelegate> delegate;
92
92
@property (retain , readonly , nullable ) NSString * name;
@@ -422,7 +422,7 @@ - (NSString *)description
422
422
return result;
423
423
}
424
424
425
- // MARK: CBManager
425
+ # pragma mark - CBManager
426
426
427
427
+ (CBManagerAuthorization)authorization
428
428
{
@@ -439,7 +439,7 @@ - (CBManagerState)state
439
439
return _mock.state ;
440
440
}
441
441
442
- // MARK: CBCentralManager
442
+ # pragma mark - CBCentralManager
443
443
444
444
+ (BOOL )supportsFeatures : (CBCentralManagerFeature)features
445
445
{
@@ -536,7 +536,7 @@ - (void)registerForConnectionEventsWithOptions:(nullable NSDictionary<CBConnecti
536
536
{
537
537
}
538
538
539
- // MARK: Internals
539
+ # pragma mark - Internals
540
540
541
541
- (void )_didUpdateState
542
542
{
@@ -592,11 +592,11 @@ - (NSString *)description
592
592
return result;
593
593
}
594
594
595
- // MARK: CBPeer <NSCopying>
595
+ # pragma mark - CBPeer <NSCopying>
596
596
597
597
- (BOOL )isEqual : (id )object
598
598
{
599
- return [object class ] == [self class ] && [((MTRMockCBPeripheral *) object).identifier isEqualTo :self .identifier];
599
+ return [object class ] == [self class ] && [((MTRMockCBPeripheral *) object).identifier isEqual :self .identifier];
600
600
}
601
601
602
602
- (NSUInteger )hash
@@ -614,7 +614,7 @@ - (NSUUID *)identifier
614
614
return _details.identifier ;
615
615
}
616
616
617
- // MARK: CBPeripheral
617
+ # pragma mark - CBPeripheral
618
618
619
619
- (nullable NSString *)name
620
620
{
0 commit comments