| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |