Implement legacy methods in PrimaryAccountMutator related to signin process
Implement the following methods at the same time, so that we can also provide decent unit tests that would require of all of them to make sure functionality works as expected: * LegacyStartSigninWithRefreshTokenForPrimaryAccount() * LegacyCompletePendingPrimaryAccountSignin() * LegacyIsPrimaryAccountAuthInProgress() * LegacyPrimaryAccountForAuthInProgress() Also, PrimaryAccountMutatorTests unit tests for each of those methods as part of this CL, based on those from SigninManagerTest, including a new test for ClearPrimaryAccount (i.e. ClearPrimaryAccount_NotSignedIn) to check that it reports FALSE when there is neither a primary account nor an authentication process ongoing (now we can finally implement that). Bug: 906058, 906059, 906063, 906064 Change-Id: I2164c867f35020806225da4e69659364c3429a92 Reviewed-on: https://chromium-review.googlesource.com/c/1342559 Commit-Queue: Mario Sanchez Prada <mario@igalia.com> Reviewed-by:Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/master@{#612159}
Showing
Please register or sign in to comment