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

Unified Diff: net/quic/quic_spdy_stream_test.cc

Issue 1541263002: Landing Recent QUIC changes until 12/18/2015 13:57 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: replace -1 with 0xff for InvalidPathId Created 5 years 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_spdy_stream.cc ('k') | net/quic/quic_unacked_packet_map_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_spdy_stream_test.cc
diff --git a/net/quic/quic_spdy_stream_test.cc b/net/quic/quic_spdy_stream_test.cc
index d12969b22667ca95ca572679513cd89f2b497282..95d31a8f4c430c9fa03f6784fdbe0b6e217854cd 100644
--- a/net/quic/quic_spdy_stream_test.cc
+++ b/net/quic/quic_spdy_stream_test.cc
@@ -536,8 +536,8 @@ TEST_P(QuicSpdyStreamTest, StreamFlowControlViolation) {
string body;
GenerateBody(&body, kWindow + 1);
QuicStreamFrame frame(kClientDataStreamId1, false, 0, StringPiece(body));
- EXPECT_CALL(*connection_,
- SendConnectionClose(QUIC_FLOW_CONTROL_RECEIVED_TOO_MUCH_DATA));
+ EXPECT_CALL(*connection_, SendConnectionCloseWithDetails(
+ QUIC_FLOW_CONTROL_RECEIVED_TOO_MUCH_DATA, _));
stream_->OnStreamFrame(frame);
}
@@ -587,8 +587,8 @@ TEST_P(QuicSpdyStreamTest, ConnectionFlowControlViolation) {
EXPECT_LT(body.size(), kStreamWindow);
QuicStreamFrame frame(kClientDataStreamId1, false, 0, StringPiece(body));
- EXPECT_CALL(*connection_,
- SendConnectionClose(QUIC_FLOW_CONTROL_RECEIVED_TOO_MUCH_DATA));
+ EXPECT_CALL(*connection_, SendConnectionCloseWithDetails(
+ QUIC_FLOW_CONTROL_RECEIVED_TOO_MUCH_DATA, _));
stream_->OnStreamFrame(frame);
}
@@ -660,8 +660,8 @@ TEST_P(QuicSpdyStreamTest, ReceivingTrailersWithoutFin) {
string trailers = SpdyUtils::SerializeUncompressedHeaders(trailers_block);
stream_->OnStreamHeaders(trailers);
- EXPECT_CALL(*connection_,
- SendConnectionClose(QUIC_INVALID_HEADERS_STREAM_DATA))
+ EXPECT_CALL(*connection_, SendConnectionCloseWithDetails(
+ QUIC_INVALID_HEADERS_STREAM_DATA, _))
.Times(1);
stream_->OnStreamHeadersComplete(/*fin=*/false, trailers.size());
}
@@ -681,8 +681,8 @@ TEST_P(QuicSpdyStreamTest, ReceivingTrailersAfterFin) {
string trailers = SpdyUtils::SerializeUncompressedHeaders(trailers_block);
stream_->OnStreamHeaders(trailers);
- EXPECT_CALL(*connection_,
- SendConnectionClose(QUIC_INVALID_HEADERS_STREAM_DATA))
+ EXPECT_CALL(*connection_, SendConnectionCloseWithDetails(
+ QUIC_INVALID_HEADERS_STREAM_DATA, _))
.Times(1);
stream_->OnStreamHeadersComplete(/*fin=*/true, trailers.size());
}
@@ -706,8 +706,8 @@ TEST_P(QuicSpdyStreamTest, ReceivingTrailersAfterBodyWithFin) {
string trailers = SpdyUtils::SerializeUncompressedHeaders(trailers_block);
stream_->OnStreamHeaders(trailers);
- EXPECT_CALL(*connection_,
- SendConnectionClose(QUIC_INVALID_HEADERS_STREAM_DATA))
+ EXPECT_CALL(*connection_, SendConnectionCloseWithDetails(
+ QUIC_INVALID_HEADERS_STREAM_DATA, _))
.Times(1);
stream_->OnStreamHeadersComplete(/*fin=*/true, trailers.size());
}
« no previous file with comments | « net/quic/quic_spdy_stream.cc ('k') | net/quic/quic_unacked_packet_map_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698