| Index: mojo/edk/system/test/test_io_thread.cc
|
| diff --git a/mojo/edk/system/test/test_io_thread.cc b/mojo/edk/system/test/test_io_thread.cc
|
| index 48e5c71037e4c91debd65bfe1ddab25f21312b60..ee11ff3f94fdb7c10460642292c7433df84ea25f 100644
|
| --- a/mojo/edk/system/test/test_io_thread.cc
|
| +++ b/mojo/edk/system/test/test_io_thread.cc
|
| @@ -7,9 +7,7 @@
|
| #include "base/bind.h"
|
| #include "base/callback.h"
|
| #include "base/location.h"
|
| -#include "mojo/edk/util/waitable_event.h"
|
| -
|
| -using mojo::util::AutoResetWaitableEvent;
|
| +#include "base/synchronization/waitable_event.h"
|
|
|
| namespace mojo {
|
| namespace system {
|
| @@ -17,7 +15,7 @@ namespace test {
|
|
|
| namespace {
|
|
|
| -void PostTaskAndWaitHelper(AutoResetWaitableEvent* event,
|
| +void PostTaskAndWaitHelper(base::WaitableEvent* event,
|
| const base::Closure& task) {
|
| task.Run();
|
| event->Signal();
|
| @@ -59,7 +57,7 @@ void TestIOThread::PostTask(const base::Closure& task) {
|
| }
|
|
|
| void TestIOThread::PostTaskAndWait(const base::Closure& task) {
|
| - AutoResetWaitableEvent event;
|
| + base::WaitableEvent event(false, false);
|
| task_runner()->PostTask(tracked_objects::Location(),
|
| base::Bind(&PostTaskAndWaitHelper, &event, task));
|
| event.Wait();
|
|
|