diff options
Diffstat (limited to 'net/spdy/spdy_http_stream_spdy2_unittest.cc')
-rw-r--r-- | net/spdy/spdy_http_stream_spdy2_unittest.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/spdy/spdy_http_stream_spdy2_unittest.cc b/net/spdy/spdy_http_stream_spdy2_unittest.cc index 397fe1d..e78c8d7 100644 --- a/net/spdy/spdy_http_stream_spdy2_unittest.cc +++ b/net/spdy/spdy_http_stream_spdy2_unittest.cc @@ -361,11 +361,10 @@ TEST_F(SpdyHttpStreamSpdy2Test, SpdyURLTest) { http_stream->SendRequest(headers, scoped_ptr<UploadDataStream>(), &response, callback.callback())); - SpdyHeaderBlock* spdy_header = - http_stream->stream()->spdy_headers().get(); - EXPECT_TRUE(spdy_header != NULL); - if (spdy_header->find("url") != spdy_header->end()) - EXPECT_EQ("/foo?query=what", spdy_header->find("url")->second); + const SpdyHeaderBlock& spdy_header = + http_stream->stream()->spdy_headers(); + if (spdy_header.find("url") != spdy_header.end()) + EXPECT_EQ("/foo?query=what", spdy_header.find("url")->second); else FAIL() << "No url is set in spdy_header!"; |