@@ -1002,9 +1002,9 @@ - (void)testSignInWithEmailCredentialSuccess {
10021002 XCTAssertEqualObjects (request.password , kFakePassword );
10031003 XCTAssertTrue (request.returnSecureToken );
10041004 dispatch_async (FIRAuthGlobalWorkQueue (), ^() {
1005- id mockVeriyPasswordResponse = OCMClassMock ([FIRVerifyPasswordResponse class ]);
1006- [self stubTokensWithMockResponse: mockVeriyPasswordResponse ];
1007- callback (mockVeriyPasswordResponse , nil );
1005+ id mockVerifyPasswordResponse = OCMClassMock ([FIRVerifyPasswordResponse class ]);
1006+ [self stubTokensWithMockResponse: mockVerifyPasswordResponse ];
1007+ callback (mockVerifyPasswordResponse , nil );
10081008 });
10091009 });
10101010 [self expectGetAccountInfo ];
@@ -1171,11 +1171,11 @@ - (void)testSignInWithGoogleAccountExistsError {
11711171 XCTAssertEqualObjects (request.providerAccessToken , kGoogleAccessToken );
11721172 XCTAssertTrue (request.returnSecureToken );
11731173 dispatch_async (FIRAuthGlobalWorkQueue (), ^() {
1174- id mockVeriyAssertionResponse = OCMClassMock ([FIRVerifyAssertionResponse class ]);
1175- OCMStub ([mockVeriyAssertionResponse needConfirmation ]).andReturn (YES );
1176- OCMStub ([mockVeriyAssertionResponse email ]).andReturn (kEmail );
1177- [self stubTokensWithMockResponse: mockVeriyAssertionResponse ];
1178- callback (mockVeriyAssertionResponse , nil );
1174+ id mockVerifyAssertionResponse = OCMClassMock ([FIRVerifyAssertionResponse class ]);
1175+ OCMStub ([mockVerifyAssertionResponse needConfirmation ]).andReturn (YES );
1176+ OCMStub ([mockVerifyAssertionResponse email ]).andReturn (kEmail );
1177+ [self stubTokensWithMockResponse: mockVerifyAssertionResponse ];
1178+ callback (mockVerifyAssertionResponse , nil );
11791179 });
11801180 });
11811181 XCTestExpectation *expectation = [self expectationWithDescription: @" callback" ];
@@ -1208,13 +1208,13 @@ - (void)testSignInWithGoogleCredentialSuccess {
12081208 XCTAssertEqualObjects (request.providerAccessToken , kGoogleAccessToken );
12091209 XCTAssertTrue (request.returnSecureToken );
12101210 dispatch_async (FIRAuthGlobalWorkQueue (), ^() {
1211- id mockVeriyAssertionResponse = OCMClassMock ([FIRVerifyAssertionResponse class ]);
1212- OCMStub ([mockVeriyAssertionResponse federatedID ]).andReturn (kGoogleID );
1213- OCMStub ([mockVeriyAssertionResponse providerID ]).andReturn (FIRGoogleAuthProviderID);
1214- OCMStub ([mockVeriyAssertionResponse localID ]).andReturn (kLocalID );
1215- OCMStub ([mockVeriyAssertionResponse displayName ]).andReturn (kGoogleDisplayName );
1216- [self stubTokensWithMockResponse: mockVeriyAssertionResponse ];
1217- callback (mockVeriyAssertionResponse , nil );
1211+ id mockVerifyAssertionResponse = OCMClassMock ([FIRVerifyAssertionResponse class ]);
1212+ OCMStub ([mockVerifyAssertionResponse federatedID ]).andReturn (kGoogleID );
1213+ OCMStub ([mockVerifyAssertionResponse providerID ]).andReturn (FIRGoogleAuthProviderID);
1214+ OCMStub ([mockVerifyAssertionResponse localID ]).andReturn (kLocalID );
1215+ OCMStub ([mockVerifyAssertionResponse displayName ]).andReturn (kGoogleDisplayName );
1216+ [self stubTokensWithMockResponse: mockVerifyAssertionResponse ];
1217+ callback (mockVerifyAssertionResponse , nil );
12181218 });
12191219 });
12201220 [self expectGetAccountInfoGoogle ];
@@ -1249,13 +1249,13 @@ - (void)testSignInWithOAuthCredentialSuccess {
12491249 XCTAssertEqualObjects (request.sessionID , kOAuthSessionID );
12501250 XCTAssertTrue (request.returnSecureToken );
12511251 dispatch_async (FIRAuthGlobalWorkQueue (), ^() {
1252- id mockVeriyAssertionResponse = OCMClassMock ([FIRVerifyAssertionResponse class ]);
1253- OCMStub ([mockVeriyAssertionResponse federatedID ]).andReturn (kGoogleID );
1254- OCMStub ([mockVeriyAssertionResponse providerID ]).andReturn (FIRGoogleAuthProviderID);
1255- OCMStub ([mockVeriyAssertionResponse localID ]).andReturn (kLocalID );
1256- OCMStub ([mockVeriyAssertionResponse displayName ]).andReturn (kGoogleDisplayName );
1257- [self stubTokensWithMockResponse: mockVeriyAssertionResponse ];
1258- callback (mockVeriyAssertionResponse , nil );
1252+ id mockVerifyAssertionResponse = OCMClassMock ([FIRVerifyAssertionResponse class ]);
1253+ OCMStub ([mockVerifyAssertionResponse federatedID ]).andReturn (kGoogleID );
1254+ OCMStub ([mockVerifyAssertionResponse providerID ]).andReturn (FIRGoogleAuthProviderID);
1255+ OCMStub ([mockVerifyAssertionResponse localID ]).andReturn (kLocalID );
1256+ OCMStub ([mockVerifyAssertionResponse displayName ]).andReturn (kGoogleDisplayName );
1257+ [self stubTokensWithMockResponse: mockVerifyAssertionResponse ];
1258+ callback (mockVerifyAssertionResponse , nil );
12591259 });
12601260 });
12611261 [self expectGetAccountInfoGoogle ];
@@ -1310,15 +1310,15 @@ - (void)testSignInWithCredentialSuccess {
13101310 XCTAssertEqualObjects (request.providerAccessToken , kGoogleAccessToken );
13111311 XCTAssertTrue (request.returnSecureToken );
13121312 dispatch_async (FIRAuthGlobalWorkQueue (), ^() {
1313- id mockVeriyAssertionResponse = OCMClassMock ([FIRVerifyAssertionResponse class ]);
1314- OCMStub ([mockVeriyAssertionResponse federatedID ]).andReturn (kGoogleID );
1315- OCMStub ([mockVeriyAssertionResponse providerID ]).andReturn (FIRGoogleAuthProviderID);
1316- OCMStub ([mockVeriyAssertionResponse localID ]).andReturn (kLocalID );
1317- OCMStub ([mockVeriyAssertionResponse displayName ]).andReturn (kGoogleDisplayName );
1318- OCMStub ([mockVeriyAssertionResponse profile ]).andReturn ([[self class ] googleProfile ]);
1319- OCMStub ([mockVeriyAssertionResponse username ]).andReturn (kDisplayName );
1320- [self stubTokensWithMockResponse: mockVeriyAssertionResponse ];
1321- callback (mockVeriyAssertionResponse , nil );
1313+ id mockVerifyAssertionResponse = OCMClassMock ([FIRVerifyAssertionResponse class ]);
1314+ OCMStub ([mockVerifyAssertionResponse federatedID ]).andReturn (kGoogleID );
1315+ OCMStub ([mockVerifyAssertionResponse providerID ]).andReturn (FIRGoogleAuthProviderID);
1316+ OCMStub ([mockVerifyAssertionResponse localID ]).andReturn (kLocalID );
1317+ OCMStub ([mockVerifyAssertionResponse displayName ]).andReturn (kGoogleDisplayName );
1318+ OCMStub ([mockVerifyAssertionResponse profile ]).andReturn ([[self class ] googleProfile ]);
1319+ OCMStub ([mockVerifyAssertionResponse username ]).andReturn (kDisplayName );
1320+ [self stubTokensWithMockResponse: mockVerifyAssertionResponse ];
1321+ callback (mockVerifyAssertionResponse , nil );
13221322 });
13231323 });
13241324 [self expectGetAccountInfoGoogle ];
@@ -1492,9 +1492,9 @@ - (void)testSignInWithCustomTokenSuccess {
14921492 XCTAssertEqualObjects (request.token , kCustomToken );
14931493 XCTAssertTrue (request.returnSecureToken );
14941494 dispatch_async (FIRAuthGlobalWorkQueue (), ^() {
1495- id mockVeriyCustomTokenResponse = OCMClassMock ([FIRVerifyCustomTokenResponse class ]);
1496- [self stubTokensWithMockResponse: mockVeriyCustomTokenResponse ];
1497- callback (mockVeriyCustomTokenResponse , nil );
1495+ id mockVerifyCustomTokenResponse = OCMClassMock ([FIRVerifyCustomTokenResponse class ]);
1496+ [self stubTokensWithMockResponse: mockVerifyCustomTokenResponse ];
1497+ callback (mockVerifyCustomTokenResponse , nil );
14981498 });
14991499 });
15001500 [self expectGetAccountInfo ];
@@ -1546,9 +1546,9 @@ - (void)testSignInAndRetrieveDataWithCustomTokenSuccess {
15461546 XCTAssertEqualObjects (request.token , kCustomToken );
15471547 XCTAssertTrue (request.returnSecureToken );
15481548 dispatch_async (FIRAuthGlobalWorkQueue (), ^() {
1549- id mockVeriyCustomTokenResponse = OCMClassMock ([FIRVerifyCustomTokenResponse class ]);
1550- [self stubTokensWithMockResponse: mockVeriyCustomTokenResponse ];
1551- callback (mockVeriyCustomTokenResponse , nil );
1549+ id mockVerifyCustomTokenResponse = OCMClassMock ([FIRVerifyCustomTokenResponse class ]);
1550+ [self stubTokensWithMockResponse: mockVerifyCustomTokenResponse ];
1551+ callback (mockVerifyCustomTokenResponse , nil );
15521552 });
15531553 });
15541554 [self expectGetAccountInfo ];
@@ -2627,12 +2627,12 @@ - (void)waitForSignInWithAccessToken:(NSString *)accessToken
26272627 .andCallBlock2 (^(FIRVerifyPasswordRequest *_Nullable request,
26282628 FIRVerifyPasswordResponseCallback callback) {
26292629 dispatch_async (FIRAuthGlobalWorkQueue (), ^() {
2630- id mockVeriyPasswordResponse = OCMClassMock ([FIRVerifyPasswordResponse class ]);
2631- OCMStub ([mockVeriyPasswordResponse IDToken ]).andReturn (accessToken);
2632- OCMStub ([mockVeriyPasswordResponse approximateExpirationDate ])
2630+ id mockVerifyPasswordResponse = OCMClassMock ([FIRVerifyPasswordResponse class ]);
2631+ OCMStub ([mockVerifyPasswordResponse IDToken ]).andReturn (accessToken);
2632+ OCMStub ([mockVerifyPasswordResponse approximateExpirationDate ])
26332633 .andReturn ([NSDate dateWithTimeIntervalSinceNow: kAccessTokenTimeToLive ]);
2634- OCMStub ([mockVeriyPasswordResponse refreshToken ]).andReturn (kRefreshToken );
2635- callback (mockVeriyPasswordResponse , nil );
2634+ OCMStub ([mockVerifyPasswordResponse refreshToken ]).andReturn (kRefreshToken );
2635+ callback (mockVerifyPasswordResponse , nil );
26362636 });
26372637 });
26382638 [self expectGetAccountInfoWithAccessToken: accessToken];
0 commit comments