Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(744)

Unified Diff: net/socket/tcp_listen_socket_unittest.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/tcp_listen_socket.cc ('k') | net/socket/tcp_server_socket_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/tcp_listen_socket_unittest.cc
diff --git a/net/socket/tcp_listen_socket_unittest.cc b/net/socket/tcp_listen_socket_unittest.cc
index a4edd211ab34c0a53d73dc169504bad0bb078de4..19dd658f8e1ecb6064f34a94eda5f78e88edfbca 100644
--- a/net/socket/tcp_listen_socket_unittest.cc
+++ b/net/socket/tcp_listen_socket_unittest.cc
@@ -43,7 +43,7 @@ void TCPListenSocketTester::SetUp() {
// verify Listen succeeded
NextAction();
- ASSERT_FALSE(server_ == NULL);
+ ASSERT_FALSE(server_.get() == NULL);
ASSERT_EQ(ACTION_LISTEN, last_action_.type());
// verify the connect/accept and setup test_socket_
@@ -127,7 +127,7 @@ void TCPListenSocketTester::Shutdown() {
void TCPListenSocketTester::Listen() {
server_ = DoListen();
- ASSERT_TRUE(server_);
+ ASSERT_TRUE(server_.get());
server_->AddRef();
ReportAction(TCPListenSocketTestAction(ACTION_LISTEN));
}
« no previous file with comments | « net/socket/tcp_listen_socket.cc ('k') | net/socket/tcp_server_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698