IdentityTestEnvironment: explicitly track pending & available token requests
... Rather than relying on them to be sufficiently close to each other that there isn't much event loop activity. This is needed for upcoming port of GaiaOauthClient to Network Service (and hence mojo), which requires tests to spin the event loop in a lot more places than before to deliver fetch results, making it hard to ensure that HandleOnAccessTokenRequested and WaitForAccessTokenRequestIfNecessary get delivered in right order. Bug: 865018 Change-Id: I7acf6427be7be5b00c8e003dd687169c4b8a7577 Reviewed-on: https://chromium-review.googlesource.com/1167904Reviewed-by:Mihai Sardarescu <msarda@chromium.org> Commit-Queue: Maks Orlovich <morlovich@chromium.org> Cr-Commit-Position: refs/heads/master@{#582176}
Showing
Please register or sign in to comment