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 814a7f7150012d4cd85c2493031e8d990bbe3768..fd991acc57199dd051338b3e0f5ccf41bebda310 100644 |
--- a/third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp |
+++ b/third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp |
@@ -30,6 +30,7 @@ |
#include "base/message_loop/message_loop.h" |
#include "base/path_service.h" |
#include "platform/SharedBuffer.h" |
+#include "platform/Timer.h" |
#include "public/platform/FilePathConversion.h" |
#include "public/platform/Platform.h" |
#include "public/platform/WebString.h" |
@@ -48,6 +49,12 @@ void runPendingTasks() |
enterRunLoop(); |
} |
+void runDelayedTasks(double delayMs) |
+{ |
+ Platform::current()->currentThread()->getWebTaskRunner()->postDelayedTask(BLINK_FROM_HERE, bind(&exitRunLoop), delayMs); |
+ enterRunLoop(); |
+} |
+ |
String blinkRootDir() |
{ |
base::FilePath path; |