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

Unified Diff: third_party/WebKit/Source/platform/WebTaskRunnerTest.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/WebTaskRunnerTest.cpp
diff --git a/third_party/WebKit/Source/platform/WebTaskRunnerTest.cpp b/third_party/WebKit/Source/platform/WebTaskRunnerTest.cpp
index bcd7da6df55734580831d78ca7b1e92a3a27cc8a..8010a7bf3ae00bf35e1d87ae8b70895354c18292 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)),
+ TimeDelta::FromMilliseconds(1));
EXPECT_EQ(0, count);
EXPECT_TRUE(handle.IsActive());
task_runner->RunUntilIdle();
« no previous file with comments | « third_party/WebKit/Source/platform/WebTaskRunner.cpp ('k') | third_party/WebKit/Source/platform/WebThreadSupportingGC.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698