SigninTestUtil: During tear down, wait for AccountHolders to be removed
Without this change, there is a race condition where it's possible that an auth token gets requested from the native side (via OAuth2TokenServiceDelegateAndroid) for an account that was actually already removed, which causes an exception in FakeAccountManagerDelegate.getAccountHolder. https://crrev.com/c/1148392 uncovered this, but I believe the race condition is there independent of that CL (it's just much less likely to get triggered). Bug: 856179 Change-Id: I23bdf54aba90b1bbfd64f45963ea32d08b63c852 Reviewed-on: https://chromium-review.googlesource.com/1156688 Commit-Queue: Marc Treib <treib@chromium.org> Reviewed-by:Boris Sazonov <bsazonov@chromium.org> Cr-Commit-Position: refs/heads/master@{#579783}
Showing
Please register or sign in to comment