|
26 | 26 | // Test module imports |
27 | 27 | @import GoogleSignIn; |
28 | 28 |
|
| 29 | +#import "GoogleSignIn/Sources/GIDAuthorizationFlowProcessor/API/GIDAuthorizationFlowProcessor.h" |
29 | 30 | #import "GoogleSignIn/Sources/GIDAuthorizationFlowProcessor/Implementations/Fakes/GIDFakeAuthorizationFlowProcessor.h" |
30 | 31 | #import "GoogleSignIn/Sources/GIDEMMSupport.h" |
31 | 32 | #import "GoogleSignIn/Sources/GIDGoogleUser_Private.h" |
@@ -192,7 +193,7 @@ @interface GIDSignInTest : XCTestCase { |
192 | 193 | // Fake for `GIDHTTPFetcher`. |
193 | 194 | GIDFakeHTTPFetcher *_httpFetcher; |
194 | 195 |
|
195 | | - // Fake for `GIDAuthorizationFlowProcessor` |
| 196 | + // Fake for `GIDAuthorizationFlowProcessor`. |
196 | 197 | GIDFakeAuthorizationFlowProcessor *_authorizationFlowProcessor; |
197 | 198 |
|
198 | 199 | // Fake for `GIDProfileDataFetcher`. |
@@ -281,14 +282,6 @@ - (void)setUp { |
281 | 282 | OCMStub([_authorization initWithAuthState:OCMOCK_ANY]).andReturn(_authorization); |
282 | 283 | _user = OCMStrictClassMock([GIDGoogleUser class]); |
283 | 284 | _oidAuthorizationService = OCMStrictClassMock([OIDAuthorizationService class]); |
284 | | -// OCMStub([_oidAuthorizationService |
285 | | -// presentAuthorizationRequest:OCMOCK_ANY |
286 | | -//#if TARGET_OS_IOS || TARGET_OS_MACCATALYST |
287 | | -// presentingViewController:SAVE_TO_ARG_BLOCK(self->_savedPresentingViewController) |
288 | | -//#elif TARGET_OS_OSX |
289 | | -// presentingWindow:SAVE_TO_ARG_BLOCK(self->_savedPresentingWindow) |
290 | | -//#endif // TARGET_OS_IOS || TARGET_OS_MACCATALYST |
291 | | -// callback:COPY_TO_ARG_BLOCK(self->_savedAuthorizationCallback)]); |
292 | 285 | OCMStub([self->_oidAuthorizationService |
293 | 286 | performTokenRequest:SAVE_TO_ARG_BLOCK(self->_savedTokenRequest) |
294 | 287 | callback:COPY_TO_ARG_BLOCK(self->_savedTokenCallback)]); |
@@ -1054,9 +1047,9 @@ - (void)OAuthLoginWithAddScopesFlow:(BOOL)addScopesFlow |
1054 | 1047 | // Set the response for `GIDProfileDataFetcher`. |
1055 | 1048 | GIDProfileDataFetcherTestBlock profileDataFetcherTestBlock = |
1056 | 1049 | ^(GIDProfileDataFetcherFakeResponseProvider responseProvider) { |
1057 | | - GIDProfileData *profileData = [GIDProfileData testInstance]; |
1058 | | - responseProvider(profileData, nil); |
1059 | | - }; |
| 1050 | + GIDProfileData *profileData = [GIDProfileData testInstance]; |
| 1051 | + responseProvider(profileData, nil); |
| 1052 | + }; |
1060 | 1053 |
|
1061 | 1054 | _profileDataFetcher.testBlock = profileDataFetcherTestBlock; |
1062 | 1055 |
|
|
0 commit comments