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

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

Issue 570163003: Large IWYU cleanup for seccomp-bpf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trap-errorcode
Patch Set: Sort #includes Created 6 years, 3 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
« no previous file with comments | « sandbox/linux/seccomp-bpf/errorcode.cc ('k') | sandbox/linux/seccomp-bpf/sandbox_bpf.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/errorcode.h"
6
5 #include <errno.h> 7 #include <errno.h>
6 8
9 #include "sandbox/linux/seccomp-bpf/linux_seccomp.h"
7 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" 10 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h"
8 #include "sandbox/linux/tests/unit_tests.h" 11 #include "sandbox/linux/tests/unit_tests.h"
9 12
10 namespace sandbox { 13 namespace sandbox {
11 14
12 namespace { 15 namespace {
13 16
14 SANDBOX_TEST(ErrorCode, ErrnoConstructor) { 17 SANDBOX_TEST(ErrorCode, ErrnoConstructor) {
15 ErrorCode e0; 18 ErrorCode e0;
16 SANDBOX_ASSERT(e0.err() == SECCOMP_RET_INVALID); 19 SANDBOX_ASSERT(e0.err() == SECCOMP_RET_INVALID);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 SANDBOX_ASSERT(e1.LessThan(e4)); 90 SANDBOX_ASSERT(e1.LessThan(e4));
88 SANDBOX_ASSERT(e3.LessThan(e4)); 91 SANDBOX_ASSERT(e3.LessThan(e4));
89 SANDBOX_ASSERT(e4.LessThan(e5)); 92 SANDBOX_ASSERT(e4.LessThan(e5));
90 SANDBOX_ASSERT(!e4.LessThan(e6)); 93 SANDBOX_ASSERT(!e4.LessThan(e6));
91 SANDBOX_ASSERT(!e6.LessThan(e4)); 94 SANDBOX_ASSERT(!e6.LessThan(e4));
92 } 95 }
93 96
94 } // namespace 97 } // namespace
95 98
96 } // namespace sandbox 99 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf/errorcode.cc ('k') | sandbox/linux/seccomp-bpf/sandbox_bpf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698