Convert SyncUIUtilTest to use IdentityTestEnvironment
Instead of creating a TestingProfile with custom factories, create fake for the required services and pass them directly to the code that is tested. This makes the tests simpler (as they do not have to create a full TestingProfile but only need to create the necessary services). It required adding an overload of sync_ui_util::GetStatusLabels() that received the services instead of accessing them via their factories. Bug: 984487 Change-Id: Ia596fb46b9915e240bfce2ef2e4ee888c99e16c2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715297 Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Commit-Queue: Marc Treib <treib@chromium.org> Auto-Submit: Sylvain Defresne <sdefresne@chromium.org> Reviewed-by:Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#680488}
Showing
This diff is collapsed.
Please register or sign in to comment