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

Unified Diff: net/socket/ssl_client_socket_pool_unittest.cc

Issue 1298253002: Remove reference counting from HttpNetworkSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 5 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/quic/quic_network_transaction_unittest.cc ('k') | net/spdy/spdy_http_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_pool_unittest.cc
diff --git a/net/socket/ssl_client_socket_pool_unittest.cc b/net/socket/ssl_client_socket_pool_unittest.cc
index 48d667025b5cf6ef8efd9cd860f3a2f586455b3d..9bbe659d421e95516f9e29401f1fd685aa8117e2 100644
--- a/net/socket/ssl_client_socket_pool_unittest.cc
+++ b/net/socket/ssl_client_socket_pool_unittest.cc
@@ -185,7 +185,7 @@ class SSLClientSocketPoolTest
const scoped_refptr<SSLConfigService> ssl_config_service_;
const scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory_;
HttpServerPropertiesImpl http_server_properties_;
- const scoped_refptr<HttpNetworkSession> session_;
+ const scoped_ptr<HttpNetworkSession> session_;
scoped_refptr<TransportSocketParams> direct_transport_socket_params_;
MockTransportClientSocketPool transport_socket_pool_;
@@ -828,7 +828,7 @@ TEST_P(SSLClientSocketPoolTest, IPPooling) {
CreatePool(true /* tcp pool */, false, false);
base::WeakPtr<SpdySession> spdy_session =
- CreateSecureSpdySession(session_, test_hosts[0].key, BoundNetLog());
+ CreateSecureSpdySession(session_.get(), test_hosts[0].key, BoundNetLog());
EXPECT_TRUE(
HasSpdySession(session_->spdy_session_pool(), test_hosts[0].key));
@@ -885,7 +885,7 @@ void SSLClientSocketPoolTest::TestIPPoolingDisabled(
CreatePool(true /* tcp pool */, false, false);
base::WeakPtr<SpdySession> spdy_session =
- CreateSecureSpdySession(session_, test_hosts[0].key, BoundNetLog());
+ CreateSecureSpdySession(session_.get(), test_hosts[0].key, BoundNetLog());
EXPECT_TRUE(
HasSpdySession(session_->spdy_session_pool(), test_hosts[0].key));
« no previous file with comments | « net/quic/quic_network_transaction_unittest.cc ('k') | net/spdy/spdy_http_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698