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

Unified Diff: net/base/prioritized_dispatcher_unittest.cc

Issue 826973002: replace COMPILE_ASSERT with static_assert in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: apply fixups Created 5 years, 11 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/base/network_change_notifier.cc ('k') | net/cert/crl_set_storage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « net/base/network_change_notifier.cc ('k') | net/cert/crl_set_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698