Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Side by Side Diff: ipc/ipc_test_messages.h

Issue 1493413004: ipc: Allow attachment brokering for shared memory handles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp1
Patch Set: Fix more tests. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ipc/ipc_message_utils.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Multiply-included file, no traditional include guard.
6 #include "build/build_config.h" 6 #include "build/build_config.h"
7 7
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #define IPC_MESSAGE_START IPCTestMsgStart 9 #define IPC_MESSAGE_START IPCTestMsgStart
10 10
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 #include "base/memory/shared_memory_handle.h"
12 #include "ipc/handle_win.h" 13 #include "ipc/handle_win.h"
13 14
14 IPC_MESSAGE_CONTROL3(TestHandleWinMsg, int, IPC::HandleWin, int) 15 IPC_MESSAGE_CONTROL3(TestHandleWinMsg, int, IPC::HandleWin, int)
15 IPC_MESSAGE_CONTROL2(TestTwoHandleWinMsg, IPC::HandleWin, IPC::HandleWin) 16 IPC_MESSAGE_CONTROL2(TestTwoHandleWinMsg, IPC::HandleWin, IPC::HandleWin)
17 IPC_MESSAGE_CONTROL1(TestSharedMemoryHandleMsg1, base::SharedMemoryHandle)
16 #endif // defined(OS_WIN) 18 #endif // defined(OS_WIN)
17 19
18 #if defined(OS_MACOSX) 20 #if defined(OS_MACOSX)
19 #include "base/file_descriptor_posix.h" 21 #include "base/file_descriptor_posix.h"
20 #include "base/memory/shared_memory_handle.h" 22 #include "base/memory/shared_memory_handle.h"
21 23
22 IPC_MESSAGE_CONTROL3(TestSharedMemoryHandleMsg1, 24 IPC_MESSAGE_CONTROL3(TestSharedMemoryHandleMsg1,
23 int, 25 int,
24 base::SharedMemoryHandle, 26 base::SharedMemoryHandle,
25 int) 27 int)
26 IPC_MESSAGE_CONTROL2(TestSharedMemoryHandleMsg2, 28 IPC_MESSAGE_CONTROL2(TestSharedMemoryHandleMsg2,
27 base::SharedMemoryHandle, 29 base::SharedMemoryHandle,
28 base::SharedMemoryHandle) 30 base::SharedMemoryHandle)
29 IPC_MESSAGE_CONTROL4(TestSharedMemoryHandleMsg3, 31 IPC_MESSAGE_CONTROL4(TestSharedMemoryHandleMsg3,
30 base::FileDescriptor, 32 base::FileDescriptor,
31 base::SharedMemoryHandle, 33 base::SharedMemoryHandle,
32 base::FileDescriptor, 34 base::FileDescriptor,
33 base::SharedMemoryHandle) 35 base::SharedMemoryHandle)
34 IPC_MESSAGE_CONTROL1(TestSharedMemoryHandleMsg4, int) 36 IPC_MESSAGE_CONTROL1(TestSharedMemoryHandleMsg4, int)
35 37
36 #endif // defined(OS_MACOSX) 38 #endif // defined(OS_MACOSX)
OLDNEW
« no previous file with comments | « ipc/ipc_message_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698