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

Unified Diff: net/quic/quic_http_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, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_headers_stream_test.cc ('k') | net/quic/quic_reliable_client_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_http_stream_test.cc
diff --git a/net/quic/quic_http_stream_test.cc b/net/quic/quic_http_stream_test.cc
index 108e9e0d74d42e0cef633492b7c8db410e586580..95d2fd0b185cb6080f9febdfc61b73cef8d4cd75 100644
--- a/net/quic/quic_http_stream_test.cc
+++ b/net/quic/quic_http_stream_test.cc
@@ -823,14 +823,14 @@ TEST_P(QuicHttpStreamTest, Priority) {
QuicHttpStreamPeer::GetQuicReliableClientStream(stream_.get());
DCHECK(reliable_stream);
DCHECK_EQ(QuicWriteBlockedList::kHighestPriority,
- reliable_stream->EffectivePriority());
+ reliable_stream->Priority());
EXPECT_EQ(OK, stream_->SendRequest(headers_, &response_,
callback_.callback()));
// Check that priority has now dropped back to MEDIUM.
DCHECK_EQ(MEDIUM, ConvertQuicPriorityToRequestPriority(
- reliable_stream->EffectivePriority()));
+ reliable_stream->Priority()));
// Ack the request.
ProcessPacket(ConstructAckPacket(1, 0, 0));
@@ -876,13 +876,13 @@ TEST_P(QuicHttpStreamTest, CheckPriorityWithNoDelegate) {
QuicReliableClientStream::Delegate* delegate = reliable_stream->GetDelegate();
DCHECK(delegate);
DCHECK_EQ(QuicWriteBlockedList::kHighestPriority,
- reliable_stream->EffectivePriority());
+ reliable_stream->Priority());
- // Set Delegate to nullptr and make sure EffectivePriority returns highest
+ // Set Delegate to nullptr and make sure Priority returns highest
// priority.
reliable_stream->SetDelegate(nullptr);
DCHECK_EQ(QuicWriteBlockedList::kHighestPriority,
- reliable_stream->EffectivePriority());
+ reliable_stream->Priority());
reliable_stream->SetDelegate(delegate);
EXPECT_EQ(0, stream_->GetTotalSentBytes());
« no previous file with comments | « net/quic/quic_headers_stream_test.cc ('k') | net/quic/quic_reliable_client_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698