| Index: sandbox/linux/services/scoped_process_unittest.cc
|
| diff --git a/sandbox/linux/services/scoped_process_unittest.cc b/sandbox/linux/services/scoped_process_unittest.cc
|
| index 2800bd725c4549c2a3001574e19f2394ef970d9b..7ae82bf866bbba3a340f8f31f85b9443765f03d9 100644
|
| --- a/sandbox/linux/services/scoped_process_unittest.cc
|
| +++ b/sandbox/linux/services/scoped_process_unittest.cc
|
| @@ -13,7 +13,6 @@
|
| #include "base/bind.h"
|
| #include "base/callback.h"
|
| #include "base/file_util.h"
|
| -#include "base/files/scoped_file.h"
|
| #include "base/logging.h"
|
| #include "base/posix/eintr_wrapper.h"
|
| #include "base/threading/platform_thread.h"
|
| @@ -74,13 +73,13 @@
|
| TEST(ScopedProcess, DiesForReal) {
|
| int pipe_fds[2];
|
| ASSERT_EQ(0, pipe(pipe_fds));
|
| - base::ScopedFD read_end_closer(pipe_fds[0]);
|
| - base::ScopedFD write_end_closer(pipe_fds[1]);
|
| + file_util::ScopedFDCloser read_end_closer(pipe_fds);
|
| + file_util::ScopedFDCloser write_end_closer(pipe_fds + 1);
|
|
|
| { ScopedProcess process(base::Bind(&DoExit)); }
|
|
|
| // Close writing end of the pipe.
|
| - write_end_closer.reset();
|
| + ASSERT_EQ(0, IGNORE_EINTR(close(pipe_fds[1])));
|
| pipe_fds[1] = -1;
|
|
|
| ASSERT_EQ(0, fcntl(pipe_fds[0], F_SETFL, O_NONBLOCK));
|
| @@ -109,8 +108,8 @@
|
| TEST(ScopedProcess, SynchronizationWorks) {
|
| int pipe_fds[2];
|
| ASSERT_EQ(0, pipe(pipe_fds));
|
| - base::ScopedFD read_end_closer(pipe_fds[0]);
|
| - base::ScopedFD write_end_closer(pipe_fds[1]);
|
| + file_util::ScopedFDCloser read_end_closer(pipe_fds);
|
| + file_util::ScopedFDCloser write_end_closer(pipe_fds + 1);
|
|
|
| // Start a process with a closure that takes a little bit to run.
|
| ScopedProcess process(
|
|
|