Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / sandbox / linux / tests / sandbox_test_runner.h
blob3504126cb5c67974e5498a12b71d5968e66741a8
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
3 // found in the LICENSE file.
5 #ifndef SANDBOX_LINUX_TESTS_SANDBOX_TEST_RUNNER_H_
6 #define SANDBOX_LINUX_TESTS_SANDBOX_TEST_RUNNER_H_
8 #include "base/basictypes.h"
10 namespace sandbox {
12 // A simple "runner" class to implement tests.
13 class SandboxTestRunner {
14 public:
15 SandboxTestRunner();
16 virtual ~SandboxTestRunner();
18 virtual void Run() = 0;
20 // Override to decide whether or not to check for leaks with LSAN
21 // (if built with LSAN and LSAN is enabled).
22 virtual bool ShouldCheckForLeaks() const;
24 private:
25 DISALLOW_COPY_AND_ASSIGN(SandboxTestRunner);
28 } // namespace sandbox
30 #endif // SANDBOX_LINUX_TESTS_SANDBOX_TEST_RUNNER_H_