blob: 114aca6fb6b164a784e1495a2d1884668a72a5aa [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"
initial.commit09911bf2008-07-26 23:55:298
[email protected]21fa3a12010-12-08 23:34:169#define IPC_MESSAGE_START TestMsgStart
[email protected]f91cb992009-02-04 20:10:1210
[email protected]21fa3a12010-12-08 23:34:1611IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_NoArgs)
[email protected]f91cb992009-02-04 20:10:1212
[email protected]21fa3a12010-12-08 23:34:1613IPC_SYNC_MESSAGE_CONTROL0_1(SyncChannelTestMsg_AnswerToLife,
14 int /* answer */)
[email protected]f91cb992009-02-04 20:10:1215
[email protected]21fa3a12010-12-08 23:34:1616IPC_SYNC_MESSAGE_CONTROL1_1(SyncChannelTestMsg_Double,
17 int /* in */,
18 int /* out */)
[email protected]ac0efda2009-10-14 16:22:0219
[email protected]21fa3a12010-12-08 23:34:1620IPC_SYNC_MESSAGE_CONTROL0_1(SyncChannelNestedTestMsg_String,
21 std::string)
initial.commit09911bf2008-07-26 23:55:2922
[email protected]21fa3a12010-12-08 23:34:1623// out1 is false
24IPC_SYNC_MESSAGE_CONTROL0_1(Msg_C_0_1, bool)
initial.commit09911bf2008-07-26 23:55:2925
[email protected]21fa3a12010-12-08 23:34:1626// out1 is true, out2 is 2
27IPC_SYNC_MESSAGE_CONTROL0_2(Msg_C_0_2, bool, int)
initial.commit09911bf2008-07-26 23:55:2928
[email protected]21fa3a12010-12-08 23:34:1629// out1 is false, out2 is 3, out3 is "0_3"
30IPC_SYNC_MESSAGE_CONTROL0_3(Msg_C_0_3, bool, int, std::string)
initial.commit09911bf2008-07-26 23:55:2931
[email protected]21fa3a12010-12-08 23:34:1632// in1 must be 1, out1 is true
33IPC_SYNC_MESSAGE_CONTROL1_1(Msg_C_1_1, int, bool)
initial.commit09911bf2008-07-26 23:55:2934
[email protected]21fa3a12010-12-08 23:34:1635// in1 must be false, out1 is true, out2 is 12
36IPC_SYNC_MESSAGE_CONTROL1_2(Msg_C_1_2, bool, bool, int)
initial.commit09911bf2008-07-26 23:55:2937
[email protected]21fa3a12010-12-08 23:34:1638// in1 must be 3, out1 is "1_3", out2 is 13, out3 is false
39IPC_SYNC_MESSAGE_CONTROL1_3(Msg_C_1_3, int, std::string, int, bool)
initial.commit09911bf2008-07-26 23:55:2940
[email protected]21fa3a12010-12-08 23:34:1641// in1 must be 1, in2 must be false, out1 is true
42IPC_SYNC_MESSAGE_CONTROL2_1(Msg_C_2_1, int, bool, bool)
initial.commit09911bf2008-07-26 23:55:2943
[email protected]21fa3a12010-12-08 23:34:1644// in1 must be false, in2 must be 2, out1 is true, out2 is 22
45IPC_SYNC_MESSAGE_CONTROL2_2(Msg_C_2_2, bool, int, bool, int)
initial.commit09911bf2008-07-26 23:55:2946
[email protected]21fa3a12010-12-08 23:34:1647// in1 must be 3, in2 must be true, out1 is "2_3", out2 is 23, out3 is false
48IPC_SYNC_MESSAGE_CONTROL2_3(Msg_C_2_3, int, bool, std::string, int, bool)
initial.commit09911bf2008-07-26 23:55:2949
[email protected]21fa3a12010-12-08 23:34:1650// in1 must be 1, in2 must be false, in3 must be "3_1", out1 is true
51IPC_SYNC_MESSAGE_CONTROL3_1(Msg_C_3_1, int, bool, std::string, bool)
initial.commit09911bf2008-07-26 23:55:2952
[email protected]21fa3a12010-12-08 23:34:1653// in1 must be "3_3", in2 must be false, in3 must be 2, out1 is true, out2 is
54// 32
55IPC_SYNC_MESSAGE_CONTROL3_2(Msg_C_3_2, std::string, bool, int, bool, int)
initial.commit09911bf2008-07-26 23:55:2956
[email protected]21fa3a12010-12-08 23:34:1657// in1 must be 3, in2 must be "3_3", in3 must be true, out1 is "3_3", out2 is
58// 33, out3 is false
59IPC_SYNC_MESSAGE_CONTROL3_3(Msg_C_3_3, int, std::string, bool, std::string,
60 int, bool)
initial.commit09911bf2008-07-26 23:55:2961
[email protected]21fa3a12010-12-08 23:34:1662// in1 must be true, in2 must be 3, in3 must be "3_4", out1 is 34, out2 is
63// true, out3 is "3_4", out3 is false
64IPC_SYNC_MESSAGE_CONTROL3_4(Msg_C_3_4, bool, int, std::string, int, bool,
65 std::string, bool)
initial.commit09911bf2008-07-26 23:55:2966
[email protected]21fa3a12010-12-08 23:34:1667// NOTE: routed messages are just a copy of the above...
initial.commit09911bf2008-07-26 23:55:2968
[email protected]21fa3a12010-12-08 23:34:1669// out1 is false
70IPC_SYNC_MESSAGE_ROUTED0_1(Msg_R_0_1, bool)
initial.commit09911bf2008-07-26 23:55:2971
[email protected]21fa3a12010-12-08 23:34:1672// out1 is true, out2 is 2
73IPC_SYNC_MESSAGE_ROUTED0_2(Msg_R_0_2, bool, int)
initial.commit09911bf2008-07-26 23:55:2974
[email protected]21fa3a12010-12-08 23:34:1675// out1 is false, out2 is 3, out3 is "0_3"
76IPC_SYNC_MESSAGE_ROUTED0_3(Msg_R_0_3, bool, int, std::string)
initial.commit09911bf2008-07-26 23:55:2977
[email protected]21fa3a12010-12-08 23:34:1678// in1 must be 1, out1 is true
79IPC_SYNC_MESSAGE_ROUTED1_1(Msg_R_1_1, int, bool)
initial.commit09911bf2008-07-26 23:55:2980
[email protected]21fa3a12010-12-08 23:34:1681// in1 must be false, out1 is true, out2 is 12
82IPC_SYNC_MESSAGE_ROUTED1_2(Msg_R_1_2, bool, bool, int)
initial.commit09911bf2008-07-26 23:55:2983
[email protected]21fa3a12010-12-08 23:34:1684// in1 must be 3, out1 is "1_3", out2 is 13, out3 is false
85IPC_SYNC_MESSAGE_ROUTED1_3(Msg_R_1_3, int, std::string, int, bool)
initial.commit09911bf2008-07-26 23:55:2986
[email protected]21fa3a12010-12-08 23:34:1687// in1 must be 1, in2 must be false, out1 is true
88IPC_SYNC_MESSAGE_ROUTED2_1(Msg_R_2_1, int, bool, bool)
initial.commit09911bf2008-07-26 23:55:2989
[email protected]21fa3a12010-12-08 23:34:1690// in1 must be false, in2 must be 2, out1 is true, out2 is 22
91IPC_SYNC_MESSAGE_ROUTED2_2(Msg_R_2_2, bool, int, bool, int)
initial.commit09911bf2008-07-26 23:55:2992
[email protected]21fa3a12010-12-08 23:34:1693// in1 must be 3, in2 must be true, out1 is "2_3", out2 is 23, out3 is false
94IPC_SYNC_MESSAGE_ROUTED2_3(Msg_R_2_3, int, bool, std::string, int, bool)
initial.commit09911bf2008-07-26 23:55:2995
[email protected]21fa3a12010-12-08 23:34:1696// in1 must be 1, in2 must be false, in3 must be "3_1", out1 is true
97IPC_SYNC_MESSAGE_ROUTED3_1(Msg_R_3_1, int, bool, std::string, bool)
initial.commit09911bf2008-07-26 23:55:2998
[email protected]21fa3a12010-12-08 23:34:1699// in1 must be "3_3", in2 must be false, in3 must be 2, out1 is true, out2
100// is 32
101IPC_SYNC_MESSAGE_ROUTED3_2(Msg_R_3_2, std::string, bool, int, bool, int)
initial.commit09911bf2008-07-26 23:55:29102
[email protected]21fa3a12010-12-08 23:34:16103// in1 must be 3, in2 must be "3_3", in3 must be true, out1 is "3_3", out2 is
104// 33, out3 is false
105IPC_SYNC_MESSAGE_ROUTED3_3(Msg_R_3_3, int, std::string, bool, std::string,
106 int, bool)
[email protected]751bf4b2010-11-05 22:06:31107
[email protected]21fa3a12010-12-08 23:34:16108// in1 must be true, in2 must be 3, in3 must be "3_4", out1 is 34, out2 is
109// true, out3 is "3_4", out4 is false
110IPC_SYNC_MESSAGE_ROUTED3_4(Msg_R_3_4, bool, int, std::string, int, bool,
111 std::string, bool)
[email protected]54af05f2011-04-08 03:38:21112
113IPC_MESSAGE_CONTROL1(SyncChannelTestMsg_Ping, int)
[email protected]298ee7d2012-03-30 21:29:30114IPC_SYNC_MESSAGE_CONTROL1_1(SyncChannelTestMsg_PingTTL, int, int)
[email protected]54af05f2011-04-08 03:38:21115IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_Done)
[email protected]9134cce6d2012-04-10 20:07:53116
117// Messages for ReentrantReply test.
118IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_Reentrant1)
119IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_Reentrant2)
120IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_Reentrant3)