| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -1043,6 +1043,29 @@ TEST_F(FirebaseAuthTest, TestWithCustomEmailAndPassword) { | |
| EXPECT_EQ(auth_->current_user().email(), kCustomTestEmail); | ||
| } | ||
|
|
||
| TEST_F(FirebaseAuthTest, TestUseUserAccessGroupDoesNotCrash) { | ||
| firebase::auth::AuthError error = | ||
| auth_->UseUserAccessGroup("com.google.firebase.test.accessgroup"); | ||
| #if TARGET_OS_IPHONE | ||
| // On iOS, this might return an error if keychain sharing isn't set up | ||
| // for the test app, but it shouldn't crash. We accept kAuthErrorNone or | ||
| // kAuthErrorKeychainError. | ||
| EXPECT_THAT(error, AnyOf(firebase::auth::kAuthErrorNone, | ||
| firebase::auth::kAuthErrorKeychainError)); | ||
| #else | ||
| // On other platforms, it should be a no-op and return kAuthErrorNone. | ||
| EXPECT_EQ(error, firebase::auth::kAuthErrorNone); | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityWhen checking stub return values, only check that on Android and Desktop - on iOS, it's possible that this call might return an error (since the integration test might not be set up for keychain sharing) but the test should still pass in that case.
Sorry, something went wrong.
All reactions
|
||
| #endif | ||
|
|
||
| error = auth_->UseUserAccessGroup(nullptr); | ||
| #if TARGET_OS_IPHONE | ||
| EXPECT_THAT(error, AnyOf(firebase::auth::kAuthErrorNone, | ||
| firebase::auth::kAuthErrorKeychainError)); | ||
| #else | ||
| EXPECT_EQ(error, firebase::auth::kAuthErrorNone); | ||
| #endif | ||
| } | ||
|
|
||
| TEST_F(FirebaseAuthTest, TestAuthPersistenceWithAnonymousSignin) { | ||
| // Automated test is disabled on linux due to the need to unlock the keystore. | ||
| SKIP_TEST_ON_LINUX; | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityNo need to check platform since their are stubs. And no need for such verbose debug messages. Just make the calls and return.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.