| 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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #if defined(OS_POSIX) | 7 #if defined(OS_POSIX) |
| 8 #if defined(OS_MACOSX) | 8 #if defined(OS_MACOSX) |
| 9 extern "C" { | 9 extern "C" { |
| 10 #include <sandbox.h> | 10 #include <sandbox.h> |
| 11 }; | 11 }; |
| 12 #endif | 12 #endif |
| 13 #include <fcntl.h> | 13 #include <fcntl.h> |
| 14 #include <stddef.h> | 14 #include <stddef.h> |
| 15 #include <sys/socket.h> | 15 #include <sys/socket.h> |
| 16 #include <sys/stat.h> | 16 #include <sys/stat.h> |
| 17 #include <unistd.h> | 17 #include <unistd.h> |
| 18 | 18 |
| 19 #include <memory> | 19 #include <memory> |
| 20 #include <queue> | 20 #include <queue> |
| 21 | 21 |
| 22 #include "base/callback.h" | 22 #include "base/callback.h" |
| 23 #include "base/file_descriptor_posix.h" | 23 #include "base/file_descriptor_posix.h" |
| 24 #include "base/location.h" | 24 #include "base/location.h" |
| 25 #include "base/pickle.h" | 25 #include "base/pickle.h" |
| 26 #include "base/posix/eintr_wrapper.h" | 26 #include "base/posix/eintr_wrapper.h" |
| 27 #include "base/run_loop.h" | 27 #include "base/run_loop.h" |
| 28 #include "base/single_thread_task_runner.h" | 28 #include "base/single_thread_task_runner.h" |
| 29 #include "base/synchronization/waitable_event.h" | 29 #include "base/synchronization/waitable_event.h" |
| 30 #include "base/threading/thread.h" |
| 30 #include "base/threading/thread_task_runner_handle.h" | 31 #include "base/threading/thread_task_runner_handle.h" |
| 31 #include "ipc/ipc_message_attachment_set.h" | 32 #include "ipc/ipc_message_attachment_set.h" |
| 32 #include "ipc/ipc_message_utils.h" | 33 #include "ipc/ipc_message_utils.h" |
| 33 #include "ipc/ipc_test_base.h" | 34 #include "ipc/ipc_test_base.h" |
| 34 | 35 |
| 35 #if defined(OS_POSIX) | 36 #if defined(OS_POSIX) |
| 36 #include "base/macros.h" | 37 #include "base/macros.h" |
| 37 #endif | 38 #endif |
| 38 | 39 |
| 39 #if defined(OS_MACOSX) | 40 #if defined(OS_MACOSX) |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 base::WaitableEvent received_; | 388 base::WaitableEvent received_; |
| 388 }; | 389 }; |
| 389 | 390 |
| 390 TEST_F(IPCMultiSendingFdsTest, StressTest) { | 391 TEST_F(IPCMultiSendingFdsTest, StressTest) { |
| 391 Run(); | 392 Run(); |
| 392 } | 393 } |
| 393 | 394 |
| 394 } // namespace | 395 } // namespace |
| 395 | 396 |
| 396 #endif // defined(OS_POSIX) | 397 #endif // defined(OS_POSIX) |
| OLD | NEW |