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

Unified Diff: net/spdy/spdy_session_spdy2_unittest.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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/spdy/spdy_session_pool.cc ('k') | net/spdy/spdy_session_spdy3_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session_spdy2_unittest.cc
diff --git a/net/spdy/spdy_session_spdy2_unittest.cc b/net/spdy/spdy_session_spdy2_unittest.cc
index b4e8b0002bfdd972b0f2e815ba888ca7c79f4a99..f27cf2f1c4ad7141ff2588adecd1e5a52e5ea9ec 100644
--- a/net/spdy/spdy_session_spdy2_unittest.cc
+++ b/net/spdy/spdy_session_spdy2_unittest.cc
@@ -397,9 +397,9 @@ TEST_F(SpdySessionSpdy2Test, DeleteExpiredPushStreams) {
(*request_headers)["url"] = "/";
scoped_refptr<SpdyStream> stream(
- new SpdyStream(session, false, session->net_log_));
+ new SpdyStream(session.get(), false, session->net_log_));
stream->set_spdy_headers(request_headers.Pass());
- session->ActivateStream(stream);
+ session->ActivateStream(stream.get());
SpdyHeaderBlock headers;
headers["url"] = "http://www.google.com/a.dat";
@@ -623,8 +623,8 @@ TEST_F(SpdySessionSpdy2Test, CloseIdleSessions) {
// Make sessions 1 and 3 inactive, but keep them open.
// Session 2 still open and active
- session1->CloseCreatedStream(spdy_stream1, OK);
- session3->CloseCreatedStream(spdy_stream3, OK);
+ session1->CloseCreatedStream(spdy_stream1.get(), OK);
+ session3->CloseCreatedStream(spdy_stream3.get(), OK);
EXPECT_FALSE(session1->is_active());
EXPECT_FALSE(session1->IsClosed());
EXPECT_TRUE(session2->is_active());
@@ -647,7 +647,7 @@ TEST_F(SpdySessionSpdy2Test, CloseIdleSessions) {
EXPECT_FALSE(session2->IsClosed());
// Make 2 not active
- session2->CloseCreatedStream(spdy_stream2, OK);
+ session2->CloseCreatedStream(spdy_stream2.get(), OK);
EXPECT_FALSE(session2->is_active());
EXPECT_FALSE(session2->IsClosed());
@@ -735,7 +735,7 @@ TEST_F(SpdySessionSpdy2Test, OnSettings) {
BoundNetLog(),
callback1.callback()));
- StreamReleaserCallback stream_releaser(session, spdy_stream1);
+ StreamReleaserCallback stream_releaser(session.get(), spdy_stream1.get());
ASSERT_EQ(ERR_IO_PENDING,
session->CreateStream(url,
« no previous file with comments | « net/spdy/spdy_session_pool.cc ('k') | net/spdy/spdy_session_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698