Fix link in German terms of service.
[chromium-blink-merge.git] / sandbox / linux / tests / test_utils.h
blob7cf9749fe4f1fac80b763b3d9e2e763d94e7e7fe
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_TEST_UTILS_H_
6 #define SANDBOX_LINUX_TESTS_TEST_UTILS_H_
8 #include <sys/types.h>
10 #include "base/macros.h"
12 namespace sandbox {
14 // This class provide small helpers to help writing tests.
15 class TestUtils {
16 public:
17 static bool CurrentProcessHasChildren();
18 // |pid| is the return value of a fork()-like call. This
19 // makes sure that if fork() succeeded the child exits
20 // and the parent waits for it.
21 static void HandlePostForkReturn(pid_t pid);
23 private:
24 DISALLOW_IMPLICIT_CONSTRUCTORS(TestUtils);
27 } // namespace sandbox
29 #endif // SANDBOX_LINUX_TESTS_TEST_UTILS_H_