| 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" |
| 11 #include "base/debug/stack_trace.h" | 11 #include "base/debug/stack_trace.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 16 #include "base/posix/eintr_wrapper.h" | 16 #include "base/posix/eintr_wrapper.h" |
| 17 #include "base/process_util.h" | 17 #include "base/process/kill.h" |
| 18 #include "base/process/launch.h" |
| 19 #include "base/process/memory.h" |
| 20 #include "base/process/process.h" |
| 21 #include "base/process/process_metrics.h" |
| 18 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
| 19 #include "base/test/multiprocess_test.h" | 23 #include "base/test/multiprocess_test.h" |
| 20 #include "base/test/test_timeouts.h" | 24 #include "base/test/test_timeouts.h" |
| 21 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 25 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
| 22 #include "base/threading/platform_thread.h" | 26 #include "base/threading/platform_thread.h" |
| 23 #include "base/threading/thread.h" | 27 #include "base/threading/thread.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
| 25 #include "testing/multiprocess_func_list.h" | 29 #include "testing/multiprocess_func_list.h" |
| 26 | 30 |
| 27 #if defined(OS_LINUX) | 31 #if defined(OS_LINUX) |
| (...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 // Check that process was really killed. | 952 // Check that process was really killed. |
| 949 EXPECT_TRUE(IsProcessDead(child_process)); | 953 EXPECT_TRUE(IsProcessDead(child_process)); |
| 950 base::CloseProcessHandle(child_process); | 954 base::CloseProcessHandle(child_process); |
| 951 } | 955 } |
| 952 | 956 |
| 953 MULTIPROCESS_TEST_MAIN(process_util_test_die_immediately) { | 957 MULTIPROCESS_TEST_MAIN(process_util_test_die_immediately) { |
| 954 return 0; | 958 return 0; |
| 955 } | 959 } |
| 956 | 960 |
| 957 #endif // defined(OS_POSIX) | 961 #endif // defined(OS_POSIX) |
| OLD | NEW |