DescriptionUse 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
Committed: https://crrev.com/a42e46ee2110aeebb70d9787a0aa05997ec9c67a
Cr-Commit-Position: refs/heads/master@{#300240}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|