blob: a61d1b013d2434b83317eb60a0f2240aac3a5e13 [file] [log] [blame]
erikchen98daa732015-09-25 18:30:031// 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
erikchenb82097cc2015-10-12 23:27:555// Multiply-included file, no traditional include guard.
erikchen98daa732015-09-25 18:30:036#include "build/build_config.h"
7
erikchenb82097cc2015-10-12 23:27:558#include "ipc/ipc_message_macros.h"
9#define IPC_MESSAGE_START IPCTestMsgStart
10
erikchen98daa732015-09-25 18:30:0311#if defined(OS_WIN)
erikchen3d87ecf72016-01-08 02:17:0412#include "base/memory/shared_memory_handle.h"
erikchen98daa732015-09-25 18:30:0313#include "ipc/handle_win.h"
erikchen98daa732015-09-25 18:30:0314
15IPC_MESSAGE_CONTROL3(TestHandleWinMsg, int, IPC::HandleWin, int)
16IPC_MESSAGE_CONTROL2(TestTwoHandleWinMsg, IPC::HandleWin, IPC::HandleWin)
erikchen3d87ecf72016-01-08 02:17:0417IPC_MESSAGE_CONTROL1(TestSharedMemoryHandleMsg1, base::SharedMemoryHandle)
erikchen98daa732015-09-25 18:30:0318#endif // defined(OS_WIN)
erikchenb82097cc2015-10-12 23:27:5519
20#if defined(OS_MACOSX)
21#include "base/file_descriptor_posix.h"
22#include "base/memory/shared_memory_handle.h"
23
24IPC_MESSAGE_CONTROL3(TestSharedMemoryHandleMsg1,
25 int,
26 base::SharedMemoryHandle,
27 int)
28IPC_MESSAGE_CONTROL2(TestSharedMemoryHandleMsg2,
29 base::SharedMemoryHandle,
30 base::SharedMemoryHandle)
31IPC_MESSAGE_CONTROL4(TestSharedMemoryHandleMsg3,
32 base::FileDescriptor,
33 base::SharedMemoryHandle,
34 base::FileDescriptor,
35 base::SharedMemoryHandle)
erikchen7c556432015-11-11 22:07:2736IPC_MESSAGE_CONTROL1(TestSharedMemoryHandleMsg4, int)
37
erikchenb82097cc2015-10-12 23:27:5538#endif // defined(OS_MACOSX)