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

Unified Diff: ipc/ipc_send_fds_test.cc

Issue 824243004: Adding "static_assert" in lieu of "COMPILE_ASSERT" in ipc module (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing nits 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 | « ipc/ipc_channel_win.cc ('k') | ipc/unix_domain_socket_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_send_fds_test.cc
diff --git a/ipc/ipc_send_fds_test.cc b/ipc/ipc_send_fds_test.cc
index de2ae996c8dba81b4cf6150b554091da9464094c..2e05e03caf6e79e8aee670c35b8f42f44d2c9b94 100644
--- a/ipc/ipc_send_fds_test.cc
+++ b/ipc/ipc_send_fds_test.cc
@@ -38,9 +38,9 @@ const unsigned kNumMessages = 20;
const char* kDevZeroPath = "/dev/zero";
#if defined(OS_POSIX)
-COMPILE_ASSERT(kNumFDsToSend ==
- IPC::MessageAttachmentSet::kMaxDescriptorsPerMessage,
- num_fds_to_send_must_be_the_same_as_the_max_desc_per_message);
+static_assert(kNumFDsToSend ==
+ IPC::MessageAttachmentSet::kMaxDescriptorsPerMessage,
+ "The number of FDs to send must be kMaxDescriptorsPerMessage.");
#endif
class MyChannelDescriptorListenerBase : public IPC::Listener {
« no previous file with comments | « ipc/ipc_channel_win.cc ('k') | ipc/unix_domain_socket_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698