Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 committed Oct 3, 2024
1 parent ef008ff commit 4533c71
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions FirebaseAuth/Tests/Unit/ObjCAPITests.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ - (void)presentViewController:(nonnull UIViewController *)viewControllerToPresen
@end
#endif

#if TARGET_OS_IOS
@interface FederatedAuthImplementation : NSObject <FIRFederatedAuthProvider>
- (void)getCredentialWithUIDelegate:(nullable id<FIRAuthUIDelegate>)UIDelegate
completion:(nullable void (^)(FIRAuthCredential *_Nullable,
NSError *_Nullable))completion;
@end
@implementation FederatedAuthImplementation
- (void)getCredentialWithUIDelegate:(nullable id<FIRAuthUIDelegate>)UIDelegate
completion:(nullable void (^)(FIRAuthCredential *_Nullable,
NSError *_Nullable))completion {
}
@end
#endif
//#if TARGET_OS_IOS
//@interface FederatedAuthImplementation : NSObject <FIRFederatedAuthProvider>
//- (void)getCredentialWithUIDelegate:(nullable id<FIRAuthUIDelegate>)UIDelegate
// completion:(nullable void (^)(FIRAuthCredential *_Nullable,
// NSError *_Nullable))completion;
//@end
//@implementation FederatedAuthImplementation
//- (void)getCredentialWithUIDelegate:(nullable id<FIRAuthUIDelegate>)UIDelegate
// completion:(nullable void (^)(FIRAuthCredential *_Nullable,
// NSError *_Nullable))completion {
//}
//@end
//#endif

@interface ObjCAPICoverage : XCTestCase
@end
Expand Down Expand Up @@ -347,14 +347,14 @@ - (void)FIRFacebookAuthProvider_h {
__unused FIRAuthCredential *c = [FIRFacebookAuthProvider credentialWithAccessToken:@"token"];
}

#if TARGET_OS_IOS
- (void)FIRFederatedAuthProvider_h {
FederatedAuthImplementation *impl = [[FederatedAuthImplementation alloc] init];
[impl getCredentialWithUIDelegate:nil
completion:^(FIRAuthCredential *_Nullable c, NSError *_Nullable e){
}];
}
#endif
//#if TARGET_OS_IOS
//- (void)FIRFederatedAuthProvider_h {
// FederatedAuthImplementation *impl = [[FederatedAuthImplementation alloc] init];
// [impl getCredentialWithUIDelegate:nil
// completion:^(FIRAuthCredential *_Nullable c, NSError *_Nullable e){
// }];
//}
//#endif

#if !TARGET_OS_WATCH
- (void)FIRGameCenterAuthProvider_h {
Expand Down

0 comments on commit 4533c71

Please sign in to comment.