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

Unified Diff: remoting/jingle_glue/jingle_thread_unittest.cc

Issue 9572038: Convert uses of int ms to TimeDelta in jingle and remoting. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix nits. Created 8 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
« no previous file with comments | « remoting/jingle_glue/iq_sender.cc ('k') | remoting/protocol/connection_tester.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/jingle_thread_unittest.cc
diff --git a/remoting/jingle_glue/jingle_thread_unittest.cc b/remoting/jingle_glue/jingle_thread_unittest.cc
index 9deb8dbbb72908b394eb47ab3dbee4b54a68e721..e73c8b2b067d47ffedf638b6b57e0d3743f907ef 100644
--- a/remoting/jingle_glue/jingle_thread_unittest.cc
+++ b/remoting/jingle_glue/jingle_thread_unittest.cc
@@ -63,7 +63,7 @@ TEST(JingleThreadTest, PostDelayedTask) {
base::Time start = base::Time::Now();
thread.message_loop()->PostDelayedTask(
FROM_HERE, base::Bind(&MockCallback::Run, base::Unretained(&task)),
- kDelayMs);
+ base::TimeDelta::FromMilliseconds(kDelayMs));
event.TimedWait(base::TimeDelta::FromMilliseconds(kDelayTimeoutMs));
base::Time end = base::Time::Now();
thread.Stop();
@@ -81,7 +81,7 @@ TEST(JingleThreadTest, PostNonNestableDelayedTask) {
base::Time start = base::Time::Now();
thread.message_loop()->PostNonNestableDelayedTask(
FROM_HERE, base::Bind(&MockCallback::Run, base::Unretained(&task)),
- kDelayMs);
+ base::TimeDelta::FromMilliseconds(kDelayMs));
event.TimedWait(base::TimeDelta::FromMilliseconds(kDelayTimeoutMs));
base::Time end = base::Time::Now();
thread.Stop();
« no previous file with comments | « remoting/jingle_glue/iq_sender.cc ('k') | remoting/protocol/connection_tester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698