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

Unified Diff: base/test/launcher/unit_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/test_launcher_nacl_nonsfi.cc ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « base/test/launcher/test_launcher_nacl_nonsfi.cc ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698