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

Unified Diff: net/quic/quic_http_stream_test.cc

Issue 1468773002: Changing from QuicPriority to SpdyPriority. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@107610692
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_http_stream.cc ('k') | net/quic/quic_http_utils.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 95d2fd0b185cb6080f9febdfc61b73cef8d4cd75..e5e7f239a4dfa2ea69a0a0bd433d57bfc28f3680 100644
--- a/net/quic/quic_http_stream_test.cc
+++ b/net/quic/quic_http_stream_test.cc
@@ -264,7 +264,7 @@ class QuicHttpStreamTest : public ::testing::TestWithParam<QuicVersion> {
bool fin,
RequestPriority request_priority,
size_t* spdy_headers_frame_length) {
- QuicPriority priority =
+ SpdyPriority priority =
ConvertRequestPriorityToQuicPriority(request_priority);
return maker_.MakeRequestHeadersPacket(
packet_number, stream_id_, kIncludeVersion, fin, priority,
@@ -822,8 +822,7 @@ TEST_P(QuicHttpStreamTest, Priority) {
QuicReliableClientStream* reliable_stream =
QuicHttpStreamPeer::GetQuicReliableClientStream(stream_.get());
DCHECK(reliable_stream);
- DCHECK_EQ(QuicWriteBlockedList::kHighestPriority,
- reliable_stream->Priority());
+ DCHECK_EQ(kHighestPriority, reliable_stream->Priority());
EXPECT_EQ(OK, stream_->SendRequest(headers_, &response_,
callback_.callback()));
@@ -875,14 +874,12 @@ TEST_P(QuicHttpStreamTest, CheckPriorityWithNoDelegate) {
DCHECK(reliable_stream);
QuicReliableClientStream::Delegate* delegate = reliable_stream->GetDelegate();
DCHECK(delegate);
- DCHECK_EQ(QuicWriteBlockedList::kHighestPriority,
- reliable_stream->Priority());
+ DCHECK_EQ(kHighestPriority, reliable_stream->Priority());
// Set Delegate to nullptr and make sure Priority returns highest
// priority.
reliable_stream->SetDelegate(nullptr);
- DCHECK_EQ(QuicWriteBlockedList::kHighestPriority,
- reliable_stream->Priority());
+ DCHECK_EQ(kHighestPriority, reliable_stream->Priority());
reliable_stream->SetDelegate(delegate);
EXPECT_EQ(0, stream_->GetTotalSentBytes());
« no previous file with comments | « net/quic/quic_http_stream.cc ('k') | net/quic/quic_http_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698