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

Side by Side Diff: sandbox/linux/seccomp-bpf/bpf_tester_compatibility_delegate.h

Issue 1539423002: Revert of Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
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"
9 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
10 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.h" 9 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.h"
11 10
12 namespace sandbox { 11 namespace sandbox {
13 12
14 // This templated class allows building a BPFTesterDelegate from a 13 // This templated class allows building a BPFTesterDelegate from a
15 // deprecated-style BPF policy (that is a SyscallEvaluator function pointer, 14 // deprecated-style BPF policy (that is a SyscallEvaluator function pointer,
16 // instead of a SandboxBPFPolicy class), specified in |policy_function| and a 15 // instead of a SandboxBPFPolicy class), specified in |policy_function| and a
17 // function pointer to a test in |test_function|. 16 // function pointer to a test in |test_function|.
18 // This allows both the policy and the test function to take a pointer to an 17 // This allows both the policy and the test function to take a pointer to an
(...skipping 27 matching lines...) Expand all
46 private: 45 private:
47 Aux aux_; 46 Aux aux_;
48 TestFunction test_function_; 47 TestFunction test_function_;
49 48
50 DISALLOW_COPY_AND_ASSIGN(BPFTesterCompatibilityDelegate); 49 DISALLOW_COPY_AND_ASSIGN(BPFTesterCompatibilityDelegate);
51 }; 50 };
52 51
53 } // namespace sandbox 52 } // namespace sandbox
54 53
55 #endif // SANDBOX_LINUX_SECCOMP_BPF_BPF_TESTER_COMPATIBILITY_DELEGATE_H_ 54 #endif // SANDBOX_LINUX_SECCOMP_BPF_BPF_TESTER_COMPATIBILITY_DELEGATE_H_
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc ('k') | sandbox/linux/seccomp-bpf/bpf_tests_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698