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

Unified Diff: net/base/prioritized_dispatcher_unittest.cc

Issue 1866483002: Add a new priority level, THROTTLED, below IDLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjusted predictor priorities. Created 4 years, 2 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
Index: net/base/prioritized_dispatcher_unittest.cc
diff --git a/net/base/prioritized_dispatcher_unittest.cc b/net/base/prioritized_dispatcher_unittest.cc
index fffb47f252ce990accc8309f01510f121fcefe49..7d0b90ea58fb9d9c7bb86d51106a887dfbc35dfd 100644
--- a/net/base/prioritized_dispatcher_unittest.cc
+++ b/net/base/prioritized_dispatcher_unittest.cc
@@ -20,8 +20,10 @@ namespace {
// We rely on the priority enum values being sequential having starting at 0,
// and increasing for higher priorities.
-static_assert(MINIMUM_PRIORITY == 0u && MINIMUM_PRIORITY == IDLE &&
- IDLE < LOWEST && LOWEST < HIGHEST &&
+static_assert(MINIMUM_PRIORITY == 0u && MINIMUM_PRIORITY == THROTTLED &&
+ THROTTLED < IDLE &&
+ IDLE < LOWEST &&
+ LOWEST < HIGHEST &&
HIGHEST <= MAXIMUM_PRIORITY,
"priority indexes incompatible");

Powered by Google App Engine
This is Rietveld 408576698