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

Side by Side Diff: sandbox/linux/seccomp-bpf/syscall_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
« no previous file with comments | « sandbox/linux/seccomp-bpf/sandbox_bpf.cc ('k') | sandbox/linux/seccomp-bpf/trap.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/seccomp-bpf/syscall.h" 5 #include "sandbox/linux/seccomp-bpf/syscall.h"
6 6
7 #include <asm/unistd.h> 7 #include <asm/unistd.h>
8 #include <errno.h> 8 #include <errno.h>
9 #include <fcntl.h> 9 #include <fcntl.h>
10 #include <stddef.h>
11 #include <stdint.h>
12 #include <sys/mman.h> 10 #include <sys/mman.h>
13 #include <sys/syscall.h> 11 #include <sys/syscall.h>
14 #include <sys/types.h> 12 #include <sys/types.h>
15 #include <unistd.h> 13 #include <unistd.h>
16 14
17 #include <vector> 15 #include <vector>
18 16
19 #include "base/macros.h"
20 #include "base/posix/eintr_wrapper.h" 17 #include "base/posix/eintr_wrapper.h"
21 #include "build/build_config.h" 18 #include "build/build_config.h"
22 #include "sandbox/linux/bpf_dsl/bpf_dsl.h" 19 #include "sandbox/linux/bpf_dsl/bpf_dsl.h"
23 #include "sandbox/linux/bpf_dsl/policy.h" 20 #include "sandbox/linux/bpf_dsl/policy.h"
24 #include "sandbox/linux/seccomp-bpf/bpf_tests.h" 21 #include "sandbox/linux/seccomp-bpf/bpf_tests.h"
25 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" 22 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h"
26 #include "sandbox/linux/tests/unit_tests.h" 23 #include "sandbox/linux/tests/unit_tests.h"
27 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
28 25
29 using sandbox::bpf_dsl::Allow; 26 using sandbox::bpf_dsl::Allow;
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 232
236 // Clean up 233 // Clean up
237 EXPECT_EQ(0, Syscall::Call(__NR_munmap, addr2, 8192L)); 234 EXPECT_EQ(0, Syscall::Call(__NR_munmap, addr2, 8192L));
238 EXPECT_EQ(0, Syscall::Call(__NR_munmap, addr3, 4096L)); 235 EXPECT_EQ(0, Syscall::Call(__NR_munmap, addr3, 4096L));
239 EXPECT_EQ(0, IGNORE_EINTR(Syscall::Call(__NR_close, fd))); 236 EXPECT_EQ(0, IGNORE_EINTR(Syscall::Call(__NR_close, fd)));
240 } 237 }
241 238
242 } // namespace 239 } // namespace
243 240
244 } // namespace sandbox 241 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf/sandbox_bpf.cc ('k') | sandbox/linux/seccomp-bpf/trap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698