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

Unified Diff: mojo/system/memory_unittest.cc

Issue 603983003: Mojo: COMPILE_ASSERT -> static_assert in mojo/system and mojo/embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « mojo/system/local_data_pipe_unittest.cc ('k') | mojo/system/message_in_transit.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/memory_unittest.cc
diff --git a/mojo/system/memory_unittest.cc b/mojo/system/memory_unittest.cc
index 37acaf7c3b39c7d914d4a0606361f1ed30fc718e..74bcf114766b288271cf1d22148b78c95b7284c4 100644
--- a/mojo/system/memory_unittest.cc
+++ b/mojo/system/memory_unittest.cc
@@ -169,10 +169,10 @@ TEST(MemoryTest, InvalidDeath) {
// implementation.
// These tests depend on |int32_t| and |int64_t| having nontrivial alignment.
- MOJO_COMPILE_ASSERT(MOJO_ALIGNOF(int32_t) != 1,
- int32_t_does_not_have_to_be_aligned);
- MOJO_COMPILE_ASSERT(MOJO_ALIGNOF(int64_t) != 1,
- int64_t_does_not_have_to_be_aligned);
+ static_assert(MOJO_ALIGNOF(int32_t) != 1,
+ "int32_t does not require nontrivial alignment");
+ static_assert(MOJO_ALIGNOF(int64_t) != 1,
+ "int64_t does not require nontrivial alignment");
// Null:
{
« no previous file with comments | « mojo/system/local_data_pipe_unittest.cc ('k') | mojo/system/message_in_transit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698