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 { |