OLD | NEW |
---|---|
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 #include "base/process/process.h" | 5 #include "base/process/process.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/files/scoped_file.h" | 9 #include "base/files/scoped_file.h" |
10 #include "base/posix/eintr_wrapper.h" | 10 #include "base/posix/eintr_wrapper.h" |
11 #include "base/process/kill.h" | 11 #include "base/process/kill.h" |
12 #include "base/process/launch.h" | |
rvargas (doing something else)
2015/01/21 01:10:08
For some reason (probably just history), launch, k
rickyz (no longer on Chrome)
2015/01/21 18:46:23
Ah, I moved the ForkWithFlags and PreExecDelegate
| |
12 #include "base/test/multiprocess_test.h" | 13 #include "base/test/multiprocess_test.h" |
13 #include "base/test/test_timeouts.h" | 14 #include "base/test/test_timeouts.h" |
14 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 15 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
15 #include "base/threading/platform_thread.h" | 16 #include "base/threading/platform_thread.h" |
16 #include "build/build_config.h" | 17 #include "build/build_config.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "testing/multiprocess_func_list.h" | 19 #include "testing/multiprocess_func_list.h" |
19 | 20 |
20 #if defined(OS_LINUX) | 21 #if defined(OS_LINUX) |
21 #include <errno.h> | 22 #include <errno.h> |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
310 read_fd.reset(); | 311 read_fd.reset(); |
311 ASSERT_EQ(1, HANDLE_EINTR(write(write_fd.get(), &kPipeValue, 1))); | 312 ASSERT_EQ(1, HANDLE_EINTR(write(write_fd.get(), &kPipeValue, 1))); |
312 | 313 |
313 int exit_code = 42; | 314 int exit_code = 42; |
314 EXPECT_TRUE(process.WaitForExit(&exit_code)); | 315 EXPECT_TRUE(process.WaitForExit(&exit_code)); |
315 EXPECT_EQ(0, exit_code); | 316 EXPECT_EQ(0, exit_code); |
316 } | 317 } |
317 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) | 318 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) |
318 | 319 |
319 } // namespace base | 320 } // namespace base |
OLD | NEW |