Index: net/base/prioritized_dispatcher_unittest.cc |
diff --git a/net/base/prioritized_dispatcher_unittest.cc b/net/base/prioritized_dispatcher_unittest.cc |
index 40c74257ddc9a72302775d726a44486b74801f7e..44ffb57780c16b8f230f71db22ab767786a0f662 100644 |
--- a/net/base/prioritized_dispatcher_unittest.cc |
+++ b/net/base/prioritized_dispatcher_unittest.cc |
@@ -19,12 +19,10 @@ namespace { |
// We rely on the priority enum values being sequential having starting at 0, |
// and increasing for higher priorities. |
-COMPILE_ASSERT(MINIMUM_PRIORITY == 0u && |
- MINIMUM_PRIORITY == IDLE && |
- IDLE < LOWEST && |
- LOWEST < HIGHEST && |
- HIGHEST <= MAXIMUM_PRIORITY, |
- priority_indexes_incompatible); |
+static_assert(MINIMUM_PRIORITY == 0u && MINIMUM_PRIORITY == IDLE && |
+ IDLE < LOWEST && LOWEST < HIGHEST && |
+ HIGHEST <= MAXIMUM_PRIORITY, |
+ "priority indexes incompatible"); |
class PrioritizedDispatcherTest : public testing::Test { |
public: |