Commit 9c2fafc9 authored by Boris Sazonov's avatar Boris Sazonov Committed by Commit Bot

[Signin][Android] Reset shared prefs in OAuth2TokenServiceIntegrationTest

This CL adds SigninHelper.resetSharedPrefs call to
OAuth2TokenServiceIntegrationTest.tearDown method.
OAuth2TokenServiceIntegrationTest has been causing many test failures in
different tests because of the state it has been leaving in shared
preferences.

Bug: 908542
Change-Id: I10df9d0ab1d268c7da3352ca87ae07659bfa55d2
Reviewed-on: https://chromium-review.googlesource.com/c/1368147Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Boris Sazonov <bsazonov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#614777}
parent 9e307cf8
...@@ -87,6 +87,7 @@ public class OAuth2TokenServiceIntegrationTest { ...@@ -87,6 +87,7 @@ public class OAuth2TokenServiceIntegrationTest {
mChromeSigninController.setSignedInAccountName(null); mChromeSigninController.setSignedInAccountName(null);
mOAuth2TokenService.validateAccounts(false); mOAuth2TokenService.validateAccounts(false);
}); });
SigninHelper.resetSharedPrefs();
} }
private void mapAccountNamesToIds() { private void mapAccountNamesToIds() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment