Move UpdateClearsCache from PO2TStest to O2ATMtest
This CL is a part of moving access token management to OAuth2AccessTokenManager. It is specifically a step toward folding O2TS into PO2TS now that O2TS is only one subclass of PO2TS. It removes ClearCache from PO2TS since it's only used by PO2TS and it could call ClearCache through |token_manager_| instead of having a helper method and it moves UpdateClearsCache from ProfileOAuth2TokenServiceTest to OAuth2AccessTokenManagerTest. It removes GetTokenCacheCountForTesting from PO2TS because UpdateClearsCache which needs a cache size is moved to OAuth2AccessTokenManagerTest and it gets the size from |token_manager_| directly. The test name, 'UpdateClearsCache', is also renamed to 'ClearCache' in OAuth2AccessTokenManagerTest. Bug: 967598 Change-Id: Icf700cd3709a3749df13e556bd6ca9107d615900 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1719112 Commit-Queue: Julie Jeongeun Kim <jkim@igalia.com> Reviewed-by:Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/master@{#682131}
Showing
Please register or sign in to comment