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

Side by Side Diff: sandbox/linux/seccomp-bpf/syscall_unittest.cc

Issue 1124763003: Update from https://crrev.com/327068 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: update nacl, buildtools, fix display_change_notifier_unittest Created 5 years, 7 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 unified diff | Download patch
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 <fcntl.h> 8 #include <fcntl.h>
9 #include <sys/mman.h> 9 #include <sys/mman.h>
10 #include <sys/syscall.h> 10 #include <sys/syscall.h>
11 #include <sys/types.h> 11 #include <sys/types.h>
12 #include <unistd.h> 12 #include <unistd.h>
13 13
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/basictypes.h"
17 #include "base/posix/eintr_wrapper.h" 16 #include "base/posix/eintr_wrapper.h"
18 #include "build/build_config.h" 17 #include "build/build_config.h"
19 #include "sandbox/linux/bpf_dsl/bpf_dsl.h" 18 #include "sandbox/linux/bpf_dsl/bpf_dsl.h"
20 #include "sandbox/linux/bpf_dsl/policy.h" 19 #include "sandbox/linux/bpf_dsl/policy.h"
21 #include "sandbox/linux/seccomp-bpf/bpf_tests.h" 20 #include "sandbox/linux/seccomp-bpf/bpf_tests.h"
22 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" 21 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h"
23 #include "sandbox/linux/tests/unit_tests.h" 22 #include "sandbox/linux/tests/unit_tests.h"
24 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
25 24
26 using sandbox::bpf_dsl::Allow; 25 using sandbox::bpf_dsl::Allow;
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 231
233 // Clean up 232 // Clean up
234 EXPECT_EQ(0, Syscall::Call(__NR_munmap, addr2, 8192L)); 233 EXPECT_EQ(0, Syscall::Call(__NR_munmap, addr2, 8192L));
235 EXPECT_EQ(0, Syscall::Call(__NR_munmap, addr3, 4096L)); 234 EXPECT_EQ(0, Syscall::Call(__NR_munmap, addr3, 4096L));
236 EXPECT_EQ(0, IGNORE_EINTR(Syscall::Call(__NR_close, fd))); 235 EXPECT_EQ(0, IGNORE_EINTR(Syscall::Call(__NR_close, fd)));
237 } 236 }
238 237
239 } // namespace 238 } // namespace
240 239
241 } // namespace sandbox 240 } // namespace sandbox
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698