| Index: dbus/bus_unittest.cc
|
| diff --git a/dbus/bus_unittest.cc b/dbus/bus_unittest.cc
|
| index 84bbb783f390a70d40f065173059bf46ce2096ab..6166e893b15ebffec0f9ae94b4dbbd0371d6b0a9 100644
|
| --- a/dbus/bus_unittest.cc
|
| +++ b/dbus/bus_unittest.cc
|
| @@ -5,6 +5,7 @@
|
| #include "dbus/bus.h"
|
|
|
| #include "base/bind.h"
|
| +#include "base/files/file_descriptor_watcher_posix.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/message_loop/message_loop.h"
|
| @@ -318,9 +319,10 @@ TEST(BusTest, DoubleAddAndRemoveMatch) {
|
| }
|
|
|
| TEST(BusTest, ListenForServiceOwnerChange) {
|
| - // Setup the current thread's MessageLoop. Must be of TYPE_IO for the
|
| - // listeners to work.
|
| - base::MessageLoop message_loop(base::MessageLoop::TYPE_IO);
|
| + // Setup a MessageLoopForIO and enable FileDescriptorWatcher for listeners.
|
| + base::MessageLoopForIO message_loop;
|
| + base::FileDescriptorWatcher file_descriptor_watcher(&message_loop);
|
| +
|
| RunLoopWithExpectedCount run_loop_state;
|
|
|
| // Create the bus.
|
|
|