Skip to content

Commit ab452aa

Browse files
author
Stewart Miles
committed
Fixed compile error in auth sample.
1 parent e8c20f6 commit ab452aa

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

auth/testapp/src/common_main.cc

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,6 @@ extern "C" int common_main(int argc, const char* argv[]) {
367367
Future<User*> sign_in_future = auth->SignInAnonymously();
368368
WaitForSignInFuture(sign_in_future, "Auth::SignInAnonymously()",
369369
kAuthErrorNone, auth);
370-
ExpectTrue("SignInAnonymouslyLastResult matches returned Future",
371-
sign_in_future == auth->SignInAnonymouslyLastResult());
372370

373371
// Test SignOut() after signed in anonymously.
374372
if (sign_in_future.status() == ::firebase::kFutureStatusComplete) {
@@ -388,9 +386,6 @@ extern "C" int common_main(int argc, const char* argv[]) {
388386
auth->FetchProvidersForEmail(user_login.email());
389387
WaitForFuture(providers_future, "Auth::FetchProvidersForEmail()",
390388
kAuthErrorNone);
391-
ExpectTrue(
392-
"FetchProvidersForEmailLastResult matches returned Future",
393-
providers_future == auth->FetchProvidersForEmailLastResult());
394389

395390
const Auth::FetchProvidersResult* pro = providers_future.result();
396391
if (pro) {
@@ -412,9 +407,6 @@ extern "C" int common_main(int argc, const char* argv[]) {
412407
sign_in_future,
413408
"Auth::SignInWithEmailAndPassword() existing email and password",
414409
kAuthErrorNone, auth);
415-
ExpectTrue(
416-
"SignInWithEmailAndPasswordLastResult matches returned Future",
417-
sign_in_future == auth->SignInWithEmailAndPasswordLastResult());
418410

419411
// Test SignOut() after signed in with email and password.
420412
if (sign_in_future.status() == ::firebase::kFutureStatusComplete) {
@@ -455,10 +447,6 @@ extern "C" int common_main(int argc, const char* argv[]) {
455447
create_future_bad,
456448
"Auth::CreateUserWithEmailAndPassword() existing email",
457449
kAuthErrorFailure, auth);
458-
ExpectTrue(
459-
"CreateUserWithEmailAndPasswordLastResult matches returned Future",
460-
create_future_bad ==
461-
auth->CreateUserWithEmailAndPasswordLastResult());
462450
}
463451

464452
// Test Auth::SignInWithCredential() using email&password.
@@ -471,8 +459,6 @@ extern "C" int common_main(int argc, const char* argv[]) {
471459
WaitForSignInFuture(sign_in_cred_ok,
472460
"Auth::SignInWithCredential() existing email",
473461
kAuthErrorNone, auth);
474-
ExpectTrue("SignInWithCredentialLastResult matches returned Future",
475-
sign_in_cred_ok == auth->SignInWithCredentialLastResult());
476462
}
477463

478464
// Use bad Facebook credentials. Should fail.
@@ -527,9 +513,6 @@ extern "C" int common_main(int argc, const char* argv[]) {
527513
WaitForFuture(send_password_reset_ok,
528514
"Auth::SendPasswordResetEmail() existing email",
529515
kAuthErrorNone);
530-
ExpectTrue(
531-
"SendPasswordResetEmailLastResult matches returned Future",
532-
send_password_reset_ok == auth->SendPasswordResetEmailLastResult());
533516
}
534517

535518
// Use bad email. Should fail.

0 commit comments

Comments
 (0)