summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_session_unittest.cc
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-18 19:05:18 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-18 19:05:18 +0000
commit78bf2aa62eb081644cf3b76bb36e95de1a730658 (patch)
tree26b891501661a39aee029106d6ace10620b81aa1 /net/spdy/spdy_session_unittest.cc
parent00f71870f67dcb264c0eabe3060fd06a3c9259af (diff)
downloadchromium_src-78bf2aa62eb081644cf3b76bb36e95de1a730658.zip
chromium_src-78bf2aa62eb081644cf3b76bb36e95de1a730658.tar.gz
chromium_src-78bf2aa62eb081644cf3b76bb36e95de1a730658.tar.bz2
Revert 50215 because of crashes - Refactor SpdyStream to get HTTP specific out of the interface and members.
Add SpdyStream::Delegate interface and SpdyHttpStream implements SpdyStream::Delegate. SpdyHeaderBlock<>HTTP request/response conversion functions moved from spdy_session.cc to spdy_http_stream.cc. All interface between SpdySession and SpdyStream uses SpdyHeaderBlock instead of HttpRequestInfo,HttpResponseInfo. BUG=42320,46925 TEST=none Review URL: http://codereview.chromium.org/2667002 TBR=ukai@chromium.org Review URL: http://codereview.chromium.org/2827015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50268 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_session_unittest.cc')
-rw-r--r--net/spdy/spdy_session_unittest.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/spdy/spdy_session_unittest.cc b/net/spdy/spdy_session_unittest.cc
index 67dcb94..1cefb49 100644
--- a/net/spdy/spdy_session_unittest.cc
+++ b/net/spdy/spdy_session_unittest.cc
@@ -179,7 +179,7 @@ static const uint8 kPush[] = {
} // namespace
-TEST_F(SpdySessionTest, GetActivePushStream) {
+TEST_F(SpdySessionTest, GetPushStream) {
SpdySessionTest::TurnOffCompression();
SessionDependencies session_deps;
@@ -216,9 +216,9 @@ TEST_F(SpdySessionTest, GetActivePushStream) {
// No push streams should exist in the beginning.
std::string test_push_path = "/foo.js";
- scoped_refptr<SpdyStream> first_stream = session->GetActivePushStream(
+ scoped_refptr<SpdyHttpStream> first_stream = session->GetPushStream(
test_push_path);
- EXPECT_EQ(static_cast<SpdyStream*>(NULL), first_stream.get());
+ EXPECT_EQ(static_cast<SpdyHttpStream*>(NULL), first_stream.get());
// Read in the data which contains a server-issued SYN_STREAM.
TCPSocketParams tcp_params(test_host_port_pair, MEDIUM, GURL(), false);
@@ -227,14 +227,14 @@ TEST_F(SpdySessionTest, GetActivePushStream) {
MessageLoop::current()->RunAllPending();
// An unpushed path should not work.
- scoped_refptr<SpdyStream> unpushed_stream = session->GetActivePushStream(
+ scoped_refptr<SpdyHttpStream> unpushed_stream = session->GetPushStream(
"/unpushed_path");
- EXPECT_EQ(static_cast<SpdyStream*>(NULL), unpushed_stream.get());
+ EXPECT_EQ(static_cast<SpdyHttpStream*>(NULL), unpushed_stream.get());
// The pushed path should be found.
- scoped_refptr<SpdyStream> second_stream = session->GetActivePushStream(
+ scoped_refptr<SpdyHttpStream> second_stream = session->GetPushStream(
test_push_path);
- ASSERT_NE(static_cast<SpdyStream*>(NULL), second_stream.get());
+ ASSERT_NE(static_cast<SpdyHttpStream*>(NULL), second_stream.get());
EXPECT_EQ(test_push_path, second_stream->path());
EXPECT_EQ(2U, second_stream->stream_id());
EXPECT_EQ(0, second_stream->priority());