OLD | NEW |
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/quic_data_stream.h" | 5 #include "net/quic/quic_data_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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 "Rgj3RWUoPumQVCxtSOBdX0GlJOEcDTNCzQIm9BSfetog_eP_TfYubKudt5eMsXmN6" | 84 "Rgj3RWUoPumQVCxtSOBdX0GlJOEcDTNCzQIm9BSfetog_eP_TfYubKudt5eMsXmN6" |
85 "QnyXHeGeK2UINUzJ-D30AFcpqYgH9_1BvYSpi7fc7_ydBU8TaD8ZRxvtnzXqj0RfG" | 85 "QnyXHeGeK2UINUzJ-D30AFcpqYgH9_1BvYSpi7fc7_ydBU8TaD8ZRxvtnzXqj0RfG" |
86 "tuHghmv3aD-uzSYJ75XDdzKdizZ86IG6Fbn1XFhYZM-fbHhm3mVEXnyRW4ZuNOLFk" | 86 "tuHghmv3aD-uzSYJ75XDdzKdizZ86IG6Fbn1XFhYZM-fbHhm3mVEXnyRW4ZuNOLFk" |
87 "Fas6LMcVC6Q8QLlHYbXBpdNFuGbuZGUnav5C-2I_-46lL0NGg3GewxGKGHvHEfoyn" | 87 "Fas6LMcVC6Q8QLlHYbXBpdNFuGbuZGUnav5C-2I_-46lL0NGg3GewxGKGHvHEfoyn" |
88 "EFFlEYHsBQ98rXImL8ySDycdLEFvBPdtctPmWCfTxwmoSMLHU2SCVDhbqMWU5b0yr" | 88 "EFFlEYHsBQ98rXImL8ySDycdLEFvBPdtctPmWCfTxwmoSMLHU2SCVDhbqMWU5b0yr" |
89 "JBCScs_ejbKaqBDoB7ZGxTvqlrB__2ZmnHHjCr8RgMRtKNtIeuZAo "; | 89 "JBCScs_ejbKaqBDoB7ZGxTvqlrB__2ZmnHHjCr8RgMRtKNtIeuZAo "; |
90 } | 90 } |
91 | 91 |
92 void Initialize(bool stream_should_process_data) { | 92 void Initialize(bool stream_should_process_data) { |
93 connection_ = new StrictMock<MockConnection>(kIsServer); | 93 connection_ = new StrictMock<MockConnection>(kIsServer); |
94 session_.reset(new StrictMock<MockSession>(connection_, kIsServer)); | 94 session_.reset(new StrictMock<MockSession>(connection_)); |
95 stream_.reset(new TestStream(kStreamId, session_.get(), | 95 stream_.reset(new TestStream(kStreamId, session_.get(), |
96 stream_should_process_data)); | 96 stream_should_process_data)); |
97 stream2_.reset(new TestStream(kStreamId + 2, session_.get(), | 97 stream2_.reset(new TestStream(kStreamId + 2, session_.get(), |
98 stream_should_process_data)); | 98 stream_should_process_data)); |
99 compressor_.reset(new QuicSpdyCompressor()); | 99 compressor_.reset(new QuicSpdyCompressor()); |
100 decompressor_.reset(new QuicSpdyDecompressor); | 100 decompressor_.reset(new QuicSpdyDecompressor); |
101 write_blocked_list_ = | 101 write_blocked_list_ = |
102 QuicSessionPeer::GetWriteblockedStreams(session_.get()); | 102 QuicSessionPeer::GetWriteblockedStreams(session_.get()); |
103 } | 103 } |
104 | 104 |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 EXPECT_CALL(*connection_, SendConnectionClose(QUIC_INVALID_HEADER_ID)) | 443 EXPECT_CALL(*connection_, SendConnectionClose(QUIC_INVALID_HEADER_ID)) |
444 .Times(0); | 444 .Times(0); |
445 QuicStreamFrame frame2(stream_->id(), false, compressed_headers.length(), | 445 QuicStreamFrame frame2(stream_->id(), false, compressed_headers.length(), |
446 MakeIOVector("body data")); | 446 MakeIOVector("body data")); |
447 stream_->OnStreamFrame(frame2); | 447 stream_->OnStreamFrame(frame2); |
448 } | 448 } |
449 | 449 |
450 } // namespace | 450 } // namespace |
451 } // namespace test | 451 } // namespace test |
452 } // namespace net | 452 } // namespace net |
OLD | NEW |