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

Unified Diff: cc/test/scheduler_test_common.cc

Issue 12408028: cc: Delay start of scrollbar animation setNeedsRedraw. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add more test expectations Created 7 years, 9 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: cc/test/scheduler_test_common.cc
diff --git a/cc/test/scheduler_test_common.cc b/cc/test/scheduler_test_common.cc
index f295098ae2f14c441b0bab3ad4ba18c6eb3b95e2..8752cf6027047803ef85509352b718881fe9a6da 100644
--- a/cc/test/scheduler_test_common.cc
+++ b/cc/test/scheduler_test_common.cc
@@ -31,17 +31,17 @@ void FakeThread::runPendingTask()
void FakeThread::postTask(base::Closure cb)
{
- postDelayedTask(cb, 0);
+ postDelayedTask(cb, base::TimeDelta());
}
-void FakeThread::postDelayedTask(base::Closure cb, long long delay)
+void FakeThread::postDelayedTask(base::Closure cb, base::TimeDelta delay)
{
if (m_runPendingTaskOnOverwrite && hasPendingTask())
runPendingTask();
ASSERT_FALSE(hasPendingTask());
m_pendingTask.reset(new base::Closure(cb));
- m_pendingTaskDelay = delay;
+ m_pendingTaskDelay = delay.InMilliseconds();
}
bool FakeThread::belongsToCurrentThread() const

Powered by Google App Engine
This is Rietveld 408576698