File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed
Crashlytics/UnitTests/Mocks Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 1616
1717#import < XCTest/XCTest.h>
1818
19- // Notification posted when an item is removed via `removeItemAtPath`.
20- extern NSNotificationName const FIRCLSMockFileManagerDidRemoveItemNotification;
21-
2219@interface FIRCLSMockFileManager : FIRCLSFileManager
2320
24- // Incremented when a remove happens with removeItemAtPath
25- @property (nonatomic ) NSInteger removeCount;
26-
2721// Number of calls to removeItemAtPath are expected for the unit test
2822@property (nonatomic ) NSInteger expectedRemoveCount;
2923
24+ // Incremented when a remove happens with removeItemAtPath
25+ @property (nonatomic ) NSInteger removeCount;
26+
3027// Will be fulfilled when the expected number of removes have happened
3128// using removeItemAtPath
3229//
Original file line number Diff line number Diff line change 1414
1515#import " Crashlytics/UnitTests/Mocks/FIRCLSMockFileManager.h"
1616
17- NSNotificationName const FIRCLSMockFileManagerDidRemoveItemNotification =
18- @" FIRCLSMockFileManagerDidRemoveItemNotification" ;
19-
2017@interface FIRCLSMockFileManager ()
2118
2219@property (nonatomic ) NSMutableDictionary <NSString *, NSData *> *fileSystemDict;
@@ -47,11 +44,6 @@ - (BOOL)removeItemAtPath:(NSString *)path {
4744 [self .removeExpectation fulfill ];
4845 }
4946 }
50-
51- [[NSNotificationCenter defaultCenter ]
52- postNotificationName: FIRCLSMockFileManagerDidRemoveItemNotification
53- object: self ];
54-
5547 return YES ;
5648}
5749
You can’t perform that action at this time.
0 commit comments