blob: d1247cbf68312627ea09d464f7e173806f36cea8 [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)
12#include "ipc/handle_win.h"
erikchen98daa732015-09-25 18:30:0313
14IPC_MESSAGE_CONTROL3(TestHandleWinMsg, int, IPC::HandleWin, int)
15IPC_MESSAGE_CONTROL2(TestTwoHandleWinMsg, IPC::HandleWin, IPC::HandleWin)
16#endif // defined(OS_WIN)
erikchenb82097cc2015-10-12 23:27:5517
18#if defined(OS_MACOSX)
19#include "base/file_descriptor_posix.h"
20#include "base/memory/shared_memory_handle.h"
21
22IPC_MESSAGE_CONTROL3(TestSharedMemoryHandleMsg1,
23 int,
24 base::SharedMemoryHandle,
25 int)
26IPC_MESSAGE_CONTROL2(TestSharedMemoryHandleMsg2,
27 base::SharedMemoryHandle,
28 base::SharedMemoryHandle)
29IPC_MESSAGE_CONTROL4(TestSharedMemoryHandleMsg3,
30 base::FileDescriptor,
31 base::SharedMemoryHandle,
32 base::FileDescriptor,
33 base::SharedMemoryHandle)
34#endif // defined(OS_MACOSX)