| 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/reliable_quic_stream.h" | 5 #include "net/quic/reliable_quic_stream.h" |
| 6 | 6 |
| 7 #include "net/quic/quic_connection.h" | 7 #include "net/quic/quic_connection.h" |
| 8 #include "net/quic/quic_flags.h" | 8 #include "net/quic/quic_flags.h" |
| 9 #include "net/quic/quic_utils.h" | 9 #include "net/quic/quic_utils.h" |
| 10 #include "net/quic/quic_write_blocked_list.h" | 10 #include "net/quic/quic_write_blocked_list.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 void set_initial_flow_control_window_bytes(uint32 val) { | 134 void set_initial_flow_control_window_bytes(uint32 val) { |
| 135 initial_flow_control_window_bytes_ = val; | 135 initial_flow_control_window_bytes_ = val; |
| 136 } | 136 } |
| 137 | 137 |
| 138 bool HasWriteBlockedStreams() { | 138 bool HasWriteBlockedStreams() { |
| 139 return write_blocked_list_->HasWriteBlockedCryptoOrHeadersStream() || | 139 return write_blocked_list_->HasWriteBlockedCryptoOrHeadersStream() || |
| 140 write_blocked_list_->HasWriteBlockedDataStreams(); | 140 write_blocked_list_->HasWriteBlockedDataStreams(); |
| 141 } | 141 } |
| 142 | 142 |
| 143 protected: | 143 protected: |
| 144 MockHelper helper_; | 144 MockConnectionHelper helper_; |
| 145 MockConnection* connection_; | 145 MockConnection* connection_; |
| 146 scoped_ptr<MockQuicSpdySession> session_; | 146 scoped_ptr<MockQuicSpdySession> session_; |
| 147 TestStream* stream_; | 147 TestStream* stream_; |
| 148 SpdyHeaderBlock headers_; | 148 SpdyHeaderBlock headers_; |
| 149 QuicWriteBlockedList* write_blocked_list_; | 149 QuicWriteBlockedList* write_blocked_list_; |
| 150 uint32 initial_flow_control_window_bytes_; | 150 uint32 initial_flow_control_window_bytes_; |
| 151 QuicTime::Delta zero_; | 151 QuicTime::Delta zero_; |
| 152 QuicVersionVector supported_versions_; | 152 QuicVersionVector supported_versions_; |
| 153 const QuicStreamId kTestStreamId = 5u; | 153 const QuicStreamId kTestStreamId = 5u; |
| 154 }; | 154 }; |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 EXPECT_TRUE(stream_->HasFinalReceivedByteOffset()); | 742 EXPECT_TRUE(stream_->HasFinalReceivedByteOffset()); |
| 743 } else { | 743 } else { |
| 744 EXPECT_FALSE(stream_->fin_received()); | 744 EXPECT_FALSE(stream_->fin_received()); |
| 745 EXPECT_FALSE(stream_->HasFinalReceivedByteOffset()); | 745 EXPECT_FALSE(stream_->HasFinalReceivedByteOffset()); |
| 746 } | 746 } |
| 747 } | 747 } |
| 748 | 748 |
| 749 } // namespace | 749 } // namespace |
| 750 } // namespace test | 750 } // namespace test |
| 751 } // namespace net | 751 } // namespace net |
| OLD | NEW |