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

Unified Diff: net/spdy/spdy_network_transaction_spdy3_unittest.cc

Issue 10559036: Added URLRequestContext to constructor for URLRequest. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated unittests Created 8 years, 6 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_spdy3_unittest.cc
diff --git a/net/spdy/spdy_network_transaction_spdy3_unittest.cc b/net/spdy/spdy_network_transaction_spdy3_unittest.cc
index 56f5fd56c62b9a96e0ecb20842dc4a876516fb08..4eca577d18eed7e27d451e4c65ce983b9229e8fc 100644
--- a/net/spdy/spdy_network_transaction_spdy3_unittest.cc
+++ b/net/spdy/spdy_network_transaction_spdy3_unittest.cc
@@ -2768,8 +2768,8 @@ TEST_P(SpdyNetworkTransactionSpdy3Test, RedirectGetRequest) {
TestDelegate d;
{
SpdyURLRequestContext spdy_url_request_context;
- net::URLRequest r(GURL("http://www.google.com/"), &d);
- r.set_context(&spdy_url_request_context);
+ net::URLRequest r(
+ GURL("http://www.google.com/"), &d, &spdy_url_request_context);
spdy_url_request_context.socket_factory().
AddSocketDataProvider(data.get());
spdy_url_request_context.socket_factory().
@@ -3026,8 +3026,8 @@ TEST_P(SpdyNetworkTransactionSpdy3Test, RedirectServerPush) {
TestDelegate d2;
SpdyURLRequestContext spdy_url_request_context;
{
- net::URLRequest r(GURL("http://www.google.com/"), &d);
- r.set_context(&spdy_url_request_context);
+ net::URLRequest r(
+ GURL("http://www.google.com/"), &d, &spdy_url_request_context);
spdy_url_request_context.socket_factory().
AddSocketDataProvider(data.get());
@@ -3038,8 +3038,8 @@ TEST_P(SpdyNetworkTransactionSpdy3Test, RedirectServerPush) {
std::string contents("hello!");
EXPECT_EQ(contents, d.data_received());
- net::URLRequest r2(GURL("http://www.google.com/foo.dat"), &d2);
- r2.set_context(&spdy_url_request_context);
+ net::URLRequest r2(
+ GURL("http://www.google.com/foo.dat"), &d2, &spdy_url_request_context);
spdy_url_request_context.socket_factory().
AddSocketDataProvider(data2.get());

Powered by Google App Engine
This is Rietveld 408576698