| 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_SANDBOX_BPF_TEST_RUNNER_H_ | 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_TEST_RUNNER_H_ |
| 6 #define SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_TEST_RUNNER_H_ | 6 #define SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_TEST_RUNNER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h" | 10 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h" |
| 11 #include "sandbox/linux/tests/sandbox_test_runner.h" | 11 #include "sandbox/linux/tests/sandbox_test_runner.h" |
| 12 | 12 |
| 13 namespace sandbox { | 13 namespace sandbox { |
| 14 | 14 |
| 15 // To create a SandboxBPFTestRunner object, one needs to implement this | 15 // To create a SandboxBPFTestRunner object, one needs to implement this |
| 16 // interface and pass an instance to the SandboxBPFTestRunner constructor. | 16 // interface and pass an instance to the SandboxBPFTestRunner constructor. |
| 17 // In the child process running the test, the BPFTesterDelegate object is | 17 // In the child process running the test, the BPFTesterDelegate object is |
| 18 // guaranteed to not be destroyed until the child process terminates. | 18 // guaranteed to not be destroyed until the child process terminates. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual bool ShouldCheckForLeaks() const OVERRIDE; | 50 virtual bool ShouldCheckForLeaks() const OVERRIDE; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 scoped_ptr<BPFTesterDelegate> bpf_tester_delegate_; | 53 scoped_ptr<BPFTesterDelegate> bpf_tester_delegate_; |
| 54 DISALLOW_COPY_AND_ASSIGN(SandboxBPFTestRunner); | 54 DISALLOW_COPY_AND_ASSIGN(SandboxBPFTestRunner); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace sandbox | 57 } // namespace sandbox |
| 58 | 58 |
| 59 #endif // SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_TEST_RUNNER_H_ | 59 #endif // SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_TEST_RUNNER_H_ |
| OLD | NEW |