| Index: third_party/WebKit/Source/web/tests/VirtualTimeTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/VirtualTimeTest.cpp b/third_party/WebKit/Source/web/tests/VirtualTimeTest.cpp
|
| index a61af48937a0923c06d94757836a7328fef5b9ae..62c4ecc32645edc0f8d5d1065d07801d5ff1814c 100644
|
| --- a/third_party/WebKit/Source/web/tests/VirtualTimeTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/VirtualTimeTest.cpp
|
| @@ -61,7 +61,8 @@ void QuitRunLoop() {
|
| // hard time limit.
|
| void RunTasksForPeriod(double delay_ms) {
|
| Platform::Current()->CurrentThread()->GetWebTaskRunner()->PostDelayedTask(
|
| - BLINK_FROM_HERE, WTF::Bind(&QuitRunLoop), delay_ms);
|
| + BLINK_FROM_HERE, WTF::Bind(&QuitRunLoop),
|
| + WTF::TimeDelta::FromMillisecondsD(delay_ms));
|
| testing::EnterRunLoop();
|
| }
|
| }
|
| @@ -223,7 +224,7 @@ TEST_F(VirtualTimeTest, MAYBE_DOMTimersSuspended) {
|
| WebViewScheduler::VirtualTimePolicy::PAUSE);
|
| },
|
| WTF::Unretained(WebView().Scheduler())),
|
| - 1000);
|
| + WTF::TimeDelta::FromMilliseconds(1000));
|
|
|
| // ALso schedule a second timer for the same point in time.
|
| ExecuteJavaScript("setTimeout(() => { run_order.push(2); }, 1000);");
|
|
|