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

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

Issue 1539423002: Revert of Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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>
8 #include <sys/syscall.h> 7 #include <sys/syscall.h>
9 #include <sys/types.h> 8 #include <sys/types.h>
10 #include <sys/wait.h> 9 #include <sys/wait.h>
11 #include <unistd.h> 10 #include <unistd.h>
12 #include <cstring> 11 #include <cstring>
13 12
14 #include "base/logging.h" 13 #include "base/logging.h"
15 #include "base/posix/eintr_wrapper.h" 14 #include "base/posix/eintr_wrapper.h"
16 #include "base/third_party/valgrind/valgrind.h" 15 #include "base/third_party/valgrind/valgrind.h"
17 #include "build/build_config.h" 16 #include "build/build_config.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 uint64_t linux_sigset = 0; 90 uint64_t linux_sigset = 0;
92 std::memcpy(&linux_sigset, &sigset, 91 std::memcpy(&linux_sigset, &sigset,
93 std::min(sizeof(sigset), sizeof(linux_sigset))); 92 std::min(sizeof(sigset), sizeof(linux_sigset)));
94 EXPECT_EQ((1ULL << (LINUX_SIGSEGV - 1)) | (1ULL << (LINUX_SIGBUS - 1)), 93 EXPECT_EQ((1ULL << (LINUX_SIGSEGV - 1)) | (1ULL << (LINUX_SIGBUS - 1)),
95 linux_sigset); 94 linux_sigset);
96 } 95 }
97 96
98 } // namespace 97 } // namespace
99 98
100 } // namespace sandbox 99 } // 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