Skip to content

Commit 3923bff

Browse files
committed
Try removing unswizzling when UNSWIZZLE_AVAILABLE is false
1 parent d8ec45a commit 3923bff

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

FirebasePerformance/Tests/Unit/Timer/FPRCounterListTest.m

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
#import "FirebasePerformance/Sources/Public/FirebasePerformance/FIRPerformance.h"
2020
#import "FirebasePerformance/Sources/Timer/FPRCounterList.h"
2121

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-
2622
@interface FPRCounterListTest : XCTestCase
2723

2824
@end
@@ -33,14 +29,18 @@ + (void)setUp {
3329
[super setUp];
3430
FIRPerformance *performance = [FIRPerformance sharedInstance];
3531
[performance setDataCollectionEnabled:YES];
32+
#ifdef UNSWIZZLE_AVAILABLE
3633
[[FPRClient sharedInstance] disableInstrumentation];
34+
#endif // UNSWIZZLE_AVAILABLE
3735
}
3836

3937
+ (void)tearDown {
4038
[super tearDown];
4139
FIRPerformance *performance = [FIRPerformance sharedInstance];
4240
[performance setDataCollectionEnabled:NO];
41+
#ifdef UNSWIZZLE_AVAILABLE
4342
[[FPRClient sharedInstance] disableInstrumentation];
43+
#endif // UNSWIZZLE_AVAILABLE
4444
}
4545

4646
/** Validates counterlist object creation. */
@@ -166,5 +166,3 @@ - (void)testCounterInitializeWithNegativeValue {
166166
}
167167

168168
@end
169-
170-
#endif // UNSWIZZLE_AVAILABLE

0 commit comments

Comments
 (0)