OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 BASE_TEST_MULTIPROCESS_TEST_H_ | 5 #ifndef BASE_TEST_MULTIPROCESS_TEST_H_ |
6 #define BASE_TEST_MULTIPROCESS_TEST_H_ | 6 #define BASE_TEST_MULTIPROCESS_TEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/process.h" | 11 #include "base/process/launch.h" |
12 #include "base/process_util.h" | 12 #include "base/process/process_handle.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "testing/platform_test.h" | 14 #include "testing/platform_test.h" |
15 | 15 |
16 class CommandLine; | 16 class CommandLine; |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 | 19 |
20 // A MultiProcessTest is a test class which makes it easier to | 20 // A MultiProcessTest is a test class which makes it easier to |
21 // write a test which requires code running out of process. | 21 // write a test which requires code running out of process. |
22 // | 22 // |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 ProcessHandle SpawnChildImpl(const std::string& procname, | 76 ProcessHandle SpawnChildImpl(const std::string& procname, |
77 const FileHandleMappingVector& fds_to_map, | 77 const FileHandleMappingVector& fds_to_map, |
78 bool debug_on_start); | 78 bool debug_on_start); |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(MultiProcessTest); | 80 DISALLOW_COPY_AND_ASSIGN(MultiProcessTest); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace base | 83 } // namespace base |
84 | 84 |
85 #endif // BASE_TEST_MULTIPROCESS_TEST_H_ | 85 #endif // BASE_TEST_MULTIPROCESS_TEST_H_ |
OLD | NEW |