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

Side by Side Diff: sandbox/linux/integration_tests/seccomp_broker_process_unittest.cc

Issue 1422253004: include what you use: errno.h in sandbox/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | sandbox/linux/seccomp-bpf/syscall_unittest.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <errno.h>
6 #include <fcntl.h>
5 #include <sys/types.h> 7 #include <sys/types.h>
6 #include <sys/stat.h> 8 #include <sys/stat.h>
7 #include <fcntl.h>
8 #include <unistd.h> 9 #include <unistd.h>
9 10
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/bind.h" 13 #include "base/bind.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/posix/eintr_wrapper.h" 15 #include "base/posix/eintr_wrapper.h"
15 #include "build/build_config.h" 16 #include "build/build_config.h"
16 #include "sandbox/linux/bpf_dsl/bpf_dsl.h" 17 #include "sandbox/linux/bpf_dsl/bpf_dsl.h"
17 #include "sandbox/linux/bpf_dsl/policy.h" 18 #include "sandbox/linux/bpf_dsl/policy.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 BPF_ASSERT(cpu_info_access == 0); 172 BPF_ASSERT(cpu_info_access == 0);
172 int cpu_info_fd = open("/proc/cpuinfo", O_RDONLY); 173 int cpu_info_fd = open("/proc/cpuinfo", O_RDONLY);
173 BPF_ASSERT(cpu_info_fd >= 0); 174 BPF_ASSERT(cpu_info_fd >= 0);
174 char buf[1024]; 175 char buf[1024];
175 BPF_ASSERT(read(cpu_info_fd, buf, sizeof(buf)) > 0); 176 BPF_ASSERT(read(cpu_info_fd, buf, sizeof(buf)) > 0);
176 } 177 }
177 178
178 } // namespace 179 } // namespace
179 180
180 } // namespace sandbox 181 } // namespace sandbox
OLDNEW
« no previous file with comments | « no previous file | sandbox/linux/seccomp-bpf/syscall_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698