File tree Expand file tree Collapse file tree
RNSentryCocoaTester/RNSentryCocoaTesterTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#import < Foundation/Foundation.h>
22#import < RNSentry/RNSentry.h>
3- @import Sentry;
43
4+ @class SentryOptions;
5+
6+ #if CROSS_PLATFORM_TEST
7+ @interface
8+ SentrySDKInternal: NSObject
9+ #else
510@interface
6- SentrySDK (PrivateTests)
7- - (nullable SentryOptions *)options;
11+ SentrySDK (Private)
12+ #endif
13+ + (nullable SentryOptions *)options;
814@end
Original file line number Diff line number Diff line change 44#import < Sentry/SentryDebugImageProvider+HybridSDKs.h>
55#import < UIKit/UIKit.h>
66#import < XCTest/XCTest.h>
7+ @import Sentry;
78
89@interface RNSentryInitNativeSdkTests : XCTestCase
910
@@ -464,8 +465,13 @@ - (void)prepareNativeFrameMocksWithLocalSymbolication:(BOOL)debug
464465 SentryOptions *sentryOptions = [[SentryOptions alloc ] init ];
465466 sentryOptions.debug = debug; // no local symbolication
466467
467- id sentrySDKMock = OCMClassMock ([SentrySDK class ]);
468- OCMStub ([(SentrySDK *)sentrySDKMock options ]).andReturn (sentryOptions);
468+ #if CROSS_PLATFORM_TEST
469+ id sentrySDKMock = OCMClassMock ([SentrySDKInternal class ]);
470+ OCMStub ([(Class ) sentrySDKMock options ]).andReturn (sentryOptions);
471+ #else
472+ id sentrySDKMock = OCMClassMock ([SentrySDK class ]);
473+ OCMStub ([(Class ) sentrySDKMock options ]).andReturn (sentryOptions);
474+ #endif
469475
470476 id sentryDependencyContainerMock = OCMClassMock ([SentryDependencyContainer class ]);
471477 OCMStub (ClassMethod ([sentryDependencyContainerMock sharedInstance ]))
Original file line number Diff line number Diff line change 99
1010#import < Sentry/Sentry.h>
1111#import < Sentry/SentryDebugImageProvider.h>
12- #import < Sentry/SentryOptions.h>
1312
1413typedef int (*SymbolicateCallbackType)(const void *, Dl_info *);
1514
15+ @class SentryOptions;
16+
1617#if CROSS_PLATFORM_TEST
1718@interface SentrySDKInternal : NSObject
1819#else
You can’t perform that action at this time.
0 commit comments