blob: da1699a7c9efc48a81ecb82d082a35af51aad113 [file] [log] [blame]
[email protected]298ee7d2012-03-30 21:29:301// Copyright (c) 2012 The Chromium Authors. All rights reserved.
license.botbf09a502008-08-24 00:55:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commit09911bf2008-07-26 23:55:294
[email protected]ac0efda2009-10-14 16:22:025#include <string>
6
[email protected]946d1b22009-07-22 23:57:217#include "ipc/ipc_message_macros.h"
Lei Zhangf038b172021-05-04 06:59:228#include "ipc/ipc_message_start.h"
initial.commit09911bf2008-07-26 23:55:299
[email protected]21fa3a12010-12-08 23:34:1610#define IPC_MESSAGE_START TestMsgStart
[email protected]f91cb992009-02-04 20:10:1211
[email protected]21fa3a12010-12-08 23:34:1612IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_NoArgs)
[email protected]f91cb992009-02-04 20:10:1213
[email protected]21fa3a12010-12-08 23:34:1614IPC_SYNC_MESSAGE_CONTROL0_1(SyncChannelTestMsg_AnswerToLife,
15 int /* answer */)
[email protected]f91cb992009-02-04 20:10:1216
[email protected]21fa3a12010-12-08 23:34:1617IPC_SYNC_MESSAGE_CONTROL1_1(SyncChannelTestMsg_Double,
18 int /* in */,
19 int /* out */)
[email protected]ac0efda2009-10-14 16:22:0220
[email protected]21fa3a12010-12-08 23:34:1621IPC_SYNC_MESSAGE_CONTROL0_1(SyncChannelNestedTestMsg_String,
22 std::string)
initial.commit09911bf2008-07-26 23:55:2923
[email protected]21fa3a12010-12-08 23:34:1624// out1 is false
25IPC_SYNC_MESSAGE_CONTROL0_1(Msg_C_0_1, bool)
initial.commit09911bf2008-07-26 23:55:2926
[email protected]21fa3a12010-12-08 23:34:1627// out1 is true, out2 is 2
28IPC_SYNC_MESSAGE_CONTROL0_2(Msg_C_0_2, bool, int)
initial.commit09911bf2008-07-26 23:55:2929
[email protected]21fa3a12010-12-08 23:34:1630// out1 is false, out2 is 3, out3 is "0_3"
31IPC_SYNC_MESSAGE_CONTROL0_3(Msg_C_0_3, bool, int, std::string)
initial.commit09911bf2008-07-26 23:55:2932
[email protected]21fa3a12010-12-08 23:34:1633// in1 must be 1, out1 is true
34IPC_SYNC_MESSAGE_CONTROL1_1(Msg_C_1_1, int, bool)
initial.commit09911bf2008-07-26 23:55:2935
[email protected]21fa3a12010-12-08 23:34:1636// in1 must be false, out1 is true, out2 is 12
37IPC_SYNC_MESSAGE_CONTROL1_2(Msg_C_1_2, bool, bool, int)
initial.commit09911bf2008-07-26 23:55:2938
[email protected]21fa3a12010-12-08 23:34:1639// in1 must be 3, out1 is "1_3", out2 is 13, out3 is false
40IPC_SYNC_MESSAGE_CONTROL1_3(Msg_C_1_3, int, std::string, int, bool)
initial.commit09911bf2008-07-26 23:55:2941
[email protected]21fa3a12010-12-08 23:34:1642// in1 must be 1, in2 must be false, out1 is true
43IPC_SYNC_MESSAGE_CONTROL2_1(Msg_C_2_1, int, bool, bool)
initial.commit09911bf2008-07-26 23:55:2944
[email protected]21fa3a12010-12-08 23:34:1645// in1 must be false, in2 must be 2, out1 is true, out2 is 22
46IPC_SYNC_MESSAGE_CONTROL2_2(Msg_C_2_2, bool, int, bool, int)
initial.commit09911bf2008-07-26 23:55:2947
[email protected]21fa3a12010-12-08 23:34:1648// in1 must be 3, in2 must be true, out1 is "2_3", out2 is 23, out3 is false
49IPC_SYNC_MESSAGE_CONTROL2_3(Msg_C_2_3, int, bool, std::string, int, bool)
initial.commit09911bf2008-07-26 23:55:2950
[email protected]21fa3a12010-12-08 23:34:1651// in1 must be 1, in2 must be false, in3 must be "3_1", out1 is true
52IPC_SYNC_MESSAGE_CONTROL3_1(Msg_C_3_1, int, bool, std::string, bool)
initial.commit09911bf2008-07-26 23:55:2953
[email protected]21fa3a12010-12-08 23:34:1654// in1 must be "3_3", in2 must be false, in3 must be 2, out1 is true, out2 is
55// 32
56IPC_SYNC_MESSAGE_CONTROL3_2(Msg_C_3_2, std::string, bool, int, bool, int)
initial.commit09911bf2008-07-26 23:55:2957
[email protected]21fa3a12010-12-08 23:34:1658// in1 must be 3, in2 must be "3_3", in3 must be true, out1 is "3_3", out2 is
59// 33, out3 is false
60IPC_SYNC_MESSAGE_CONTROL3_3(Msg_C_3_3, int, std::string, bool, std::string,
61 int, bool)
initial.commit09911bf2008-07-26 23:55:2962
[email protected]21fa3a12010-12-08 23:34:1663// in1 must be true, in2 must be 3, in3 must be "3_4", out1 is 34, out2 is
64// true, out3 is "3_4", out3 is false
65IPC_SYNC_MESSAGE_CONTROL3_4(Msg_C_3_4, bool, int, std::string, int, bool,
66 std::string, bool)
initial.commit09911bf2008-07-26 23:55:2967
[email protected]21fa3a12010-12-08 23:34:1668// NOTE: routed messages are just a copy of the above...
initial.commit09911bf2008-07-26 23:55:2969
[email protected]21fa3a12010-12-08 23:34:1670// out1 is false
71IPC_SYNC_MESSAGE_ROUTED0_1(Msg_R_0_1, bool)
initial.commit09911bf2008-07-26 23:55:2972
[email protected]21fa3a12010-12-08 23:34:1673// out1 is true, out2 is 2
74IPC_SYNC_MESSAGE_ROUTED0_2(Msg_R_0_2, bool, int)
initial.commit09911bf2008-07-26 23:55:2975
[email protected]21fa3a12010-12-08 23:34:1676// out1 is false, out2 is 3, out3 is "0_3"
77IPC_SYNC_MESSAGE_ROUTED0_3(Msg_R_0_3, bool, int, std::string)
initial.commit09911bf2008-07-26 23:55:2978
[email protected]21fa3a12010-12-08 23:34:1679// in1 must be 1, out1 is true
80IPC_SYNC_MESSAGE_ROUTED1_1(Msg_R_1_1, int, bool)
initial.commit09911bf2008-07-26 23:55:2981
[email protected]21fa3a12010-12-08 23:34:1682// in1 must be false, out1 is true, out2 is 12
83IPC_SYNC_MESSAGE_ROUTED1_2(Msg_R_1_2, bool, bool, int)
initial.commit09911bf2008-07-26 23:55:2984
[email protected]21fa3a12010-12-08 23:34:1685// in1 must be 3, out1 is "1_3", out2 is 13, out3 is false
86IPC_SYNC_MESSAGE_ROUTED1_3(Msg_R_1_3, int, std::string, int, bool)
initial.commit09911bf2008-07-26 23:55:2987
[email protected]21fa3a12010-12-08 23:34:1688// in1 must be 1, in2 must be false, out1 is true
89IPC_SYNC_MESSAGE_ROUTED2_1(Msg_R_2_1, int, bool, bool)
initial.commit09911bf2008-07-26 23:55:2990
[email protected]21fa3a12010-12-08 23:34:1691// in1 must be false, in2 must be 2, out1 is true, out2 is 22
92IPC_SYNC_MESSAGE_ROUTED2_2(Msg_R_2_2, bool, int, bool, int)
initial.commit09911bf2008-07-26 23:55:2993
[email protected]21fa3a12010-12-08 23:34:1694// in1 must be 3, in2 must be true, out1 is "2_3", out2 is 23, out3 is false
95IPC_SYNC_MESSAGE_ROUTED2_3(Msg_R_2_3, int, bool, std::string, int, bool)
initial.commit09911bf2008-07-26 23:55:2996
[email protected]21fa3a12010-12-08 23:34:1697// in1 must be 1, in2 must be false, in3 must be "3_1", out1 is true
98IPC_SYNC_MESSAGE_ROUTED3_1(Msg_R_3_1, int, bool, std::string, bool)
initial.commit09911bf2008-07-26 23:55:2999
[email protected]21fa3a12010-12-08 23:34:16100// in1 must be "3_3", in2 must be false, in3 must be 2, out1 is true, out2
101// is 32
102IPC_SYNC_MESSAGE_ROUTED3_2(Msg_R_3_2, std::string, bool, int, bool, int)
initial.commit09911bf2008-07-26 23:55:29103
[email protected]21fa3a12010-12-08 23:34:16104// in1 must be 3, in2 must be "3_3", in3 must be true, out1 is "3_3", out2 is
105// 33, out3 is false
106IPC_SYNC_MESSAGE_ROUTED3_3(Msg_R_3_3, int, std::string, bool, std::string,
107 int, bool)
[email protected]751bf4b2010-11-05 22:06:31108
[email protected]21fa3a12010-12-08 23:34:16109// in1 must be true, in2 must be 3, in3 must be "3_4", out1 is 34, out2 is
110// true, out3 is "3_4", out4 is false
111IPC_SYNC_MESSAGE_ROUTED3_4(Msg_R_3_4, bool, int, std::string, int, bool,
112 std::string, bool)
[email protected]54af05f2011-04-08 03:38:21113
114IPC_MESSAGE_CONTROL1(SyncChannelTestMsg_Ping, int)
[email protected]298ee7d2012-03-30 21:29:30115IPC_SYNC_MESSAGE_CONTROL1_1(SyncChannelTestMsg_PingTTL, int, int)
[email protected]54af05f2011-04-08 03:38:21116IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_Done)
[email protected]9134cce6d2012-04-10 20:07:53117
118// Messages for ReentrantReply test.
119IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_Reentrant1)
120IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_Reentrant2)
121IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_Reentrant3)