Index: base/test/launcher/unit_test_launcher.cc |
diff --git a/base/test/launcher/unit_test_launcher.cc b/base/test/launcher/unit_test_launcher.cc |
index ad956dbbe21934f59d4421e89156d4aa524d7260..b97d09f65df8f37cea66683ad557ebf26bb58be1 100644 |
--- a/base/test/launcher/unit_test_launcher.cc |
+++ b/base/test/launcher/unit_test_launcher.cc |
@@ -31,6 +31,10 @@ |
#include "build/build_config.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#if defined(OS_POSIX) |
+#include "base/files/file_descriptor_watcher_posix.h" |
+#endif |
+ |
namespace base { |
namespace { |
@@ -229,6 +233,9 @@ int LaunchUnitTestsInternal(const RunTestSuiteCallback& run_test_suite, |
fflush(stdout); |
MessageLoopForIO message_loop; |
+#if defined(OS_POSIX) |
+ FileDescriptorWatcher file_descriptor_watcher(&message_loop); |
+#endif |
DefaultUnitTestPlatformDelegate platform_delegate; |
UnitTestLauncherDelegate delegate( |