erikchen | 98daa73 | 2015-09-25 18:30:03 | [diff] [blame] | 1 | // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
erikchen | b82097cc | 2015-10-12 23:27:55 | [diff] [blame] | 5 | // Multiply-included file, no traditional include guard. |
erikchen | 98daa73 | 2015-09-25 18:30:03 | [diff] [blame] | 6 | #include "build/build_config.h" |
| 7 | |
erikchen | b82097cc | 2015-10-12 23:27:55 | [diff] [blame] | 8 | #include "ipc/ipc_message_macros.h" |
| 9 | #define IPC_MESSAGE_START IPCTestMsgStart |
| 10 | |
erikchen | 98daa73 | 2015-09-25 18:30:03 | [diff] [blame] | 11 | #if defined(OS_WIN) |
erikchen | 3d87ecf7 | 2016-01-08 02:17:04 | [diff] [blame] | 12 | #include "base/memory/shared_memory_handle.h" |
erikchen | 98daa73 | 2015-09-25 18:30:03 | [diff] [blame] | 13 | #include "ipc/handle_win.h" |
erikchen | 98daa73 | 2015-09-25 18:30:03 | [diff] [blame] | 14 | |
| 15 | IPC_MESSAGE_CONTROL3(TestHandleWinMsg, int, IPC::HandleWin, int) |
| 16 | IPC_MESSAGE_CONTROL2(TestTwoHandleWinMsg, IPC::HandleWin, IPC::HandleWin) |
erikchen | 3d87ecf7 | 2016-01-08 02:17:04 | [diff] [blame] | 17 | IPC_MESSAGE_CONTROL1(TestSharedMemoryHandleMsg1, base::SharedMemoryHandle) |
erikchen | 98daa73 | 2015-09-25 18:30:03 | [diff] [blame] | 18 | #endif // defined(OS_WIN) |
erikchen | b82097cc | 2015-10-12 23:27:55 | [diff] [blame] | 19 | |
| 20 | #if defined(OS_MACOSX) |
| 21 | #include "base/file_descriptor_posix.h" |
| 22 | #include "base/memory/shared_memory_handle.h" |
| 23 | |
| 24 | IPC_MESSAGE_CONTROL3(TestSharedMemoryHandleMsg1, |
| 25 | int, |
| 26 | base::SharedMemoryHandle, |
| 27 | int) |
| 28 | IPC_MESSAGE_CONTROL2(TestSharedMemoryHandleMsg2, |
| 29 | base::SharedMemoryHandle, |
| 30 | base::SharedMemoryHandle) |
| 31 | IPC_MESSAGE_CONTROL4(TestSharedMemoryHandleMsg3, |
| 32 | base::FileDescriptor, |
| 33 | base::SharedMemoryHandle, |
| 34 | base::FileDescriptor, |
| 35 | base::SharedMemoryHandle) |
erikchen | 7c55643 | 2015-11-11 22:07:27 | [diff] [blame] | 36 | IPC_MESSAGE_CONTROL1(TestSharedMemoryHandleMsg4, int) |
| 37 | |
erikchen | b82097cc | 2015-10-12 23:27:55 | [diff] [blame] | 38 | #endif // defined(OS_MACOSX) |