Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp

Issue 2876513002: Use WTF::TimeDelta to specify delays on WebTaskRunner (Closed)
Patch Set: mac fix Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp
diff --git a/third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp b/third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp
index eafb280cb4d1419bd7221aa3fe3f55734400cc62..d0e10b613f9fb63df7122d46540f79525d16ad04 100644
--- a/third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp
+++ b/third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp
@@ -68,7 +68,8 @@ void RunPendingTasks() {
void RunDelayedTasks(double delay_ms) {
Platform::Current()->CurrentThread()->GetWebTaskRunner()->PostDelayedTask(
- BLINK_FROM_HERE, WTF::Bind(&ExitRunLoop), delay_ms);
+ BLINK_FROM_HERE, WTF::Bind(&ExitRunLoop),
+ TimeDelta::FromMillisecondsD(delay_ms));
EnterRunLoop();
}

Powered by Google App Engine
This is Rietveld 408576698