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

Unified Diff: util/mach/mach_message_server_test.cc

Issue 811823003: Cross platform low level file IO wrappers (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 6 years 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
Index: util/mach/mach_message_server_test.cc
diff --git a/util/mach/mach_message_server_test.cc b/util/mach/mach_message_server_test.cc
index 5a889427729b896838f469f5b0aa54d3182a274d..ad61c8a5748e1aca4f44b50abd4c1e0743918037 100644
--- a/util/mach/mach_message_server_test.cc
+++ b/util/mach/mach_message_server_test.cc
@@ -22,7 +22,7 @@
#include "base/basictypes.h"
#include "base/mac/scoped_mach_port.h"
#include "gtest/gtest.h"
-#include "util/file/fd_io.h"
+#include "util/file/file_io.h"
#include "util/mach/mach_extensions.h"
#include "util/mach/mach_message.h"
#include "util/test/mac/mach_errors.h"
@@ -335,13 +335,13 @@ class TestMachMessageServer : public MachMessageServer::Interface,
if (options_.child_wait_for_parent_pipe_early) {
// Tell the child to begin sending messages.
char c = '\0';
- CheckedWriteFD(WritePipeFD(), &c, 1);
+ CheckedWriteFile(WritePipeFD(), &c, 1);
}
if (options_.parent_wait_for_child_pipe) {
// Wait until the child is done sending what it’s going to send.
char c;
- CheckedReadFD(ReadPipeFD(), &c, 1);
+ CheckedReadFile(ReadPipeFD(), &c, 1);
EXPECT_EQ('\0', c);
}
@@ -386,7 +386,7 @@ class TestMachMessageServer : public MachMessageServer::Interface,
if (options_.child_wait_for_parent_pipe_late) {
// Let the child know it’s safe to exit.
char c = '\0';
- CheckedWriteFD(WritePipeFD(), &c, 1);
+ CheckedWriteFile(WritePipeFD(), &c, 1);
}
}
@@ -394,7 +394,7 @@ class TestMachMessageServer : public MachMessageServer::Interface,
if (options_.child_wait_for_parent_pipe_early) {
// Wait until the parent is done setting things up on its end.
char c;
- CheckedReadFD(ReadPipeFD(), &c, 1);
+ CheckedReadFile(ReadPipeFD(), &c, 1);
EXPECT_EQ('\0', c);
}
@@ -428,7 +428,7 @@ class TestMachMessageServer : public MachMessageServer::Interface,
if (options_.child_wait_for_parent_pipe_late) {
char c;
- CheckedReadFD(ReadPipeFD(), &c, 1);
+ CheckedReadFile(ReadPipeFD(), &c, 1);
ASSERT_EQ('\0', c);
}
}
@@ -556,7 +556,7 @@ class TestMachMessageServer : public MachMessageServer::Interface,
// running MachMessageServer() once it’s received.
void ChildNotifyParentViaPipe() {
char c = '\0';
- CheckedWriteFD(WritePipeFD(), &c, 1);
+ CheckedWriteFile(WritePipeFD(), &c, 1);
}
// In the child process, sends a request message to the server and then

Powered by Google App Engine
This is Rietveld 408576698