Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Side by Side Diff: net/quic/reliable_quic_stream_test.cc

Issue 1471573002: Replacing EffectivePriority with Priority for QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@107595145
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/reliable_quic_stream.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 EffectivePriority() const override { 63 QuicPriority Priority() const override {
64 return QuicUtils::HighestPriority(); 64 return QuicUtils::HighestPriority();
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_;
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « net/quic/reliable_quic_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698