| 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_spdy_stream.h" | 5 #include "net/quic/quic_spdy_stream.h" |
| 6 | 6 |
| 7 #include "net/quic/quic_connection.h" | 7 #include "net/quic/quic_connection.h" |
| 8 #include "net/quic/quic_utils.h" | 8 #include "net/quic/quic_utils.h" |
| 9 #include "net/quic/quic_write_blocked_list.h" | 9 #include "net/quic/quic_write_blocked_list.h" |
| 10 #include "net/quic/spdy_utils.h" | 10 #include "net/quic/spdy_utils.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 session_.reset(new testing::StrictMock<MockQuicSpdySession>(connection_)); | 96 session_.reset(new testing::StrictMock<MockQuicSpdySession>(connection_)); |
| 97 stream_.reset(new TestStream(kClientDataStreamId1, session_.get(), | 97 stream_.reset(new TestStream(kClientDataStreamId1, session_.get(), |
| 98 stream_should_process_data)); | 98 stream_should_process_data)); |
| 99 stream2_.reset(new TestStream(kClientDataStreamId2, session_.get(), | 99 stream2_.reset(new TestStream(kClientDataStreamId2, session_.get(), |
| 100 stream_should_process_data)); | 100 stream_should_process_data)); |
| 101 write_blocked_list_ = | 101 write_blocked_list_ = |
| 102 QuicSessionPeer::GetWriteBlockedStreams(session_.get()); | 102 QuicSessionPeer::GetWriteBlockedStreams(session_.get()); |
| 103 } | 103 } |
| 104 | 104 |
| 105 protected: | 105 protected: |
| 106 MockHelper helper_; | 106 MockConnectionHelper helper_; |
| 107 MockConnection* connection_; | 107 MockConnection* connection_; |
| 108 scoped_ptr<MockQuicSpdySession> session_; | 108 scoped_ptr<MockQuicSpdySession> session_; |
| 109 scoped_ptr<TestStream> stream_; | 109 scoped_ptr<TestStream> stream_; |
| 110 scoped_ptr<TestStream> stream2_; | 110 scoped_ptr<TestStream> stream2_; |
| 111 SpdyHeaderBlock headers_; | 111 SpdyHeaderBlock headers_; |
| 112 QuicWriteBlockedList* write_blocked_list_; | 112 QuicWriteBlockedList* write_blocked_list_; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 INSTANTIATE_TEST_CASE_P(Tests, QuicSpdyStreamTest, | 115 INSTANTIATE_TEST_CASE_P(Tests, QuicSpdyStreamTest, |
| 116 ::testing::ValuesIn(QuicSupportedVersions())); | 116 ::testing::ValuesIn(QuicSupportedVersions())); |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 EXPECT_CALL(*connection_, SendBlocked(kClientDataStreamId1)).Times(0); | 600 EXPECT_CALL(*connection_, SendBlocked(kClientDataStreamId1)).Times(0); |
| 601 EXPECT_CALL(*session_, WritevData(kClientDataStreamId1, _, _, _, _, _)) | 601 EXPECT_CALL(*session_, WritevData(kClientDataStreamId1, _, _, _, _, _)) |
| 602 .WillOnce(Return(QuicConsumedData(0, fin))); | 602 .WillOnce(Return(QuicConsumedData(0, fin))); |
| 603 | 603 |
| 604 stream_->WriteOrBufferData(body, fin, nullptr); | 604 stream_->WriteOrBufferData(body, fin, nullptr); |
| 605 } | 605 } |
| 606 | 606 |
| 607 } // namespace | 607 } // namespace |
| 608 } // namespace test | 608 } // namespace test |
| 609 } // namespace net | 609 } // namespace net |
| OLD | NEW |