Use RunLoop, but do not call RunUntilIdle() multiple times
In unit tests for MidiManager, RunLoop was used, and is used to wait a posted task finished. But, RunUntilIdle() can not be called multiple times. To avoid this restriction, we can just create new instance again for another iteration. TEST=media_unittests Review URL: https://codereview.chromium.org/656793004 Cr-Commit-Position: refs/heads/master@{#300240}
Showing
Please register or sign in to comment