| Index: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
|
| diff --git a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
|
| index 75d00bb44bdb3d3d95ab8b28a3b383d1cdff1643..7dfccd7f95b3bf4980be3b1fbecb8425aa9958da 100644
|
| --- a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
|
| +++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
|
| @@ -219,6 +219,10 @@ TestingPlatformSupportWithMockScheduler::
|
| m_mockTaskRunner,
|
| base::WrapUnique(new scheduler::TestTimeSource(m_clock.get()))))),
|
| m_thread(m_scheduler->CreateMainThread()) {
|
| + // We need a non-zero start time because LazyNow in the blink scheduler can't
|
| + // be initialized with time t = 0;
|
| + m_clock->Advance(base::TimeDelta::FromSeconds(1));
|
| +
|
| // Set the work batch size to one so RunPendingTasks behaves as expected.
|
| m_scheduler->GetSchedulerHelperForTesting()->SetWorkBatchSizeForTesting(1);
|
|
|
|
|