| Index: sandbox/linux/services/broker_process_unittest.cc
|
| diff --git a/sandbox/linux/services/broker_process_unittest.cc b/sandbox/linux/services/broker_process_unittest.cc
|
| index f3effa1023accc1f5f9e0012ba4202813637e41d..cb9eb77b6a47b8415346fccb75d8afa76c23764f 100644
|
| --- a/sandbox/linux/services/broker_process_unittest.cc
|
| +++ b/sandbox/linux/services/broker_process_unittest.cc
|
| @@ -17,14 +17,13 @@
|
| #include "base/basictypes.h"
|
| #include "base/bind.h"
|
| #include "base/file_util.h"
|
| +#include "base/files/scoped_file.h"
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/posix/eintr_wrapper.h"
|
| #include "sandbox/linux/tests/unit_tests.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| -using file_util::ScopedFD;
|
| -
|
| namespace sandbox {
|
|
|
| namespace {
|
| @@ -272,7 +271,7 @@ void TestOpenCpuinfo(bool fast_check_in_client) {
|
|
|
| int fd = -1;
|
| fd = open_broker->Open(kFileCpuInfo, O_RDWR);
|
| - ScopedFD fd_closer(&fd);
|
| + base::ScopedFD fd_closer(fd);
|
| ASSERT_EQ(fd, -EPERM);
|
|
|
| // Check we can read /proc/cpuinfo.
|
| @@ -284,7 +283,7 @@ void TestOpenCpuinfo(bool fast_check_in_client) {
|
|
|
| // Open cpuinfo via the broker.
|
| int cpuinfo_fd = open_broker->Open(kFileCpuInfo, O_RDONLY);
|
| - ScopedFD cpuinfo_fd_closer(&cpuinfo_fd);
|
| + base::ScopedFD cpuinfo_fd_closer(cpuinfo_fd);
|
| ASSERT_GE(cpuinfo_fd, 0);
|
| char buf[3];
|
| memset(buf, 0, sizeof(buf));
|
| @@ -293,7 +292,7 @@ void TestOpenCpuinfo(bool fast_check_in_client) {
|
|
|
| // Open cpuinfo directly.
|
| int cpuinfo_fd2 = open(kFileCpuInfo, O_RDONLY);
|
| - ScopedFD cpuinfo_fd2_closer(&cpuinfo_fd2);
|
| + base::ScopedFD cpuinfo_fd2_closer(cpuinfo_fd2);
|
| ASSERT_GE(cpuinfo_fd2, 0);
|
| char buf2[3];
|
| memset(buf2, 1, sizeof(buf2));
|
|
|