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 <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/alias.h" | 10 #include "base/debug/alias.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "base/process/process_metrics.h" | 23 #include "base/process/process_metrics.h" |
24 #include "base/strings/string_number_conversions.h" | 24 #include "base/strings/string_number_conversions.h" |
25 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
26 #include "base/synchronization/waitable_event.h" | 26 #include "base/synchronization/waitable_event.h" |
27 #include "base/test/multiprocess_test.h" | 27 #include "base/test/multiprocess_test.h" |
28 #include "base/test/test_timeouts.h" | 28 #include "base/test/test_timeouts.h" |
29 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 29 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
30 #include "base/threading/platform_thread.h" | 30 #include "base/threading/platform_thread.h" |
31 #include "base/threading/thread.h" | 31 #include "base/threading/thread.h" |
32 #include "build/build_config.h" | 32 #include "build/build_config.h" |
33 #include "testing/gtest/include/gtest/gtest.h" | 33 #include "testing/gtest/googletest/include/gtest/gtest.h" |
34 #include "testing/multiprocess_func_list.h" | 34 #include "testing/multiprocess_func_list.h" |
35 | 35 |
36 #if defined(OS_LINUX) | 36 #if defined(OS_LINUX) |
37 #include <malloc.h> | 37 #include <malloc.h> |
38 #include <sched.h> | 38 #include <sched.h> |
39 #include <sys/syscall.h> | 39 #include <sys/syscall.h> |
40 #endif | 40 #endif |
41 #if defined(OS_POSIX) | 41 #if defined(OS_POSIX) |
42 #include <dlfcn.h> | 42 #include <dlfcn.h> |
43 #include <errno.h> | 43 #include <errno.h> |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 options.current_directory = base::FilePath("/dev/null"); | 1120 options.current_directory = base::FilePath("/dev/null"); |
1121 | 1121 |
1122 base::Process process(SpawnChildWithOptions("SimpleChildProcess", options)); | 1122 base::Process process(SpawnChildWithOptions("SimpleChildProcess", options)); |
1123 ASSERT_TRUE(process.IsValid()); | 1123 ASSERT_TRUE(process.IsValid()); |
1124 | 1124 |
1125 int exit_code = kSuccess; | 1125 int exit_code = kSuccess; |
1126 EXPECT_TRUE(process.WaitForExit(&exit_code)); | 1126 EXPECT_TRUE(process.WaitForExit(&exit_code)); |
1127 EXPECT_NE(kSuccess, exit_code); | 1127 EXPECT_NE(kSuccess, exit_code); |
1128 } | 1128 } |
1129 #endif | 1129 #endif |
OLD | NEW |