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

Unified Diff: net/quic/quic_http_utils_test.cc

Issue 1866483002: Add a new priority level, THROTTLED, below IDLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated comments. Created 4 years, 7 months 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_utils.cc ('k') | net/spdy/spdy_http_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_http_utils_test.cc
diff --git a/net/quic/quic_http_utils_test.cc b/net/quic/quic_http_utils_test.cc
index 5f33096a14b8e44ff6c32b2d1c6c93349b4966a3..8580dbeed931ed7aa0f1b58ae71589288479f13f 100644
--- a/net/quic/quic_http_utils_test.cc
+++ b/net/quic/quic_http_utils_test.cc
@@ -27,10 +27,11 @@ TEST(QuicHttpUtilsTest, ConvertQuicPriorityToRequestPriority) {
EXPECT_EQ(LOW, ConvertQuicPriorityToRequestPriority(2));
EXPECT_EQ(LOWEST, ConvertQuicPriorityToRequestPriority(3));
EXPECT_EQ(IDLE, ConvertQuicPriorityToRequestPriority(4));
+ EXPECT_EQ(THROTTLED, ConvertQuicPriorityToRequestPriority(5));
// These are invalid values, but we should still handle them
// gracefully. TODO(rtenneti): should we test for all possible values of
// uint32_t?
- for (int i = 5; i < std::numeric_limits<uint8_t>::max(); ++i) {
+ for (int i = 6; i < std::numeric_limits<uint8_t>::max(); ++i) {
EXPECT_EQ(IDLE, ConvertQuicPriorityToRequestPriority(i));
}
}
« no previous file with comments | « net/quic/quic_http_utils.cc ('k') | net/spdy/spdy_http_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698