Fix TaskSchedulerWorkerPoolHistogramTest.NumTasksBeforeDetach
This fix passes the pointer for the PlatformThreadRef to the task for
comparisons and actually gets the PlatformThreadRef from
PlatformThread::CurrentRef().
Previously, the test would race and pass by value. This meant that
if the previous task did not complete in time, it would pass the empty
reference. Since we were accidentally comparing against that, then the
test succeeded. When code ran slowly enough to set the value before
the next PostTask, then we would have the correct PlatformThreadRef,
but incorrectly compare it to the empty PlatformThreadRef, correctly
failing the test.
It's amazing that the tests passed in the first place!
BUG=697697
Review-Url: https://codereview.chromium.org/2729573004
Cr-Commit-Position: refs/heads/master@{#456558}
CrOS-Libchrome-Original-Commit: 404de72480129c6549041267a171a9b0f1f8189f
1 file changed