Start using IdentityTestEnvironment in ProfileSyncServiceBundle
ProfileSyncServiceBundle owns and exposes signin-related objects for use by sync tests. These signin-related objects include ones that are deprecated by IdentityManager and no longer used directly in the production code being tested; however, up until now it has not been feasible to convert this test utility to using IdentityTestEnvironment, as doing so would have required converting the widespread usage of this utility in one go. We recently introduced an IdentityTestEnvironment usage mode wherein it can be supplied with IdentityManager's dependencies from the external client, precisely to enable incremental conversion in use cases like this. This CL exploits this usage mode to introduce IdentityTestEnvironment in ProfileSyncServiceBundle.h and provide an example of its usage to eliminate a direct usage of the deprecated classes. Once the conversion is complete, ProfileSyncServiceBundle can then be changed to *only* hold an IdentityTestEnvironment object. Bug: 886600, 886599 Change-Id: I205c3567fc0a9bcd6f7b613c00a247c302d71be5 Reviewed-on: https://chromium-review.googlesource.com/c/1273065 Commit-Queue: Colin Blundell <blundell@chromium.org> Reviewed-by:Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#599189}
Showing
Please register or sign in to comment