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

Side by Side Diff: net/quic/reliable_quic_stream_test.cc

Issue 102313005: Remove the is_server argument from the QuicSession constructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_stream_sequencer_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/reliable_quic_stream.h" 5 #include "net/quic/reliable_quic_stream.h"
6 6
7 #include "net/quic/quic_ack_notifier.h" 7 #include "net/quic/quic_ack_notifier.h"
8 #include "net/quic/quic_connection.h" 8 #include "net/quic/quic_connection.h"
9 #include "net/quic/quic_spdy_compressor.h" 9 #include "net/quic/quic_spdy_compressor.h"
10 #include "net/quic/quic_spdy_decompressor.h" 10 #include "net/quic/quic_spdy_decompressor.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 "Rgj3RWUoPumQVCxtSOBdX0GlJOEcDTNCzQIm9BSfetog_eP_TfYubKudt5eMsXmN6" 89 "Rgj3RWUoPumQVCxtSOBdX0GlJOEcDTNCzQIm9BSfetog_eP_TfYubKudt5eMsXmN6"
90 "QnyXHeGeK2UINUzJ-D30AFcpqYgH9_1BvYSpi7fc7_ydBU8TaD8ZRxvtnzXqj0RfG" 90 "QnyXHeGeK2UINUzJ-D30AFcpqYgH9_1BvYSpi7fc7_ydBU8TaD8ZRxvtnzXqj0RfG"
91 "tuHghmv3aD-uzSYJ75XDdzKdizZ86IG6Fbn1XFhYZM-fbHhm3mVEXnyRW4ZuNOLFk" 91 "tuHghmv3aD-uzSYJ75XDdzKdizZ86IG6Fbn1XFhYZM-fbHhm3mVEXnyRW4ZuNOLFk"
92 "Fas6LMcVC6Q8QLlHYbXBpdNFuGbuZGUnav5C-2I_-46lL0NGg3GewxGKGHvHEfoyn" 92 "Fas6LMcVC6Q8QLlHYbXBpdNFuGbuZGUnav5C-2I_-46lL0NGg3GewxGKGHvHEfoyn"
93 "EFFlEYHsBQ98rXImL8ySDycdLEFvBPdtctPmWCfTxwmoSMLHU2SCVDhbqMWU5b0yr" 93 "EFFlEYHsBQ98rXImL8ySDycdLEFvBPdtctPmWCfTxwmoSMLHU2SCVDhbqMWU5b0yr"
94 "JBCScs_ejbKaqBDoB7ZGxTvqlrB__2ZmnHHjCr8RgMRtKNtIeuZAo "; 94 "JBCScs_ejbKaqBDoB7ZGxTvqlrB__2ZmnHHjCr8RgMRtKNtIeuZAo ";
95 } 95 }
96 96
97 void Initialize(bool stream_should_process_data) { 97 void Initialize(bool stream_should_process_data) {
98 connection_ = new StrictMock<MockConnection>(kIsServer); 98 connection_ = new StrictMock<MockConnection>(kIsServer);
99 session_.reset(new StrictMock<MockSession>(connection_, kIsServer)); 99 session_.reset(new StrictMock<MockSession>(connection_));
100 stream_.reset(new TestStream(kStreamId, session_.get(), 100 stream_.reset(new TestStream(kStreamId, session_.get(),
101 stream_should_process_data)); 101 stream_should_process_data));
102 stream2_.reset(new TestStream(kStreamId + 2, session_.get(), 102 stream2_.reset(new TestStream(kStreamId + 2, session_.get(),
103 stream_should_process_data)); 103 stream_should_process_data));
104 compressor_.reset(new QuicSpdyCompressor()); 104 compressor_.reset(new QuicSpdyCompressor());
105 decompressor_.reset(new QuicSpdyDecompressor); 105 decompressor_.reset(new QuicSpdyDecompressor);
106 write_blocked_list_ = 106 write_blocked_list_ =
107 QuicSessionPeer::GetWriteblockedStreams(session_.get()); 107 QuicSessionPeer::GetWriteblockedStreams(session_.get());
108 } 108 }
109 109
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 EXPECT_EQ(QUIC_STREAM_NO_ERROR, stream_->stream_error()); 221 EXPECT_EQ(QUIC_STREAM_NO_ERROR, stream_->stream_error());
222 EXPECT_EQ(QUIC_NO_ERROR, stream_->connection_error()); 222 EXPECT_EQ(QUIC_NO_ERROR, stream_->connection_error());
223 stream_->OnConnectionClosed(QUIC_INTERNAL_ERROR, false); 223 stream_->OnConnectionClosed(QUIC_INTERNAL_ERROR, false);
224 EXPECT_EQ(QUIC_STREAM_NO_ERROR, stream_->stream_error()); 224 EXPECT_EQ(QUIC_STREAM_NO_ERROR, stream_->stream_error());
225 EXPECT_EQ(QUIC_NO_ERROR, stream_->connection_error()); 225 EXPECT_EQ(QUIC_NO_ERROR, stream_->connection_error());
226 } 226 }
227 227
228 } // namespace 228 } // namespace
229 } // namespace test 229 } // namespace test
230 } // namespace net 230 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_sequencer_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698