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

Side by Side Diff: sandbox/linux/tests/test_utils.h

Issue 1108173002: Roll //build, //native_client, and a few more targets of opportunity. Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Test fix Created 5 years, 7 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_TESTS_TEST_UTILS_H_ 5 #ifndef SANDBOX_LINUX_TESTS_TEST_UTILS_H_
6 #define SANDBOX_LINUX_TESTS_TEST_UTILS_H_ 6 #define SANDBOX_LINUX_TESTS_TEST_UTILS_H_
7 7
8 #include <sys/types.h> 8 #include <sys/types.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/macros.h"
11 11
12 namespace sandbox { 12 namespace sandbox {
13 13
14 // This class provide small helpers to help writing tests. 14 // This class provide small helpers to help writing tests.
15 class TestUtils { 15 class TestUtils {
16 public: 16 public:
17 static bool CurrentProcessHasChildren(); 17 static bool CurrentProcessHasChildren();
18 // |pid| is the return value of a fork()-like call. This 18 // |pid| is the return value of a fork()-like call. This
19 // makes sure that if fork() succeeded the child exits 19 // makes sure that if fork() succeeded the child exits
20 // and the parent waits for it. 20 // and the parent waits for it.
21 static void HandlePostForkReturn(pid_t pid); 21 static void HandlePostForkReturn(pid_t pid);
22 22
23 private: 23 private:
24 DISALLOW_IMPLICIT_CONSTRUCTORS(TestUtils); 24 DISALLOW_IMPLICIT_CONSTRUCTORS(TestUtils);
25 }; 25 };
26 26
27 } // namespace sandbox 27 } // namespace sandbox
28 28
29 #endif // SANDBOX_LINUX_TESTS_TEST_UTILS_H_ 29 #endif // SANDBOX_LINUX_TESTS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « sandbox/linux/tests/sandbox_test_runner_function_pointer.h ('k') | sandbox/linux/tests/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698