Commit c6123f52 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

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: default avatarDavid Roger <droger@chromium.org>
Reviewed-by: default avatarColin Blundell <blundell@chromium.org>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#619930}
parent 6d16ec71
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