Index: net/spdy/spdy_http_stream_unittest.cc |
diff --git a/net/spdy/spdy_http_stream_unittest.cc b/net/spdy/spdy_http_stream_unittest.cc |
index a2fdf58fa01d3e502d657d3df5c077d9c0d8e53a..5fab0e2c54377c1e773f3756b83992f98f0b6f8d 100644 |
--- a/net/spdy/spdy_http_stream_unittest.cc |
+++ b/net/spdy/spdy_http_stream_unittest.cc |
@@ -115,14 +115,11 @@ TEST_F(SpdyHttpStreamTest, SendRequest) { |
request.url = GURL("http://www.google.com/"); |
TestCompletionCallback callback; |
HttpResponseInfo response; |
- |
- scoped_refptr<SpdyStream> stream; |
+ scoped_ptr<SpdyHttpStream> http_stream(new SpdyHttpStream()); |
ASSERT_EQ( |
OK, |
- session->CreateStream(request.url, HIGHEST, &stream, BoundNetLog())); |
- |
- scoped_ptr<SpdyHttpStream> http_stream(new SpdyHttpStream(stream.get())); |
- http_stream->InitializeRequest(request, base::Time::Now(), NULL); |
+ http_stream->InitializeStream(session, request, BoundNetLog(), NULL)); |
+ http_stream->InitializeRequest(base::Time::Now(), NULL); |
EXPECT_EQ(ERR_IO_PENDING, |
http_stream->SendRequest(&response, &callback)); |