| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 10 matching lines...) Expand all Loading... |
| 21 using testing::InSequence; | 21 using testing::InSequence; |
| 22 using testing::Return; | 22 using testing::Return; |
| 23 using testing::SaveArg; | 23 using testing::SaveArg; |
| 24 using testing::StrEq; | 24 using testing::StrEq; |
| 25 using testing::StrictMock; | 25 using testing::StrictMock; |
| 26 | 26 |
| 27 namespace net { | 27 namespace net { |
| 28 namespace test { | 28 namespace test { |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 const QuicGuid kStreamId = 3; | 31 const QuicConnectionId kStreamId = 3; |
| 32 const bool kIsServer = true; | 32 const bool kIsServer = true; |
| 33 const bool kShouldProcessData = true; | 33 const bool kShouldProcessData = true; |
| 34 | 34 |
| 35 class TestStream : public QuicDataStream { | 35 class TestStream : public QuicDataStream { |
| 36 public: | 36 public: |
| 37 TestStream(QuicStreamId id, | 37 TestStream(QuicStreamId id, |
| 38 QuicSession* session, | 38 QuicSession* session, |
| 39 bool should_process_data) | 39 bool should_process_data) |
| 40 : QuicDataStream(id, session), | 40 : QuicDataStream(id, session), |
| 41 should_process_data_(should_process_data) {} | 41 should_process_data_(should_process_data) {} |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 EXPECT_CALL(*connection_, SendConnectionClose(QUIC_INVALID_HEADER_ID)) | 557 EXPECT_CALL(*connection_, SendConnectionClose(QUIC_INVALID_HEADER_ID)) |
| 558 .Times(0); | 558 .Times(0); |
| 559 QuicStreamFrame frame2(stream_->id(), false, compressed_headers.length(), | 559 QuicStreamFrame frame2(stream_->id(), false, compressed_headers.length(), |
| 560 MakeIOVector("body data")); | 560 MakeIOVector("body data")); |
| 561 stream_->OnStreamFrame(frame2); | 561 stream_->OnStreamFrame(frame2); |
| 562 } | 562 } |
| 563 | 563 |
| 564 } // namespace | 564 } // namespace |
| 565 } // namespace test | 565 } // namespace test |
| 566 } // namespace net | 566 } // namespace net |
| OLD | NEW |