Use IdentityTestEnvironment APIs when applicable in //c/b/signin/dice_response_handler_unittest.cc
CL is a (driven-by) clean up pass on dice_response_handler_unittests.cc, where pair calls to AccountTrackerService::SeedAccountInfo and IdentityTestEnvironment::SetRefreshTokenForAccount are replaced by calls to the wrapper IdentityTestEnvironment::MakeAccountAvailable. CL also replaces from the tests the knowledge about the specific refresh token values (eg "refresh_token_for_bleh"), by checks that verify whether the IdentityManager holds a persistent error state or not. BUG=890790 Change-Id: I74215310276023a387854d840a96763545699dfe Reviewed-on: https://chromium-review.googlesource.com/c/1393303Reviewed-by:David Roger <droger@chromium.org> Reviewed-by:
Colin Blundell <blundell@chromium.org> Commit-Queue: Antonio Gomes <tonikitoo@igalia.com> Cr-Commit-Position: refs/heads/master@{#619930}
Showing
This diff is collapsed.
Please register or sign in to comment