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..e63a723d0097813cdee76c86be6b4e797dffd6f4 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,7 @@ TEST_F(ConditionVariableTest, DISABLED_TimeoutAcrossSetTimeOfDay) { |
Thread thread("Helper"); |
thread.Start(); |
- thread.message_loop()->PostTask(FROM_HERE, base::Bind(&BackInTime, &lock)); |
+ thread.task_runner()->PostTask(FROM_HERE, base::Bind(&BackInTime, &lock)); |
TimeTicks start = TimeTicks::Now(); |
const TimeDelta kWaitTime = TimeDelta::FromMilliseconds(300); |