Przeglądaj źródła

Update FIRAuthTests.m (#11081)

renkelvin 3 lat temu
rodzic
commit
05d494c85e
1 zmienionych plików z 0 dodań i 18 usunięć
  1. 0 18
      FirebaseAuth/Tests/Unit/FIRAuthTests.m

+ 0 - 18
FirebaseAuth/Tests/Unit/FIRAuthTests.m

@@ -2804,15 +2804,6 @@ static const NSTimeInterval kWaitInterval = .5;
                        }];
   [self waitForExpectationsWithTimeout:kExpectationTimeout handler:nil];
   [self assertUser:[FIRAuth auth].currentUser];
-  id mockSecureTokenResponse = OCMClassMock([FIRSecureTokenResponse class]);
-  OCMStub([mockSecureTokenResponse accessToken]).andReturn(@"IDToken");
-  OCMExpect([self->_mockBackend secureToken:[OCMArg any] callback:[OCMArg any]])
-      .andCallBlock2(
-          ^(FIRSecureTokenRequest *_Nullable request, FIRSecureTokenResponseCallback callback) {
-            dispatch_async(FIRAuthGlobalWorkQueue(), ^() {
-              callback(mockSecureTokenResponse, nil);
-            });
-          });
   OCMExpect([_mockBackend revokeToken:[OCMArg any] callback:[OCMArg any]])
       .andCallBlock2(
           ^(FIRRevokeTokenRequest *_Nullable request, FIRRevokeTokenResponseCallback callback) {
@@ -2860,15 +2851,6 @@ static const NSTimeInterval kWaitInterval = .5;
                        }];
   [self waitForExpectationsWithTimeout:kExpectationTimeout handler:nil];
   [self assertUser:[FIRAuth auth].currentUser];
-  id mockSecureTokenResponse = OCMClassMock([FIRSecureTokenResponse class]);
-  OCMStub([mockSecureTokenResponse accessToken]).andReturn(@"IDToken");
-  OCMExpect([self->_mockBackend secureToken:[OCMArg any] callback:[OCMArg any]])
-      .andCallBlock2(
-          ^(FIRSecureTokenRequest *_Nullable request, FIRSecureTokenResponseCallback callback) {
-            dispatch_async(FIRAuthGlobalWorkQueue(), ^() {
-              callback(mockSecureTokenResponse, nil);
-            });
-          });
   XCTestExpectation *revokeExpectation = [self expectationWithDescription:@"revoke"];
   OCMExpect([_mockBackend revokeToken:[OCMArg any] callback:[OCMArg any]])
       .andCallBlock2(