Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / net / tools / quic / quic_spdy_server_stream_test.cc
index 7fb9375..7d67b2e 100644 (file)
@@ -81,6 +81,12 @@ class QuicSpdyServerStreamTest : public ::testing::TestWithParam<QuicVersion> {
     request_headers.ReplaceOrAppendHeader("content-length", "11");
 
     headers_string_ = SpdyUtils::SerializeRequestHeaders(request_headers);
+
+    // New streams rely on having the peer's flow control receive window
+    // negotiated in the config.
+    const uint32 kInitialWindow = 10 * kMaxPacketSize;
+    session_.config()->SetInitialFlowControlWindowToSend(
+        kInitialWindow);
     stream_.reset(new QuicSpdyServerStreamPeer(3, &session_));
   }