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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/linux_seccomp.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" 5 #include "sandbox/linux/seccomp-bpf/errorcode.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "sandbox/linux/bpf_dsl/bpf_dsl.h" 10 #include "sandbox/linux/bpf_dsl/bpf_dsl.h"
11 #include "sandbox/linux/bpf_dsl/policy.h" 11 #include "sandbox/linux/bpf_dsl/policy.h"
12 #include "sandbox/linux/bpf_dsl/policy_compiler.h" 12 #include "sandbox/linux/bpf_dsl/policy_compiler.h"
13 #include "sandbox/linux/seccomp-bpf/linux_seccomp.h"
14 #include "sandbox/linux/seccomp-bpf/trap.h" 13 #include "sandbox/linux/seccomp-bpf/trap.h"
14 #include "sandbox/linux/system_headers/linux_seccomp.h"
15 #include "sandbox/linux/tests/unit_tests.h" 15 #include "sandbox/linux/tests/unit_tests.h"
16 16
17 namespace sandbox { 17 namespace sandbox {
18 18
19 namespace { 19 namespace {
20 20
21 class DummyPolicy : public bpf_dsl::Policy { 21 class DummyPolicy : public bpf_dsl::Policy {
22 public: 22 public:
23 DummyPolicy() {} 23 DummyPolicy() {}
24 ~DummyPolicy() override {} 24 ~DummyPolicy() override {}
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 SANDBOX_ASSERT(e1.LessThan(e4)); 111 SANDBOX_ASSERT(e1.LessThan(e4));
112 SANDBOX_ASSERT(e3.LessThan(e4)); 112 SANDBOX_ASSERT(e3.LessThan(e4));
113 SANDBOX_ASSERT(e4.LessThan(e5)); 113 SANDBOX_ASSERT(e4.LessThan(e5));
114 SANDBOX_ASSERT(!e4.LessThan(e6)); 114 SANDBOX_ASSERT(!e4.LessThan(e6));
115 SANDBOX_ASSERT(!e6.LessThan(e4)); 115 SANDBOX_ASSERT(!e6.LessThan(e4));
116 } 116 }
117 117
118 } // namespace 118 } // namespace
119 119
120 } // namespace sandbox 120 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf/errorcode.cc ('k') | sandbox/linux/seccomp-bpf/linux_seccomp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698