Refactor the DeferredCookieTaskTest to not use NewMockPersistentCookieStore, and remove it.
The gMock use got in the way of making something that ought to be a OnceCallback such since it has some limitations with respect to move-only types. Also, the tests weren't usefully distinguishing on whether the code was waiting for Load or LoadForKey to complete first; they do now. Plus, this group of test had its own ways of doing things totally different from everything else; now things standardize on the simpler MockPersistentCookieStore. Change-Id: I933386d311b6cce3fc230944e206b94cd1c0fff2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1529074Reviewed-by:Eric Orth <ericorth@chromium.org> Commit-Queue: Maks Orlovich <morlovich@chromium.org> Cr-Commit-Position: refs/heads/master@{#642316}
Showing
This diff is collapsed.
Please register or sign in to comment