| 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 11 matching lines...) Expand all Loading... |
| 22 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
| 23 #include "base/test/multiprocess_test.h" | 23 #include "base/test/multiprocess_test.h" |
| 24 #include "base/test/test_timeouts.h" | 24 #include "base/test/test_timeouts.h" |
| 25 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 25 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
| 26 #include "base/threading/platform_thread.h" | 26 #include "base/threading/platform_thread.h" |
| 27 #include "base/threading/thread.h" | 27 #include "base/threading/thread.h" |
| 28 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
| 29 #include "testing/multiprocess_func_list.h" | 29 #include "testing/multiprocess_func_list.h" |
| 30 | 30 |
| 31 #if defined(OS_LINUX) | 31 #if defined(OS_LINUX) |
| 32 #include <glib.h> | |
| 33 #include <malloc.h> | 32 #include <malloc.h> |
| 34 #include <sched.h> | 33 #include <sched.h> |
| 35 #endif | 34 #endif |
| 36 #if defined(OS_POSIX) | 35 #if defined(OS_POSIX) |
| 37 #include <dlfcn.h> | 36 #include <dlfcn.h> |
| 38 #include <errno.h> | 37 #include <errno.h> |
| 39 #include <fcntl.h> | 38 #include <fcntl.h> |
| 40 #include <signal.h> | 39 #include <signal.h> |
| 41 #include <sys/resource.h> | 40 #include <sys/resource.h> |
| 42 #include <sys/socket.h> | 41 #include <sys/socket.h> |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 912 // Check that process was really killed. | 911 // Check that process was really killed. |
| 913 EXPECT_TRUE(IsProcessDead(child_process)); | 912 EXPECT_TRUE(IsProcessDead(child_process)); |
| 914 base::CloseProcessHandle(child_process); | 913 base::CloseProcessHandle(child_process); |
| 915 } | 914 } |
| 916 | 915 |
| 917 MULTIPROCESS_TEST_MAIN(process_util_test_die_immediately) { | 916 MULTIPROCESS_TEST_MAIN(process_util_test_die_immediately) { |
| 918 return 0; | 917 return 0; |
| 919 } | 918 } |
| 920 | 919 |
| 921 #endif // defined(OS_POSIX) | 920 #endif // defined(OS_POSIX) |
| OLD | NEW |