@@ -367,8 +367,6 @@ extern "C" int common_main(int argc, const char* argv[]) {
367
367
Future<User*> sign_in_future = auth->SignInAnonymously ();
368
368
WaitForSignInFuture (sign_in_future, " Auth::SignInAnonymously()" ,
369
369
kAuthErrorNone , auth);
370
- ExpectTrue (" SignInAnonymouslyLastResult matches returned Future" ,
371
- sign_in_future == auth->SignInAnonymouslyLastResult ());
372
370
373
371
// Test SignOut() after signed in anonymously.
374
372
if (sign_in_future.status () == ::firebase::kFutureStatusComplete ) {
@@ -388,9 +386,6 @@ extern "C" int common_main(int argc, const char* argv[]) {
388
386
auth->FetchProvidersForEmail (user_login.email ());
389
387
WaitForFuture (providers_future, " Auth::FetchProvidersForEmail()" ,
390
388
kAuthErrorNone );
391
- ExpectTrue (
392
- " FetchProvidersForEmailLastResult matches returned Future" ,
393
- providers_future == auth->FetchProvidersForEmailLastResult ());
394
389
395
390
const Auth::FetchProvidersResult* pro = providers_future.result ();
396
391
if (pro) {
@@ -412,9 +407,6 @@ extern "C" int common_main(int argc, const char* argv[]) {
412
407
sign_in_future,
413
408
" Auth::SignInWithEmailAndPassword() existing email and password" ,
414
409
kAuthErrorNone , auth);
415
- ExpectTrue (
416
- " SignInWithEmailAndPasswordLastResult matches returned Future" ,
417
- sign_in_future == auth->SignInWithEmailAndPasswordLastResult ());
418
410
419
411
// Test SignOut() after signed in with email and password.
420
412
if (sign_in_future.status () == ::firebase::kFutureStatusComplete ) {
@@ -455,10 +447,6 @@ extern "C" int common_main(int argc, const char* argv[]) {
455
447
create_future_bad,
456
448
" Auth::CreateUserWithEmailAndPassword() existing email" ,
457
449
kAuthErrorFailure , auth);
458
- ExpectTrue (
459
- " CreateUserWithEmailAndPasswordLastResult matches returned Future" ,
460
- create_future_bad ==
461
- auth->CreateUserWithEmailAndPasswordLastResult ());
462
450
}
463
451
464
452
// Test Auth::SignInWithCredential() using email&password.
@@ -471,8 +459,6 @@ extern "C" int common_main(int argc, const char* argv[]) {
471
459
WaitForSignInFuture (sign_in_cred_ok,
472
460
" Auth::SignInWithCredential() existing email" ,
473
461
kAuthErrorNone , auth);
474
- ExpectTrue (" SignInWithCredentialLastResult matches returned Future" ,
475
- sign_in_cred_ok == auth->SignInWithCredentialLastResult ());
476
462
}
477
463
478
464
// Use bad Facebook credentials. Should fail.
@@ -527,9 +513,6 @@ extern "C" int common_main(int argc, const char* argv[]) {
527
513
WaitForFuture (send_password_reset_ok,
528
514
" Auth::SendPasswordResetEmail() existing email" ,
529
515
kAuthErrorNone );
530
- ExpectTrue (
531
- " SendPasswordResetEmailLastResult matches returned Future" ,
532
- send_password_reset_ok == auth->SendPasswordResetEmailLastResult ());
533
516
}
534
517
535
518
// Use bad email. Should fail.
0 commit comments