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

Side by Side Diff: sandbox/linux/services/syscall_wrappers_unittest.cc

Issue 1538283002: Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: macros Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sandbox/linux/services/syscall_wrappers.h" 5 #include "sandbox/linux/services/syscall_wrappers.h"
6 6
7 #include <stdint.h>
7 #include <sys/syscall.h> 8 #include <sys/syscall.h>
8 #include <sys/types.h> 9 #include <sys/types.h>
9 #include <sys/wait.h> 10 #include <sys/wait.h>
10 #include <unistd.h> 11 #include <unistd.h>
11 #include <cstring> 12 #include <cstring>
12 13
13 #include "base/logging.h" 14 #include "base/logging.h"
14 #include "base/posix/eintr_wrapper.h" 15 #include "base/posix/eintr_wrapper.h"
15 #include "base/third_party/valgrind/valgrind.h" 16 #include "base/third_party/valgrind/valgrind.h"
16 #include "build/build_config.h" 17 #include "build/build_config.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 uint64_t linux_sigset = 0; 91 uint64_t linux_sigset = 0;
91 std::memcpy(&linux_sigset, &sigset, 92 std::memcpy(&linux_sigset, &sigset,
92 std::min(sizeof(sigset), sizeof(linux_sigset))); 93 std::min(sizeof(sigset), sizeof(linux_sigset)));
93 EXPECT_EQ((1ULL << (LINUX_SIGSEGV - 1)) | (1ULL << (LINUX_SIGBUS - 1)), 94 EXPECT_EQ((1ULL << (LINUX_SIGSEGV - 1)) | (1ULL << (LINUX_SIGBUS - 1)),
94 linux_sigset); 95 linux_sigset);
95 } 96 }
96 97
97 } // namespace 98 } // namespace
98 99
99 } // namespace sandbox 100 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/linux/services/namespace_utils.cc ('k') | sandbox/linux/services/thread_helpers_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698