FakeProfileOAuth2TokenService: fix auto_post_fetch_response vs manual response
FakeProfileOAuth2TokenService has two modes of operation: auto_post_fetch_response mode, which means it'll automatically post successful responses to all access token requests to the message loop, or regular (manual) mode, where the user calls IssueToken*/IssueError* etc. This CL adds DCHECKs to make sure the two modes are not mixed. It also fixes some ProfileSyncService tests which did just that. Bug: 825190 Change-Id: Ibed800c7defa09fb8efbf8cb8a56608731aaf70e Reviewed-on: https://chromium-review.googlesource.com/995434Reviewed-by:Mihai Sardarescu <msarda@chromium.org> Commit-Queue: Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#548067}
Showing
Please register or sign in to comment