Index: base/posix/unix_domain_socket_linux_unittest.cc |
diff --git a/base/posix/unix_domain_socket_linux_unittest.cc b/base/posix/unix_domain_socket_linux_unittest.cc |
index c05141cdcf132475da2a15299745d42ce853ff5a..60b2bb8a47070496e47acd4448e979408ac0f084 100644 |
--- a/base/posix/unix_domain_socket_linux_unittest.cc |
+++ b/base/posix/unix_domain_socket_linux_unittest.cc |
@@ -10,11 +10,9 @@ |
#include "base/bind_helpers.h" |
#include "base/files/file_util.h" |
#include "base/files/scoped_file.h" |
-#include "base/location.h" |
#include "base/memory/scoped_vector.h" |
#include "base/pickle.h" |
#include "base/posix/unix_domain_socket_linux.h" |
-#include "base/single_thread_task_runner.h" |
#include "base/synchronization/waitable_event.h" |
#include "base/threading/thread.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -34,10 +32,11 @@ |
// Have the thread send a synchronous message via the socket. |
Pickle request; |
- message_thread.task_runner()->PostTask( |
+ message_thread.message_loop()->PostTask( |
FROM_HERE, |
- Bind(IgnoreResult(&UnixDomainSocket::SendRecvMsg), fds[1], |
- static_cast<uint8_t*>(NULL), 0U, static_cast<int*>(NULL), request)); |
+ Bind(IgnoreResult(&UnixDomainSocket::SendRecvMsg), |
+ fds[1], static_cast<uint8_t*>(NULL), 0U, static_cast<int*>(NULL), |
+ request)); |
// Receive the message. |
ScopedVector<base::ScopedFD> message_fds; |
@@ -52,8 +51,9 @@ |
// Check that the thread didn't get blocked. |
WaitableEvent event(false, false); |
- message_thread.task_runner()->PostTask( |
- FROM_HERE, Bind(&WaitableEvent::Signal, Unretained(&event))); |
+ message_thread.message_loop()->PostTask( |
+ FROM_HERE, |
+ Bind(&WaitableEvent::Signal, Unretained(&event))); |
ASSERT_TRUE(event.TimedWait(TimeDelta::FromMilliseconds(5000))); |
} |