Index: base/synchronization/condition_variable_unittest.cc |
diff --git a/base/synchronization/condition_variable_unittest.cc b/base/synchronization/condition_variable_unittest.cc |
index 5d7a0ab8b601187629720b06464086a8485a69d7..4c04a5f1c9f6a1bfdb8c5c3a609a50dde503ff9f 100644 |
--- a/base/synchronization/condition_variable_unittest.cc |
+++ b/base/synchronization/condition_variable_unittest.cc |
@@ -9,8 +9,10 @@ |
#include <vector> |
#include "base/bind.h" |
+#include "base/location.h" |
#include "base/logging.h" |
#include "base/memory/scoped_ptr.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/synchronization/condition_variable.h" |
#include "base/synchronization/lock.h" |
#include "base/synchronization/spin_wait.h" |
@@ -220,7 +222,8 @@ TEST_F(ConditionVariableTest, DISABLED_TimeoutAcrossSetTimeOfDay) { |
Thread thread("Helper"); |
thread.Start(); |
- thread.message_loop()->PostTask(FROM_HERE, base::Bind(&BackInTime, &lock)); |
+ thread.message_loop()->task_runner()->PostTask( |
danakj
2015/04/21 20:16:30
dittos
Sami
2015/04/23 17:48:24
Done.
|
+ FROM_HERE, base::Bind(&BackInTime, &lock)); |
TimeTicks start = TimeTicks::Now(); |
const TimeDelta kWaitTime = TimeDelta::FromMilliseconds(300); |