File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
FirebasePerformance/Tests/Unit/Timer Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 19
19
#import " FirebasePerformance/Sources/Public/FirebasePerformance/FIRPerformance.h"
20
20
#import " FirebasePerformance/Sources/Timer/FPRCounterList.h"
21
21
22
- // This test requires the UNSWIZZLE_AVAILABLE preprocessor macro to be defined in order to complete
23
- // successfully. See FPRSelectorInstrumentor.m for more details.
24
- #ifdef UNSWIZZLE_AVAILABLE
25
-
26
22
@interface FPRCounterListTest : XCTestCase
27
23
28
24
@end
@@ -33,14 +29,18 @@ + (void)setUp {
33
29
[super setUp ];
34
30
FIRPerformance *performance = [FIRPerformance sharedInstance ];
35
31
[performance setDataCollectionEnabled: YES ];
32
+ #ifdef UNSWIZZLE_AVAILABLE
36
33
[[FPRClient sharedInstance ] disableInstrumentation ];
34
+ #endif // UNSWIZZLE_AVAILABLE
37
35
}
38
36
39
37
+ (void )tearDown {
40
38
[super tearDown ];
41
39
FIRPerformance *performance = [FIRPerformance sharedInstance ];
42
40
[performance setDataCollectionEnabled: NO ];
41
+ #ifdef UNSWIZZLE_AVAILABLE
43
42
[[FPRClient sharedInstance ] disableInstrumentation ];
43
+ #endif // UNSWIZZLE_AVAILABLE
44
44
}
45
45
46
46
/* * Validates counterlist object creation. */
@@ -166,5 +166,3 @@ - (void)testCounterInitializeWithNegativeValue {
166
166
}
167
167
168
168
@end
169
-
170
- #endif // UNSWIZZLE_AVAILABLE
You can’t perform that action at this time.
0 commit comments