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

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

Issue 628233002: replace OVERRIDE and FINAL with override and final in sandbox/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/sandbox_bpf.cc ('k') | sandbox/linux/seccomp-bpf/syscall_unittest.cc » ('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 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/macros.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"
(...skipping 27 matching lines...) Expand all
38 // configuration allows it. If it can not run the test under seccomp-bpf, 38 // configuration allows it. If it can not run the test under seccomp-bpf,
39 // Run() will still compile the policy which should allow to get some coverage 39 // Run() will still compile the policy which should allow to get some coverage
40 // under tools such as Valgrind. 40 // under tools such as Valgrind.
41 class SandboxBPFTestRunner : public SandboxTestRunner { 41 class SandboxBPFTestRunner : public SandboxTestRunner {
42 public: 42 public:
43 // This constructor takes ownership of the |bpf_tester_delegate| object. 43 // This constructor takes ownership of the |bpf_tester_delegate| object.
44 // (It doesn't take a scoped_ptr since they make polymorphism verbose). 44 // (It doesn't take a scoped_ptr since they make polymorphism verbose).
45 explicit SandboxBPFTestRunner(BPFTesterDelegate* bpf_tester_delegate); 45 explicit SandboxBPFTestRunner(BPFTesterDelegate* bpf_tester_delegate);
46 virtual ~SandboxBPFTestRunner(); 46 virtual ~SandboxBPFTestRunner();
47 47
48 virtual void Run() OVERRIDE; 48 virtual void Run() override;
49 49
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_
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf/sandbox_bpf.cc ('k') | sandbox/linux/seccomp-bpf/syscall_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698