diff options
author | sehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-08 03:02:16 +0000 |
---|---|---|
committer | sehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-08 03:02:16 +0000 |
commit | 6f91f594e820036a20ba8414e96ae9e50b72aa79 (patch) | |
tree | 50d8d2ca6d5587b4995a2ddb2181aa7d76ea3ba4 /ipc | |
parent | 1b2caa09136acf6a0b5e88425bcac872db584ffa (diff) | |
download | chromium_src-6f91f594e820036a20ba8414e96ae9e50b72aa79.zip chromium_src-6f91f594e820036a20ba8414e96ae9e50b72aa79.tar.gz chromium_src-6f91f594e820036a20ba8414e96ae9e50b72aa79.tar.bz2 |
Removed the unnecessary NULL checks from sync_socket_unittest.cc.
Review URL: http://codereview.chromium.org/460132
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34034 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/sync_socket_unittest.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ipc/sync_socket_unittest.cc b/ipc/sync_socket_unittest.cc index c33d99a..e07fdf9 100644 --- a/ipc/sync_socket_unittest.cc +++ b/ipc/sync_socket_unittest.cc @@ -137,7 +137,6 @@ class SyncSocketServerListener : public IPC::Channel::Listener { EXPECT_EQ(sync_socket.Send(static_cast<const void*>(kHelloString), kHelloStringLength), kHelloStringLength); IPC::Message* msg = new MsgClassResponse(kHelloString); - EXPECT_NE(msg, reinterpret_cast<IPC::Message*>(NULL)); EXPECT_TRUE(chan_->Send(msg)); } @@ -198,7 +197,6 @@ class SyncSocketClientListener : public IPC::Channel::Listener { // After receiving from the socket there should be no bytes left. EXPECT_EQ(0, socket_->Peek()); IPC::Message* msg = new MsgClassShutdown(); - EXPECT_NE(msg, reinterpret_cast<IPC::Message*>(NULL)); EXPECT_TRUE(chan_->Send(msg)); MessageLoop::current()->Quit(); } @@ -242,7 +240,6 @@ TEST_F(SyncSocketTest, SanityTest) { base::FileDescriptor filedesc(target_handle, false); IPC::Message* msg = new MsgClassSetHandle(filedesc); #endif // defined(OS_WIN) - EXPECT_NE(msg, reinterpret_cast<IPC::Message*>(NULL)); EXPECT_TRUE(chan.Send(msg)); // Use the current thread as the I/O thread. MessageLoop::current()->Run(); |