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

Unified Diff: net/quic/reliable_quic_stream_test.cc

Issue 1975483003: Fixes use-after-free bug in QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Removes use of QuicHeaderList from merge CL. Created 4 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_spdy_stream.cc ('k') | net/quic/test_tools/quic_session_peer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/reliable_quic_stream_test.cc
diff --git a/net/quic/reliable_quic_stream_test.cc b/net/quic/reliable_quic_stream_test.cc
index 58a99d38d80fcaa781b3911f09d24e34ec6211b5..ea75789271b25b378cb17ea1aeece8dede292bd2 100644
--- a/net/quic/reliable_quic_stream_test.cc
+++ b/net/quic/reliable_quic_stream_test.cc
@@ -105,7 +105,7 @@ class ReliableQuicStreamTest : public ::testing::TestWithParam<bool> {
void Initialize(bool stream_should_process_data) {
connection_ = new StrictMock<MockConnection>(
&helper_, Perspective::IS_SERVER, supported_versions_);
- session_.reset(new StrictMock<MockQuicSpdySession>(connection_));
+ session_.reset(new StrictMock<MockQuicSession>(connection_));
// New streams rely on having the peer's flow control receive window
// negotiated in the config.
@@ -149,7 +149,7 @@ class ReliableQuicStreamTest : public ::testing::TestWithParam<bool> {
protected:
MockConnectionHelper helper_;
MockConnection* connection_;
- scoped_ptr<MockQuicSpdySession> session_;
+ scoped_ptr<MockQuicSession> session_;
TestStream* stream_;
SpdyHeaderBlock headers_;
QuicWriteBlockedList* write_blocked_list_;
@@ -643,7 +643,7 @@ TEST_F(ReliableQuicStreamTest, EarlyResponseFinHandling) {
Initialize(kShouldProcessData);
EXPECT_CALL(*connection_, CloseConnection(_, _, _)).Times(0);
EXPECT_CALL(*session_, WritevData(_, _, _, _, _))
- .WillRepeatedly(Invoke(MockQuicSpdySession::ConsumeAllData));
+ .WillRepeatedly(Invoke(MockQuicSession::ConsumeAllData));
// Receive data for the request.
QuicStreamFrame frame1(stream_->id(), false, 0, StringPiece("Start"));
« no previous file with comments | « net/quic/quic_spdy_stream.cc ('k') | net/quic/test_tools/quic_session_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698