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

Unified Diff: third_party/WebKit/Source/platform/WebTaskRunnerTest.cpp

Issue 2876513002: Use WTF::TimeDelta to specify delays on WebTaskRunner (Closed)
Patch Set: 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/WebTaskRunnerTest.cpp
diff --git a/third_party/WebKit/Source/platform/WebTaskRunnerTest.cpp b/third_party/WebKit/Source/platform/WebTaskRunnerTest.cpp
index bcd7da6df55734580831d78ca7b1e92a3a27cc8a..76f161456b7b2cddcd7f125e644fb94ad6fdddb5 100644
--- a/third_party/WebKit/Source/platform/WebTaskRunnerTest.cpp
+++ b/third_party/WebKit/Source/platform/WebTaskRunnerTest.cpp
@@ -53,7 +53,8 @@ TEST(WebTaskRunnerTest, PostCancellableTaskTest) {
count = 0;
handle = task_runner->PostDelayedCancellableTask(
- BLINK_FROM_HERE, WTF::Bind(&Increment, WTF::Unretained(&count)), 1);
+ BLINK_FROM_HERE, WTF::Bind(&Increment, WTF::Unretained(&count)),
+ WTF::TimeDelta::FromMilliseconds(1));
EXPECT_EQ(0, count);
EXPECT_TRUE(handle.IsActive());
task_runner->RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698