@@ -1002,9 +1002,9 @@ - (void)testSignInWithEmailCredentialSuccess {
1002
1002
XCTAssertEqualObjects (request.password , kFakePassword );
1003
1003
XCTAssertTrue (request.returnSecureToken );
1004
1004
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 );
1008
1008
});
1009
1009
});
1010
1010
[self expectGetAccountInfo ];
@@ -1171,11 +1171,11 @@ - (void)testSignInWithGoogleAccountExistsError {
1171
1171
XCTAssertEqualObjects (request.providerAccessToken , kGoogleAccessToken );
1172
1172
XCTAssertTrue (request.returnSecureToken );
1173
1173
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 );
1179
1179
});
1180
1180
});
1181
1181
XCTestExpectation *expectation = [self expectationWithDescription: @" callback" ];
@@ -1208,13 +1208,13 @@ - (void)testSignInWithGoogleCredentialSuccess {
1208
1208
XCTAssertEqualObjects (request.providerAccessToken , kGoogleAccessToken );
1209
1209
XCTAssertTrue (request.returnSecureToken );
1210
1210
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 );
1218
1218
});
1219
1219
});
1220
1220
[self expectGetAccountInfoGoogle ];
@@ -1249,13 +1249,13 @@ - (void)testSignInWithOAuthCredentialSuccess {
1249
1249
XCTAssertEqualObjects (request.sessionID , kOAuthSessionID );
1250
1250
XCTAssertTrue (request.returnSecureToken );
1251
1251
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 );
1259
1259
});
1260
1260
});
1261
1261
[self expectGetAccountInfoGoogle ];
@@ -1310,15 +1310,15 @@ - (void)testSignInWithCredentialSuccess {
1310
1310
XCTAssertEqualObjects (request.providerAccessToken , kGoogleAccessToken );
1311
1311
XCTAssertTrue (request.returnSecureToken );
1312
1312
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 );
1322
1322
});
1323
1323
});
1324
1324
[self expectGetAccountInfoGoogle ];
@@ -1492,9 +1492,9 @@ - (void)testSignInWithCustomTokenSuccess {
1492
1492
XCTAssertEqualObjects (request.token , kCustomToken );
1493
1493
XCTAssertTrue (request.returnSecureToken );
1494
1494
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 );
1498
1498
});
1499
1499
});
1500
1500
[self expectGetAccountInfo ];
@@ -1546,9 +1546,9 @@ - (void)testSignInAndRetrieveDataWithCustomTokenSuccess {
1546
1546
XCTAssertEqualObjects (request.token , kCustomToken );
1547
1547
XCTAssertTrue (request.returnSecureToken );
1548
1548
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 );
1552
1552
});
1553
1553
});
1554
1554
[self expectGetAccountInfo ];
@@ -2627,12 +2627,12 @@ - (void)waitForSignInWithAccessToken:(NSString *)accessToken
2627
2627
.andCallBlock2 (^(FIRVerifyPasswordRequest *_Nullable request,
2628
2628
FIRVerifyPasswordResponseCallback callback) {
2629
2629
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 ])
2633
2633
.andReturn ([NSDate dateWithTimeIntervalSinceNow: kAccessTokenTimeToLive ]);
2634
- OCMStub ([mockVeriyPasswordResponse refreshToken ]).andReturn (kRefreshToken );
2635
- callback (mockVeriyPasswordResponse , nil );
2634
+ OCMStub ([mockVerifyPasswordResponse refreshToken ]).andReturn (kRefreshToken );
2635
+ callback (mockVerifyPasswordResponse , nil );
2636
2636
});
2637
2637
});
2638
2638
[self expectGetAccountInfoWithAccessToken: accessToken];
0 commit comments