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

Unified Diff: net/base/prioritized_dispatcher_unittest.cc

Issue 10185007: [net] Change order of RequestPriority to natural: higher > lower (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Responded to review Created 8 years, 8 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 ff32003a638d4ac2d9aa9f2d92d71ab0b9e7f2f3..6c19b92e5780f36f747e41b50ce72458eb0f3e57 100644
--- a/net/base/prioritized_dispatcher_unittest.cc
+++ b/net/base/prioritized_dispatcher_unittest.cc
@@ -17,11 +17,12 @@ namespace net {
namespace {
// We rely on the priority enum values being sequential having starting at 0,
-// and increasing for lower priorities.
-COMPILE_ASSERT(HIGHEST == 0u &&
- LOWEST > HIGHEST &&
- IDLE > LOWEST &&
- NUM_PRIORITIES > IDLE,
+// and increasing for higher priorities.
+COMPILE_ASSERT(MINIMUM_PRIORITY == 0u &&
+ MINIMUM_PRIORITY == IDLE &&
+ IDLE < LOWEST &&
+ LOWEST < HIGHEST &&
+ HIGHEST < NUM_PRIORITIES,
priority_indexes_incompatible);
class PrioritizedDispatcherTest : public testing::Test {

Powered by Google App Engine
This is Rietveld 408576698