| Index: ipc/ipc_channel_posix_unittest.cc
|
| diff --git a/ipc/ipc_channel_posix_unittest.cc b/ipc/ipc_channel_posix_unittest.cc
|
| index b61b345ced0962e5c27c676547d738e9666e0d8d..d5346b9b7c6b98d68063a23369642fc13be50574 100644
|
| --- a/ipc/ipc_channel_posix_unittest.cc
|
| +++ b/ipc/ipc_channel_posix_unittest.cc
|
| @@ -246,9 +246,8 @@ TEST_F(IPCChannelPosixTest, SendHangTest) {
|
| IPC::ChannelHandle in_handle("IN");
|
| scoped_ptr<IPC::ChannelPosix> in_chan(new IPC::ChannelPosix(
|
| in_handle, IPC::Channel::MODE_SERVER, &in_listener));
|
| - base::FileDescriptor out_fd(
|
| - in_chan->TakeClientFileDescriptor(), false);
|
| - IPC::ChannelHandle out_handle("OUT", out_fd);
|
| + IPC::ChannelHandle out_handle(
|
| + "OUT", base::FileDescriptor(in_chan->TakeClientFileDescriptor()));
|
| scoped_ptr<IPC::ChannelPosix> out_chan(new IPC::ChannelPosix(
|
| out_handle, IPC::Channel::MODE_CLIENT, &out_listener));
|
| ASSERT_TRUE(in_chan->Connect());
|
| @@ -272,9 +271,8 @@ TEST_F(IPCChannelPosixTest, AcceptHangTest) {
|
| IPC::ChannelHandle in_handle("IN");
|
| scoped_ptr<IPC::ChannelPosix> in_chan(new IPC::ChannelPosix(
|
| in_handle, IPC::Channel::MODE_SERVER, &in_listener));
|
| - base::FileDescriptor out_fd(
|
| - in_chan->TakeClientFileDescriptor(), false);
|
| - IPC::ChannelHandle out_handle("OUT", out_fd);
|
| + IPC::ChannelHandle out_handle(
|
| + "OUT", base::FileDescriptor(in_chan->TakeClientFileDescriptor()));
|
| scoped_ptr<IPC::ChannelPosix> out_chan(new IPC::ChannelPosix(
|
| out_handle, IPC::Channel::MODE_CLIENT, &out_listener));
|
| ASSERT_TRUE(in_chan->Connect());
|
|
|