| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef SANDBOX_LINUX_SECCOMP_BPF_BPF_TESTER_COMPATIBILITY_DELEGATE_H_ | 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_BPF_TESTER_COMPATIBILITY_DELEGATE_H_ |
| 6 #define SANDBOX_LINUX_SECCOMP_BPF_BPF_TESTER_COMPATIBILITY_DELEGATE_H_ | 6 #define SANDBOX_LINUX_SECCOMP_BPF_BPF_TESTER_COMPATIBILITY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.h" | 10 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.h" |
| 10 | 11 |
| 11 namespace sandbox { | 12 namespace sandbox { |
| 12 | 13 |
| 13 // This templated class allows building a BPFTesterDelegate from a | 14 // This templated class allows building a BPFTesterDelegate from a |
| 14 // deprecated-style BPF policy (that is a SyscallEvaluator function pointer, | 15 // deprecated-style BPF policy (that is a SyscallEvaluator function pointer, |
| 15 // instead of a SandboxBPFPolicy class), specified in |policy_function| and a | 16 // instead of a SandboxBPFPolicy class), specified in |policy_function| and a |
| 16 // function pointer to a test in |test_function|. | 17 // function pointer to a test in |test_function|. |
| 17 // This allows both the policy and the test function to take a pointer to an | 18 // This allows both the policy and the test function to take a pointer to an |
| (...skipping 27 matching lines...) Expand all Loading... |
| 45 private: | 46 private: |
| 46 Aux aux_; | 47 Aux aux_; |
| 47 TestFunction test_function_; | 48 TestFunction test_function_; |
| 48 | 49 |
| 49 DISALLOW_COPY_AND_ASSIGN(BPFTesterCompatibilityDelegate); | 50 DISALLOW_COPY_AND_ASSIGN(BPFTesterCompatibilityDelegate); |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 } // namespace sandbox | 53 } // namespace sandbox |
| 53 | 54 |
| 54 #endif // SANDBOX_LINUX_SECCOMP_BPF_BPF_TESTER_COMPATIBILITY_DELEGATE_H_ | 55 #endif // SANDBOX_LINUX_SECCOMP_BPF_BPF_TESTER_COMPATIBILITY_DELEGATE_H_ |
| OLD | NEW |