Make SubscriptionManager test work with async token fetches
In order to move the behavior of PrimaryAccountAccessTokenFetcher closer to what it will be once it is interacting with the Identity Service, I will shortly be changing this class to fetch access tokens strictly asynchronously (by posting a task to the current message loop to call into ProfileOAuth2TokenService). In particular, this change is necessary to preserve the expected ordering with other soon-to-be-introduced IdentityManager APIs that will interact asynchronously with ProfileOAuth2TokenService (e.g., to invalidate access tokens). The SubscriptionManager unittests currently assume that AccessTokenFetcher interacts synchronously with PO2TS. This CL relaxes these assumptions so that the tests will continue to work as-is when the above change is made. Bug: 654990 Change-Id: Ib0a863c0b00133379819319129e1a49a46647d88 Reviewed-on: https://chromium-review.googlesource.com/844575 Commit-Queue: Colin Blundell <blundell@chromium.org> Reviewed-by:Jan Krcal <jkrcal@chromium.org> Cr-Commit-Position: refs/heads/master@{#526664}
Showing
Please register or sign in to comment