Updating XTBs based on .GRDs from branch master
[chromium-blink-merge.git] / sandbox / linux / tests / sandbox_test_runner_function_pointer.h
blobcadd07c2487d890a0729d19ebabf0a545c281a19
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_FUNCTION_POINTER_H_
6 #define SANDBOX_LINUX_TESTS_SANDBOX_TEST_RUNNER_FUNCTION_POINTER_H_
8 #include "base/macros.h"
9 #include "sandbox/linux/tests/sandbox_test_runner.h"
11 namespace sandbox {
13 class SandboxTestRunnerFunctionPointer : public SandboxTestRunner {
14 public:
15 SandboxTestRunnerFunctionPointer(void (*function_to_run)(void));
16 ~SandboxTestRunnerFunctionPointer() override;
17 void Run() override;
19 private:
20 void (*function_to_run_)(void);
21 DISALLOW_COPY_AND_ASSIGN(SandboxTestRunnerFunctionPointer);
24 } // namespace sandbox
26 #endif // SANDBOX_LINUX_TESTS_SANDBOX_TEST_RUNNER__FUNCTION_POINTER_H_