DescriptionFix TestingPlatformSupportWithMockScheduler::runForPeriodSeconds
When one calls runForPeriodSeconds(x) you naturally expect the
testing clock to alwats advance by that many seconds.
Unfortunately cc::OrderedSimpleTaskRunner is a strange beast and
the actual time advances to the last delayed task before the
deadline if any.
This patch fixes that and makes the operation of timer fast
forwarding explicit. It also fixes a bug in
TimerTest.RepeatingTimerDoesNotDrift which was relying on
strange behavior of cc::OrderedSimpleTaskRunner when
setAutoAdvanceNowToPendingTasks is false.
BUG=657517
Committed: https://crrev.com/98561e7b7897f88fbceed76c57cefa990c2cb90a
Cr-Commit-Position: refs/heads/master@{#426545}
Patch Set 1 #Patch Set 2 : Fix compile #
Messages
Total messages: 13 (8 generated)
|