| Index: remoting/host/local_input_monitor_unittest.cc
|
| diff --git a/remoting/host/local_input_monitor_unittest.cc b/remoting/host/local_input_monitor_unittest.cc
|
| index 7d15d252cc66e3a0db2fa9208c9b4aaf52f44ac1..f9bb38869dee589b94feef10f667a7a1ef9ee8c6 100644
|
| --- a/remoting/host/local_input_monitor_unittest.cc
|
| +++ b/remoting/host/local_input_monitor_unittest.cc
|
| @@ -17,6 +17,10 @@
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| +#if defined(OS_POSIX)
|
| +#include "base/files/file_descriptor_watcher_posix.h"
|
| +#endif
|
| +
|
| namespace remoting {
|
|
|
| using testing::_;
|
| @@ -42,6 +46,10 @@ class LocalInputMonitorTest : public testing::Test {
|
| void SetUp() override;
|
|
|
| base::MessageLoop message_loop_;
|
| +#if defined(OS_POSIX)
|
| + // Required to watch a file descriptor from NativeMessageProcessHost.
|
| + base::FileDescriptorWatcher file_descriptor_watcher_;
|
| +#endif
|
| base::RunLoop run_loop_;
|
| scoped_refptr<AutoThreadTaskRunner> task_runner_;
|
|
|
| @@ -52,6 +60,9 @@ class LocalInputMonitorTest : public testing::Test {
|
|
|
| LocalInputMonitorTest::LocalInputMonitorTest()
|
| : message_loop_(kDesiredMessageLoopType),
|
| +#if defined(OS_POSIX)
|
| + file_descriptor_watcher_(base::MessageLoopForIO::current()),
|
| +#endif
|
| client_jid_("user@domain/rest-of-jid"),
|
| client_session_control_factory_(&client_session_control_) {
|
| }
|
|
|