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

Unified Diff: util/test/multiprocess_exec.cc

Issue 615923004: Convert COMPILE_ASSERT to static_assert (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes 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 | « util/stdlib/strlcpy_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/test/multiprocess_exec.cc
diff --git a/util/test/multiprocess_exec.cc b/util/test/multiprocess_exec.cc
index 4cad7e0de2fdf161f218f79797591b86ea63a8a1..4888a809b14bf379a8d94be4365dd4da0676da06 100644
--- a/util/test/multiprocess_exec.cc
+++ b/util/test/multiprocess_exec.cc
@@ -72,9 +72,9 @@ void MultiprocessExec::PreFork() {
void MultiprocessExec::MultiprocessChild() {
// Make sure that stdin, stdout, and stderr are FDs 0, 1, and 2, respectively.
// All FDs above this will be closed.
- COMPILE_ASSERT(STDIN_FILENO == 0, stdin_must_be_fd_0);
- COMPILE_ASSERT(STDOUT_FILENO == 1, stdout_must_be_fd_1);
- COMPILE_ASSERT(STDERR_FILENO == 2, stderr_must_be_fd_2);
+ static_assert(STDIN_FILENO == 0, "stdin must be fd 0");
+ static_assert(STDOUT_FILENO == 1, "stdout must be fd 1");
+ static_assert(STDERR_FILENO == 2, "stderr must be fd 2");
// Move the read pipe to stdin.
int read_fd = ReadPipeFD();
« no previous file with comments | « util/stdlib/strlcpy_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698