Revert "Fix MOCK_TIME bug with racy cross thread immediate task posting"
This reverts commit e7eac012. Reason for revert: Looks like one of the tests is failing on ios Original change's description: > Fix MOCK_TIME bug with racy cross thread immediate task posting > > In https://crrev.com/c/1564008 we have a test that only cares about main > thread delayed tasks. However it invokes an API which as a side effect > triggers cross thread PostTask to the main thread. These tasks are > uninteresting except occasionally they happen in the window between > MockTimeDomain::DelayTillNextTask and > MockTimeDomain::MaybeFastForwardToNextTask. Due to a bug in > MaybeFastForwardToNextTask it was treating this racy cross thread post > the same as running out of tasks and exiting early. > > This is clearly undesirable and this patch fixes that behaviour. > > Change-Id: I98a96c98c8ae56fd22bc2b9ea452d46565354127 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1565983 > Commit-Queue: Alex Clarke <alexclarke@chromium.org> > Reviewed-by: François Doray <fdoray@chromium.org> > Reviewed-by: Gabriel Charette <gab@chromium.org> > Cr-Commit-Position: refs/heads/master@{#651677} TBR=gab@chromium.org,fdoray@chromium.org,alexclarke@chromium.org Change-Id: Id8850f47c66400d59e8aa43e04f3bf5d25205e08 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1571687Reviewed-by:Alex Clarke <alexclarke@chromium.org> Commit-Queue: Alex Clarke <alexclarke@chromium.org> Cr-Commit-Position: refs/heads/master@{#651730}
Showing
Please register or sign in to comment