Fix flaky HintsFetcherTimerRetry test by allowing multiple fetch states
Given that we do not recreate a new batch update hints fetcher each time we fetch under that context, we need to allow for the hints fetcher to transition to multiple states so that we can simulate failure -> success test cases. The alternative is to recreate a batch update hints fetcher each time, but then that will go out of scope if a request has not finished yet and that is a bigger change that will cause issues in the actual code. Bug: 10463110 Change-Id: Iaf9950e2035f439a4a9da55ddeaa0bededec6abc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2025572Reviewed-by:Michael Crouse <mcrouse@chromium.org> Commit-Queue: Sophie Chang <sophiechang@chromium.org> Cr-Commit-Position: refs/heads/master@{#735989}
Showing
This diff is collapsed.
Please register or sign in to comment