OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 // Multiply-included file, no traditional include guard. |
5 #include "build/build_config.h" | 6 #include "build/build_config.h" |
6 | 7 |
| 8 #include "ipc/ipc_message_macros.h" |
| 9 #define IPC_MESSAGE_START IPCTestMsgStart |
| 10 |
7 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
8 #include "ipc/handle_win.h" | 12 #include "ipc/handle_win.h" |
9 #include "ipc/ipc_message_macros.h" | |
10 #define IPC_MESSAGE_START IPCTestMsgStart | |
11 | 13 |
12 IPC_MESSAGE_CONTROL3(TestHandleWinMsg, int, IPC::HandleWin, int) | 14 IPC_MESSAGE_CONTROL3(TestHandleWinMsg, int, IPC::HandleWin, int) |
13 IPC_MESSAGE_CONTROL2(TestTwoHandleWinMsg, IPC::HandleWin, IPC::HandleWin) | 15 IPC_MESSAGE_CONTROL2(TestTwoHandleWinMsg, IPC::HandleWin, IPC::HandleWin) |
14 #endif // defined(OS_WIN) | 16 #endif // defined(OS_WIN) |
| 17 |
| 18 #if defined(OS_MACOSX) |
| 19 #include "base/file_descriptor_posix.h" |
| 20 #include "base/memory/shared_memory_handle.h" |
| 21 |
| 22 IPC_MESSAGE_CONTROL3(TestSharedMemoryHandleMsg1, |
| 23 int, |
| 24 base::SharedMemoryHandle, |
| 25 int) |
| 26 IPC_MESSAGE_CONTROL2(TestSharedMemoryHandleMsg2, |
| 27 base::SharedMemoryHandle, |
| 28 base::SharedMemoryHandle) |
| 29 IPC_MESSAGE_CONTROL4(TestSharedMemoryHandleMsg3, |
| 30 base::FileDescriptor, |
| 31 base::SharedMemoryHandle, |
| 32 base::FileDescriptor, |
| 33 base::SharedMemoryHandle) |
| 34 #endif // defined(OS_MACOSX) |
OLD | NEW |