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

Unified Diff: net/quic/quic_data_stream_test.cc

Issue 286213002: Refactor: move flow controller from QuicConnection to QuicSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: Created 6 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
« no previous file with comments | « net/quic/quic_crypto_server_stream.cc ('k') | net/quic/quic_http_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_data_stream_test.cc
diff --git a/net/quic/quic_data_stream_test.cc b/net/quic/quic_data_stream_test.cc
index b3c0f4ceb79fa4921165a70816295efaff1fbeb2..09854f2a19c4ddaf9bce5bfb1058b471e9a04354 100644
--- a/net/quic/quic_data_stream_test.cc
+++ b/net/quic/quic_data_stream_test.cc
@@ -435,9 +435,9 @@ TEST_P(QuicDataStreamTest, ConnectionFlowControlWindowUpdate) {
kWindow);
QuicFlowControllerPeer::SetMaxReceiveWindow(stream2_->flow_controller(),
kWindow);
- QuicFlowControllerPeer::SetReceiveWindowOffset(connection_->flow_controller(),
+ QuicFlowControllerPeer::SetReceiveWindowOffset(session_->flow_controller(),
kWindow);
- QuicFlowControllerPeer::SetMaxReceiveWindow(connection_->flow_controller(),
+ QuicFlowControllerPeer::SetMaxReceiveWindow(session_->flow_controller(),
kWindow);
// Supply headers to both streams so that they are happy to receive data.
@@ -463,7 +463,7 @@ TEST_P(QuicDataStreamTest, ConnectionFlowControlWindowUpdate) {
EXPECT_CALL(*connection_, SendWindowUpdate(kStreamId + 2, _)).Times(0);
EXPECT_CALL(*connection_,
SendWindowUpdate(0, QuicFlowControllerPeer::ReceiveWindowOffset(
- connection_->flow_controller()) +
+ session_->flow_controller()) +
1 + kWindow / 2));
QuicStreamFrame frame3(kStreamId, false, (kWindow / 4), MakeIOVector("a"));
stream_->OnStreamFrame(frame3);
@@ -518,7 +518,7 @@ TEST_P(QuicDataStreamTest, ConnectionFlowControlViolation) {
const uint64 kConnectionWindow = 10;
QuicFlowControllerPeer::SetReceiveWindowOffset(stream_->flow_controller(),
kStreamWindow);
- QuicFlowControllerPeer::SetReceiveWindowOffset(connection_->flow_controller(),
+ QuicFlowControllerPeer::SetReceiveWindowOffset(session_->flow_controller(),
kConnectionWindow);
string headers = SpdyUtils::SerializeUncompressedHeaders(headers_);
« no previous file with comments | « net/quic/quic_crypto_server_stream.cc ('k') | net/quic/quic_http_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698