| 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 #define _CRT_SECURE_NO_WARNINGS | 5 #define _CRT_SECURE_NO_WARNINGS |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <limits> | 10 #include <limits> |
| 11 #include <memory> |
| 11 | 12 |
| 12 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 13 #include "base/debug/alias.h" | 14 #include "base/debug/alias.h" |
| 14 #include "base/debug/stack_trace.h" | 15 #include "base/debug/stack_trace.h" |
| 15 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
| 16 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
| 17 #include "base/files/scoped_file.h" | 18 #include "base/files/scoped_file.h" |
| 18 #include "base/logging.h" | 19 #include "base/logging.h" |
| 19 #include "base/macros.h" | 20 #include "base/macros.h" |
| 20 #include "base/memory/scoped_ptr.h" | |
| 21 #include "base/path_service.h" | 21 #include "base/path_service.h" |
| 22 #include "base/posix/eintr_wrapper.h" | 22 #include "base/posix/eintr_wrapper.h" |
| 23 #include "base/process/kill.h" | 23 #include "base/process/kill.h" |
| 24 #include "base/process/launch.h" | 24 #include "base/process/launch.h" |
| 25 #include "base/process/memory.h" | 25 #include "base/process/memory.h" |
| 26 #include "base/process/process.h" | 26 #include "base/process/process.h" |
| 27 #include "base/process/process_metrics.h" | 27 #include "base/process/process_metrics.h" |
| 28 #include "base/strings/string_number_conversions.h" | 28 #include "base/strings/string_number_conversions.h" |
| 29 #include "base/strings/utf_string_conversions.h" | 29 #include "base/strings/utf_string_conversions.h" |
| 30 #include "base/synchronization/waitable_event.h" | 30 #include "base/synchronization/waitable_event.h" |
| (...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 options.current_directory = base::FilePath("/dev/null"); | 1125 options.current_directory = base::FilePath("/dev/null"); |
| 1126 | 1126 |
| 1127 base::Process process(SpawnChildWithOptions("SimpleChildProcess", options)); | 1127 base::Process process(SpawnChildWithOptions("SimpleChildProcess", options)); |
| 1128 ASSERT_TRUE(process.IsValid()); | 1128 ASSERT_TRUE(process.IsValid()); |
| 1129 | 1129 |
| 1130 int exit_code = kSuccess; | 1130 int exit_code = kSuccess; |
| 1131 EXPECT_TRUE(process.WaitForExit(&exit_code)); | 1131 EXPECT_TRUE(process.WaitForExit(&exit_code)); |
| 1132 EXPECT_NE(kSuccess, exit_code); | 1132 EXPECT_NE(kSuccess, exit_code); |
| 1133 } | 1133 } |
| 1134 #endif | 1134 #endif |
| OLD | NEW |