Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(718)

Unified Diff: content/public/test/test_launcher.cc

Issue 2384273002: Use FileDescriptorWatcher in base::TestLauncher. (Closed)
Patch Set: fix win_clang Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/test/launcher/unit_test_launcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_launcher.cc
diff --git a/content/public/test/test_launcher.cc b/content/public/test/test_launcher.cc
index a756357553ff3b9e446dfc7111ee48caaec584a3..8cc551e758d46b531409afe70a26700c0cee1242 100644
--- a/content/public/test/test_launcher.cc
+++ b/content/public/test/test_launcher.cc
@@ -40,6 +40,10 @@
#include "net/base/escape.h"
#include "testing/gtest/include/gtest/gtest.h"
+#if defined(OS_POSIX)
+#include "base/files/file_descriptor_watcher_posix.h"
+#endif
+
#if defined(OS_WIN)
#include "base/base_switches.h"
#include "content/common/sandbox_win.h"
@@ -537,6 +541,9 @@ int LaunchTests(TestLauncherDelegate* launcher_delegate,
"process mode).\n");
base::MessageLoopForIO message_loop;
+#if defined(OS_POSIX)
+ base::FileDescriptorWatcher file_descriptor_watcher(&message_loop);
+#endif
// Allow the |launcher_delegate| to modify |default_jobs|.
launcher_delegate->AdjustDefaultParallelJobs(&default_jobs);
« no previous file with comments | « base/test/launcher/unit_test_launcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698