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

Unified Diff: net/spdy/spdy_network_transaction_spdy2_unittest.cc

Issue 10299002: Stop refcounting URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fixes Created 8 years, 8 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
Index: net/spdy/spdy_network_transaction_spdy2_unittest.cc
diff --git a/net/spdy/spdy_network_transaction_spdy2_unittest.cc b/net/spdy/spdy_network_transaction_spdy2_unittest.cc
index e896416342d3ab0c04cdc10878aa193a9bdf263a..777ec52544ef29220be61bfd03c1621408c20c32 100644
--- a/net/spdy/spdy_network_transaction_spdy2_unittest.cc
+++ b/net/spdy/spdy_network_transaction_spdy2_unittest.cc
@@ -2452,12 +2452,11 @@ TEST_P(SpdyNetworkTransactionSpdy2Test, RedirectServerPush) {
HttpStreamFactory::set_force_spdy_always(true);
TestDelegate d;
TestDelegate d2;
- scoped_refptr<SpdyURLRequestContext> spdy_url_request_context(
- new SpdyURLRequestContext());
+ SpdyURLRequestContext spdy_url_request_context;
{
net::URLRequest r(GURL("http://www.google.com/"), &d);
- r.set_context(spdy_url_request_context);
- spdy_url_request_context->socket_factory().
+ r.set_context(&spdy_url_request_context);
+ spdy_url_request_context.socket_factory().
AddSocketDataProvider(data.get());
r.Start();
@@ -2468,8 +2467,8 @@ TEST_P(SpdyNetworkTransactionSpdy2Test, RedirectServerPush) {
EXPECT_EQ(contents, d.data_received());
net::URLRequest r2(GURL("http://www.google.com/foo.dat"), &d2);
- r2.set_context(spdy_url_request_context);
- spdy_url_request_context->socket_factory().
+ r2.set_context(&spdy_url_request_context);
+ spdy_url_request_context.socket_factory().
AddSocketDataProvider(data2.get());
d2.set_quit_on_redirect(true);

Powered by Google App Engine
This is Rietveld 408576698