| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 void OnDataAvailable() override {} | 54 void OnDataAvailable() override {} |
| 55 | 55 |
| 56 uint32 ProcessRawData(const char* data, uint32 data_len) { | 56 uint32 ProcessRawData(const char* data, uint32 data_len) { |
| 57 EXPECT_NE(0u, data_len); | 57 EXPECT_NE(0u, data_len); |
| 58 DVLOG(1) << "ProcessData data_len: " << data_len; | 58 DVLOG(1) << "ProcessData data_len: " << data_len; |
| 59 data_ += string(data, data_len); | 59 data_ += string(data, data_len); |
| 60 return should_process_data_ ? data_len : 0; | 60 return should_process_data_ ? data_len : 0; |
| 61 } | 61 } |
| 62 | 62 |
| 63 QuicPriority Priority() const override { | 63 SpdyPriority Priority() const override { |
| 64 return QuicUtils::HighestPriority(); | 64 return net::kHighestPriority; |
| 65 } | 65 } |
| 66 | 66 |
| 67 using ReliableQuicStream::WriteOrBufferData; | 67 using ReliableQuicStream::WriteOrBufferData; |
| 68 using ReliableQuicStream::CloseWriteSide; | 68 using ReliableQuicStream::CloseWriteSide; |
| 69 using ReliableQuicStream::OnClose; | 69 using ReliableQuicStream::OnClose; |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 bool should_process_data_; | 72 bool should_process_data_; |
| 73 string data_; | 73 string data_; |
| 74 }; | 74 }; |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 EXPECT_TRUE(stream_->HasFinalReceivedByteOffset()); | 767 EXPECT_TRUE(stream_->HasFinalReceivedByteOffset()); |
| 768 } else { | 768 } else { |
| 769 EXPECT_FALSE(stream_->fin_received()); | 769 EXPECT_FALSE(stream_->fin_received()); |
| 770 EXPECT_FALSE(stream_->HasFinalReceivedByteOffset()); | 770 EXPECT_FALSE(stream_->HasFinalReceivedByteOffset()); |
| 771 } | 771 } |
| 772 } | 772 } |
| 773 | 773 |
| 774 } // namespace | 774 } // namespace |
| 775 } // namespace test | 775 } // namespace test |
| 776 } // namespace net | 776 } // namespace net |
| OLD | NEW |