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

Unified Diff: util/test/multiprocess_posix.cc

Issue 880763002: Reorganize Multiprocess and implement for Windows (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes 2 Created 5 years, 11 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 | « util/test/multiprocess_exec_win.cc ('k') | util/test/multiprocess_posix_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/test/multiprocess_posix.cc
diff --git a/util/test/multiprocess.cc b/util/test/multiprocess_posix.cc
similarity index 98%
rename from util/test/multiprocess.cc
rename to util/test/multiprocess_posix.cc
index c6b648b6abfa4dd833c2fdb99de5272d4536e24b..f50446b17c6728a7dd6235fe5c88fbbc34eb7019 100644
--- a/util/test/multiprocess.cc
+++ b/util/test/multiprocess_posix.cc
@@ -17,6 +17,7 @@
#include <signal.h>
#include <stdlib.h>
#include <sys/wait.h>
+#include <unistd.h>
#include <string>
@@ -153,14 +154,14 @@ pid_t Multiprocess::ChildPID() const {
return info_->child_pid;
}
-int Multiprocess::ReadPipeFD() const {
+FileHandle Multiprocess::ReadPipeHandle() const {
int fd = info_->child_pid ? info_->pipe_c2p_read.get()
: info_->pipe_p2c_read.get();
CHECK_NE(fd, -1);
return fd;
}
-int Multiprocess::WritePipeFD() const {
+FileHandle Multiprocess::WritePipeHandle() const {
int fd = info_->child_pid ? info_->pipe_p2c_write.get()
: info_->pipe_c2p_write.get();
CHECK_NE(fd, -1);
« no previous file with comments | « util/test/multiprocess_exec_win.cc ('k') | util/test/multiprocess_posix_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698