Skip to content

Commit 32e0e4a

Browse files
paulb777leotianlizhan
authored andcommitted
Add Swift API coverage tests for Auth (#9255)
1 parent fee4ff1 commit 32e0e4a

File tree

4 files changed

+468
-14
lines changed

4 files changed

+468
-14
lines changed

FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,9 @@ NS_SWIFT_NAME(Auth)
626626
@param completion Optionally; a block which is invoked when the request finishes. Invoked
627627
asynchronously on the main thread in the future.
628628
*/
629-
- (void)checkActionCode:(NSString *)code completion:(FIRCheckActionCodeCallBack)completion;
629+
- (void)checkActionCode:(NSString *)code
630+
completion:
631+
(void (^)(FIRActionCodeInfo *_Nullable info, NSError *_Nullable error))completion;
630632

631633
/** @fn verifyPasswordResetCode:completion:
632634
@brief Checks the validity of a verify password reset code.

FirebaseAuth/Tests/Sample/AuthSample.xcodeproj/project.pbxproj

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 51;
6+
objectVersion = 50;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -58,6 +58,7 @@
5858
DED400C2243E571500BF6D56 /* BYOAuthTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DED400BC243E571500BF6D56 /* BYOAuthTests.m */; };
5959
DED400C3243E571500BF6D56 /* FIRAuthE2eTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DED400BE243E571500BF6D56 /* FIRAuthE2eTests.m */; };
6060
DED400C4243E571500BF6D56 /* FIRAuthE2eTestsBase.m in Sources */ = {isa = PBXBuildFile; fileRef = DED400BF243E571500BF6D56 /* FIRAuthE2eTestsBase.m */; };
61+
DEF68E952799B9970064CC92 /* SwiftAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEF68E942799B9970064CC92 /* SwiftAPI.swift */; };
6162
/* End PBXBuildFile section */
6263

6364
/* Begin PBXContainerItemProxy section */
@@ -180,6 +181,7 @@
180181
DED400BD243E571500BF6D56 /* FIRAuthE2eTestsBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FIRAuthE2eTestsBase.h; sourceTree = "<group>"; };
181182
DED400BE243E571500BF6D56 /* FIRAuthE2eTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FIRAuthE2eTests.m; sourceTree = "<group>"; };
182183
DED400BF243E571500BF6D56 /* FIRAuthE2eTestsBase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FIRAuthE2eTestsBase.m; sourceTree = "<group>"; };
184+
DEF68E942799B9970064CC92 /* SwiftAPI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftAPI.swift; sourceTree = "<group>"; };
183185
/* End PBXFileReference section */
184186

185187
/* Begin PBXFrameworksBuildPhase section */
@@ -214,13 +216,6 @@
214216
/* End PBXFrameworksBuildPhase section */
215217

216218
/* Begin PBXGroup section */
217-
A00A0EC6CCFF06F1AC46A4F9 /* Pods */ = {
218-
isa = PBXGroup;
219-
children = (
220-
);
221-
path = Pods;
222-
sourceTree = "<group>";
223-
};
224219
DE800AEB22A2F87E00AC9A23 = {
225220
isa = PBXGroup;
226221
children = (
@@ -229,7 +224,6 @@
229224
DE800B9622A5BD1800AC9A23 /* E2eTests */,
230225
DEBEF6042450EA27005E1A8F /* SwiftApiTests */,
231226
DE800AF522A2F87E00AC9A23 /* Products */,
232-
A00A0EC6CCFF06F1AC46A4F9 /* Pods */,
233227
);
234228
sourceTree = "<group>";
235229
};
@@ -360,6 +354,7 @@
360354
DE1865B3245C92A600F8AD70 /* GoogleTests.swift */,
361355
DE1865B5245C95DA00F8AD70 /* Credentials.swift */,
362356
DE1865B7245CC6FC00F8AD70 /* FacebookTests.swift */,
357+
DEF68E942799B9970064CC92 /* SwiftAPI.swift */,
363358
);
364359
path = SwiftApiTests;
365360
sourceTree = "<group>";
@@ -589,6 +584,7 @@
589584
isa = PBXSourcesBuildPhase;
590585
buildActionMask = 2147483647;
591586
files = (
587+
DEF68E952799B9970064CC92 /* SwiftAPI.swift in Sources */,
592588
DE1865B4245C92A600F8AD70 /* GoogleTests.swift in Sources */,
593589
DE1865AE245B8A1400F8AD70 /* AnonymousTests.swift in Sources */,
594590
DE1865B8245CC6FC00F8AD70 /* FacebookTests.swift in Sources */,
@@ -744,7 +740,6 @@
744740
"${SRCROOT}/../../..",
745741
);
746742
INFOPLIST_FILE = Sample/Application.plist;
747-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
748743
LD_RUNPATH_SEARCH_PATHS = (
749744
"$(inherited)",
750745
"@executable_path/Frameworks",
@@ -769,7 +764,6 @@
769764
"${SRCROOT}/../../..",
770765
);
771766
INFOPLIST_FILE = Sample/Application.plist;
772-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
773767
LD_RUNPATH_SEARCH_PATHS = (
774768
"$(inherited)",
775769
"@executable_path/Frameworks",

0 commit comments

Comments
 (0)