Improve ProfileSyncServiceTest.EarlyRequestStop
This test wants to exercise RequestStop() before the backend (i.e. SyncEngine) is initialized. It did so by calling RequestStop() on the ProfileSyncService before Initialize(), which is not legal - Initialize() must be called immediately after construction, and in particular, before any other methods on the service are called. This CL fixes it by calling Initialize() first, but setting up a FakeSyncEngine that won't immediately get initialized. Bug: 856179 Change-Id: I03a80a30e1bed67a0e829b4936811173f3ef8390 Reviewed-on: https://chromium-review.googlesource.com/1160494Reviewed-by:Mikel Astiz <mastiz@chromium.org> Commit-Queue: Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#580166}
Showing
Please register or sign in to comment