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

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

Issue 1646583002: [Reland] Per WebViewScheduler virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 10 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 6dc019faf1f46d191d072bd906a786711cf86051..2bc37726e720d139a213d247557c9d8a9d04c09d 100644
--- a/third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp
+++ b/third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp
@@ -54,6 +54,12 @@ void runPendingTasks()
enterRunLoop();
}
+void runTasksForPeriodInMilliseconds(double runTimeMilliseconds)
+{
+ Platform::current()->currentThread()->taskRunner()->postDelayedTask(BLINK_FROM_HERE, new QuitTask, runTimeMilliseconds);
esprehn 2016/02/23 10:30:11 This is scary, what keeps this from being flaky?
alex clarke (OOO till 29th) 2016/02/23 17:16:57 Turns out we don't actually need this for VirtualT
+ enterRunLoop();
+}
+
String blinkRootDir()
{
base::FilePath path;

Powered by Google App Engine
This is Rietveld 408576698