Index: ipc/ipc_channel_posix_unittest.cc |
diff --git a/ipc/ipc_channel_posix_unittest.cc b/ipc/ipc_channel_posix_unittest.cc |
index 964d79e6dd1bc0b6dad163409a17d54b9fe4c439..99bd68b5e3fc36f7de54c46bc80eab6f82528eaf 100644 |
--- a/ipc/ipc_channel_posix_unittest.cc |
+++ b/ipc/ipc_channel_posix_unittest.cc |
@@ -201,8 +201,8 @@ TEST_F(IPCChannelPosixTest, BasicListen) { |
IPC::ChannelHandle handle(kChannelName); |
SetUpSocket(&handle, IPC::Channel::MODE_NAMED_SERVER); |
unlink(handle.name.c_str()); |
- scoped_ptr<IPC::ChannelPosix> channel(new IPC::ChannelPosix( |
- handle, IPC::Channel::MODE_NAMED_SERVER, NULL)); |
+ scoped_ptr<IPC::ChannelPosix> channel( |
+ new IPC::ChannelPosix(handle, IPC::Channel::MODE_NAMED_SERVER, NULL)); |
ASSERT_TRUE(channel->Connect()); |
ASSERT_TRUE(channel->AcceptsConnections()); |
ASSERT_FALSE(channel->HasAcceptedConnection()); |
@@ -229,8 +229,8 @@ TEST_F(IPCChannelPosixTest, BasicConnected) { |
// Make sure that we can use the socket that is created for us by |
// a standard channel. |
- scoped_ptr<IPC::ChannelPosix> channel2(new IPC::ChannelPosix( |
- socket_name, IPC::Channel::MODE_SERVER, NULL)); |
+ scoped_ptr<IPC::ChannelPosix> channel2( |
+ new IPC::ChannelPosix(socket_name, IPC::Channel::MODE_SERVER, NULL)); |
ASSERT_TRUE(channel2->Connect()); |
ASSERT_FALSE(channel2->AcceptsConnections()); |
} |
@@ -362,8 +362,8 @@ TEST_F(IPCChannelPosixTest, MAYBE_ResetState) { |
TEST_F(IPCChannelPosixTest, BadChannelName) { |
// Test empty name |
IPC::ChannelHandle handle(""); |
- scoped_ptr<IPC::ChannelPosix> channel(new IPC::ChannelPosix( |
- handle, IPC::Channel::MODE_NAMED_SERVER, NULL)); |
+ scoped_ptr<IPC::ChannelPosix> channel( |
+ new IPC::ChannelPosix(handle, IPC::Channel::MODE_NAMED_SERVER, NULL)); |
ASSERT_FALSE(channel->Connect()); |
// Test name that is too long. |
@@ -376,8 +376,8 @@ TEST_F(IPCChannelPosixTest, BadChannelName) { |
"leading-edge_processes"; |
EXPECT_GE(strlen(kTooLongName), IPC::kMaxSocketNameLength); |
IPC::ChannelHandle handle2(kTooLongName); |
- scoped_ptr<IPC::ChannelPosix> channel2(new IPC::ChannelPosix( |
- handle2, IPC::Channel::MODE_NAMED_SERVER, NULL)); |
+ scoped_ptr<IPC::ChannelPosix> channel2( |
+ new IPC::ChannelPosix(handle2, IPC::Channel::MODE_NAMED_SERVER, NULL)); |
EXPECT_FALSE(channel2->Connect()); |
} |
@@ -428,8 +428,8 @@ TEST_F(IPCChannelPosixTest, DoubleServer) { |
IPCChannelPosixTestListener listener(false); |
IPCChannelPosixTestListener listener2(false); |
IPC::ChannelHandle chan_handle(GetConnectionSocketName()); |
- scoped_ptr<IPC::ChannelPosix> channel(new IPC::ChannelPosix( |
- chan_handle, IPC::Channel::MODE_SERVER, &listener)); |
+ scoped_ptr<IPC::ChannelPosix> channel( |
+ new IPC::ChannelPosix(chan_handle, IPC::Channel::MODE_SERVER, &listener)); |
scoped_ptr<IPC::ChannelPosix> channel2(new IPC::ChannelPosix( |
chan_handle, IPC::Channel::MODE_SERVER, &listener2)); |
ASSERT_TRUE(channel->Connect()); |
@@ -440,8 +440,8 @@ TEST_F(IPCChannelPosixTest, BadMode) { |
// Test setting up two servers with a bad mode. |
IPCChannelPosixTestListener listener(false); |
IPC::ChannelHandle chan_handle(GetConnectionSocketName()); |
- scoped_ptr<IPC::ChannelPosix> channel(new IPC::ChannelPosix( |
- chan_handle, IPC::Channel::MODE_NONE, &listener)); |
+ scoped_ptr<IPC::ChannelPosix> channel( |
+ new IPC::ChannelPosix(chan_handle, IPC::Channel::MODE_NONE, &listener)); |
ASSERT_FALSE(channel->Connect()); |
} |