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

Unified Diff: net/quic/quic_spdy_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_spdy_stream.cc ('k') | net/quic/quic_stream_sequencer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_spdy_stream_test.cc
diff --git a/net/quic/quic_spdy_stream_test.cc b/net/quic/quic_spdy_stream_test.cc
index dd22d556194209488d10781125a8ba5f7aac9c70..4e7f307d993e71b33bba3bf7e7a63b8fecd378e1 100644
--- a/net/quic/quic_spdy_stream_test.cc
+++ b/net/quic/quic_spdy_stream_test.cc
@@ -18,6 +18,8 @@
using base::StringPiece;
using std::min;
using std::string;
+using net::kHighestPriority;
+using net::SpdyHeaderBlock;
using testing::Return;
using testing::StrictMock;
using testing::_;
@@ -120,12 +122,13 @@ TEST_P(QuicSpdyStreamTest, ProcessHeaders) {
Initialize(kShouldProcessData);
string headers = SpdyUtils::SerializeUncompressedHeaders(headers_);
- stream_->OnStreamHeadersPriority(QuicUtils::HighestPriority());
+ stream_->OnStreamHeadersPriority(net::kHighestPriority);
stream_->OnStreamHeaders(headers);
EXPECT_EQ("", stream_->data());
EXPECT_EQ(headers, stream_->decompressed_headers());
stream_->OnStreamHeadersComplete(false, headers.size());
- EXPECT_EQ(QuicUtils::HighestPriority(), stream_->Priority());
+ EXPECT_EQ(net::kHighestPriority, stream_->Priority());
+ EXPECT_EQ(net::kHighestPriority, stream_->Priority());
EXPECT_EQ("", stream_->data());
EXPECT_EQ(headers, stream_->decompressed_headers());
EXPECT_FALSE(stream_->IsDoneReading());
@@ -135,12 +138,13 @@ TEST_P(QuicSpdyStreamTest, ProcessHeadersWithFin) {
Initialize(kShouldProcessData);
string headers = SpdyUtils::SerializeUncompressedHeaders(headers_);
- stream_->OnStreamHeadersPriority(QuicUtils::HighestPriority());
+ stream_->OnStreamHeadersPriority(net::kHighestPriority);
stream_->OnStreamHeaders(headers);
EXPECT_EQ("", stream_->data());
EXPECT_EQ(headers, stream_->decompressed_headers());
stream_->OnStreamHeadersComplete(true, headers.size());
- EXPECT_EQ(QuicUtils::HighestPriority(), stream_->Priority());
+ EXPECT_EQ(net::kHighestPriority, stream_->Priority());
+ EXPECT_EQ(net::kHighestPriority, stream_->Priority());
EXPECT_EQ("", stream_->data());
EXPECT_EQ(headers, stream_->decompressed_headers());
EXPECT_FALSE(stream_->IsDoneReading());
« no previous file with comments | « net/quic/quic_spdy_stream.cc ('k') | net/quic/quic_stream_sequencer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698