Skip to content

Commit

Permalink
Fix GIDSignInTest to stub correct token request method
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmathias committed Sep 14, 2024
1 parent 3a58e5e commit 030294e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions GoogleSignIn/Tests/Unit/GIDSignInTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ - (void)setUp {
#elif TARGET_OS_OSX
_presentingWindow = OCMStrictClassMock([NSWindow class]);
#endif // TARGET_OS_IOS || TARGET_OS_MACCATALYST
_authState = OCMStrictClassMock([OIDAuthState class]);
_authState = OCMClassMock([OIDAuthState class]);
OCMStub([_authState alloc]).andReturn(_authState);
OCMStub([_authState initWithAuthorizationResponse:OCMOCK_ANY]).andReturn(_authState);
_tokenResponse = OCMStrictClassMock([OIDTokenResponse class]);
Expand Down Expand Up @@ -327,7 +327,8 @@ - (void)setUp {
callback:COPY_TO_ARG_BLOCK(self->_savedAuthorizationCallback)]);
OCMStub([self->_oidAuthorizationService
performTokenRequest:SAVE_TO_ARG_BLOCK(self->_savedTokenRequest)
callback:COPY_TO_ARG_BLOCK(self->_savedTokenCallback)]);
originalAuthorizationResponse:[OCMArg any]
callback:COPY_TO_ARG_BLOCK(self->_savedTokenCallback)]);

// Fakes
_fetcherService = [[GIDFakeFetcherService alloc] init];
Expand Down

0 comments on commit 030294e

Please sign in to comment.