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

Unified Diff: net/quic/quic_end_to_end_unittest.cc

Issue 504953003: Remove implicit conversions from scoped_refptr to T* in net/quic/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/quic/quic_crypto_server_stream_test.cc ('k') | net/quic/quic_http_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_end_to_end_unittest.cc
diff --git a/net/quic/quic_end_to_end_unittest.cc b/net/quic/quic_end_to_end_unittest.cc
index 89622b0483d3af9d7a60d7b295b400e4b64940c3..00a3adea6331be0c05baf224a90026ef42973296 100644
--- a/net/quic/quic_end_to_end_unittest.cc
+++ b/net/quic/quic_end_to_end_unittest.cc
@@ -54,7 +54,7 @@ class TestTransactionFactory : public HttpTransactionFactory {
// HttpTransactionFactory methods
virtual int CreateTransaction(RequestPriority priority,
scoped_ptr<HttpTransaction>* trans) OVERRIDE {
- trans->reset(new HttpNetworkTransaction(priority, session_));
+ trans->reset(new HttpNetworkTransaction(priority, session_.get()));
return OK;
}
@@ -62,9 +62,7 @@ class TestTransactionFactory : public HttpTransactionFactory {
return NULL;
}
- virtual HttpNetworkSession* GetSession() OVERRIDE {
- return session_;
- };
+ virtual HttpNetworkSession* GetSession() OVERRIDE { return session_.get(); };
private:
scoped_refptr<HttpNetworkSession> session_;
« no previous file with comments | « net/quic/quic_crypto_server_stream_test.cc ('k') | net/quic/quic_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698