summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_send_fds_test.cc
diff options
context:
space:
mode:
authoranujk.sharma <anujk.sharma@samsung.com>2015-01-21 21:39:37 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-22 05:41:28 +0000
commit5a7ffe2f6f9292109b801b1b6c7d82f6ab2a6d67 (patch)
tree98a737f4643e7d601a25d45497b7307ac168f1f3 /ipc/ipc_send_fds_test.cc
parente01f4987bc375367c9fe8c45eb23aeb27a31f8ed (diff)
downloadchromium_src-5a7ffe2f6f9292109b801b1b6c7d82f6ab2a6d67.zip
chromium_src-5a7ffe2f6f9292109b801b1b6c7d82f6ab2a6d67.tar.gz
chromium_src-5a7ffe2f6f9292109b801b1b6c7d82f6ab2a6d67.tar.bz2
Adding "static_assert" in lieu of "COMPILE_ASSERT" in ipc module
All our toolchains support c++'s static_assert now- COMPILE_ASSERT can be removed now. BUG=442514 Review URL: https://codereview.chromium.org/824243004 Cr-Commit-Position: refs/heads/master@{#312568}
Diffstat (limited to 'ipc/ipc_send_fds_test.cc')
-rw-r--r--ipc/ipc_send_fds_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipc/ipc_send_fds_test.cc b/ipc/ipc_send_fds_test.cc
index de2ae99..2e05e03 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 {