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

Unified Diff: net/spdy/spdy_stream_spdy2_unittest.cc

Issue 15701009: [SPDY] Add a SpdyStreamType enum and use it for SpdyStream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CHECK -> DCHECK Created 7 years, 7 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_stream_spdy2_unittest.cc
diff --git a/net/spdy/spdy_stream_spdy2_unittest.cc b/net/spdy/spdy_stream_spdy2_unittest.cc
index 953d8ee8c326faebf795933a296b9e17fefb414a..e6689f137deb7acfb435fb8c143ea0dbf8b480c3 100644
--- a/net/spdy/spdy_stream_spdy2_unittest.cc
+++ b/net/spdy/spdy_stream_spdy2_unittest.cc
@@ -118,7 +118,8 @@ TEST_F(SpdyStreamSpdy2Test, SendDataAfterOpen) {
InitializeSpdySession(session, host_port_pair_);
base::WeakPtr<SpdyStream> stream =
- CreateStreamSynchronously(session, url, LOWEST, BoundNetLog());
+ CreateStreamSynchronously(
+ SPDY_BIDIRECTIONAL_STREAM, session, url, LOWEST, BoundNetLog());
ASSERT_TRUE(stream.get() != NULL);
StreamDelegateSendImmediate delegate(stream, kPostBodyStringPiece);
@@ -161,12 +162,12 @@ TEST_F(SpdyStreamSpdy2Test, PushedStream) {
BoundNetLog net_log;
// Conjure up a stream.
- SpdyStream stream(spdy_session,
+ SpdyStream stream(SPDY_PUSH_STREAM,
+ spdy_session,
std::string(),
DEFAULT_PRIORITY,
kSpdyStreamInitialWindowSize,
kSpdyStreamInitialWindowSize,
- true,
net_log);
stream.set_stream_id(2);
EXPECT_FALSE(stream.response_received());
@@ -231,7 +232,8 @@ TEST_F(SpdyStreamSpdy2Test, StreamError) {
InitializeSpdySession(session, host_port_pair_);
base::WeakPtr<SpdyStream> stream =
- CreateStreamSynchronously(session, url, LOWEST, log.bound());
+ CreateStreamSynchronously(
+ SPDY_BIDIRECTIONAL_STREAM, session, url, LOWEST, log.bound());
ASSERT_TRUE(stream.get() != NULL);
StreamDelegateSendImmediate delegate(stream, kPostBodyStringPiece);
@@ -314,7 +316,8 @@ TEST_F(SpdyStreamSpdy2Test, SendLargeDataAfterOpenRequestResponse) {
InitializeSpdySession(session, host_port_pair_);
base::WeakPtr<SpdyStream> stream =
- CreateStreamSynchronously(session, url, LOWEST, BoundNetLog());
+ CreateStreamSynchronously(
+ SPDY_REQUEST_RESPONSE_STREAM, session, url, LOWEST, BoundNetLog());
ASSERT_TRUE(stream.get() != NULL);
std::string body_data(3 * kMaxSpdyFrameChunkSize, 'x');
@@ -377,7 +380,8 @@ TEST_F(SpdyStreamSpdy2Test, SendLargeDataAfterOpenBidirectional) {
InitializeSpdySession(session, host_port_pair_);
base::WeakPtr<SpdyStream> stream =
- CreateStreamSynchronously(session, url, LOWEST, BoundNetLog());
+ CreateStreamSynchronously(
+ SPDY_BIDIRECTIONAL_STREAM, session, url, LOWEST, BoundNetLog());
ASSERT_TRUE(stream.get() != NULL);
std::string body_data(3 * kMaxSpdyFrameChunkSize, 'x');

Powered by Google App Engine
This is Rietveld 408576698