license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 1 | // Copyright (c) 2006-2008 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. |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 4 | |
| 5 | #include "chrome/common/ipc_message_macros.h" |
| 6 | |
[email protected] | f91cb99 | 2009-02-04 20:10:12 | [diff] [blame^] | 7 | IPC_BEGIN_MESSAGES(Test) |
| 8 | IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_NoArgs) |
| 9 | |
| 10 | IPC_SYNC_MESSAGE_CONTROL0_1(SyncChannelTestMsg_AnswerToLife, |
| 11 | int /* answer */) |
| 12 | |
| 13 | IPC_SYNC_MESSAGE_CONTROL1_1(SyncChannelTestMsg_Double, |
| 14 | int /* in */, |
| 15 | int /* out */) |
| 16 | |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 17 | // out1 is false |
| 18 | IPC_SYNC_MESSAGE_CONTROL0_1(Msg_C_0_1, bool) |
| 19 | |
| 20 | // out1 is true, out2 is 2 |
| 21 | IPC_SYNC_MESSAGE_CONTROL0_2(Msg_C_0_2, bool, int) |
| 22 | |
| 23 | // out1 is false, out2 is 3, out3 is "0_3" |
| 24 | IPC_SYNC_MESSAGE_CONTROL0_3(Msg_C_0_3, bool, int, std::string) |
| 25 | |
| 26 | // in1 must be 1, out1 is true |
| 27 | IPC_SYNC_MESSAGE_CONTROL1_1(Msg_C_1_1, int, bool) |
| 28 | |
| 29 | // in1 must be false, out1 is true, out2 is 12 |
| 30 | IPC_SYNC_MESSAGE_CONTROL1_2(Msg_C_1_2, bool, bool, int) |
| 31 | |
| 32 | // in1 must be 3, out1 is "1_3", out2 is 13, out3 is false |
| 33 | IPC_SYNC_MESSAGE_CONTROL1_3(Msg_C_1_3, int, std::string, int, bool) |
| 34 | |
| 35 | // in1 must be 1, in2 must be false, out1 is true |
| 36 | IPC_SYNC_MESSAGE_CONTROL2_1(Msg_C_2_1, int, bool, bool) |
| 37 | |
| 38 | // in1 must be false, in2 must be 2, out1 is true, out2 is 22 |
| 39 | IPC_SYNC_MESSAGE_CONTROL2_2(Msg_C_2_2, bool, int, bool, int) |
| 40 | |
| 41 | // in1 must be 3, in2 must be true, out1 is "2_3", out2 is 23, out3 is false |
| 42 | IPC_SYNC_MESSAGE_CONTROL2_3(Msg_C_2_3, int, bool, std::string, int, bool) |
| 43 | |
| 44 | // in1 must be 1, in2 must be false, in3 must be "3_1", out1 is true |
| 45 | IPC_SYNC_MESSAGE_CONTROL3_1(Msg_C_3_1, int, bool, std::string, bool) |
| 46 | |
| 47 | // in1 must be "3_3", in2 must be false, in3 must be 2, out1 is true, out2 is 32 |
| 48 | IPC_SYNC_MESSAGE_CONTROL3_2(Msg_C_3_2, std::string, bool, int, bool, int) |
| 49 | |
| 50 | // in1 must be 3, in2 must be "3_3", in3 must be true, out1 is "3_3", out2 is 33, out3 is false |
| 51 | IPC_SYNC_MESSAGE_CONTROL3_3(Msg_C_3_3, int, std::string, bool, std::string, int, bool) |
| 52 | |
| 53 | |
| 54 | // NOTE: routed messages are just a copy of the above... |
| 55 | |
| 56 | // out1 is false |
| 57 | IPC_SYNC_MESSAGE_ROUTED0_1(Msg_R_0_1, bool) |
| 58 | |
| 59 | // out1 is true, out2 is 2 |
| 60 | IPC_SYNC_MESSAGE_ROUTED0_2(Msg_R_0_2, bool, int) |
| 61 | |
| 62 | // out1 is false, out2 is 3, out3 is "0_3" |
| 63 | IPC_SYNC_MESSAGE_ROUTED0_3(Msg_R_0_3, bool, int, std::string) |
| 64 | |
| 65 | // in1 must be 1, out1 is true |
| 66 | IPC_SYNC_MESSAGE_ROUTED1_1(Msg_R_1_1, int, bool) |
| 67 | |
| 68 | // in1 must be false, out1 is true, out2 is 12 |
| 69 | IPC_SYNC_MESSAGE_ROUTED1_2(Msg_R_1_2, bool, bool, int) |
| 70 | |
| 71 | // in1 must be 3, out1 is "1_3", out2 is 13, out3 is false |
| 72 | IPC_SYNC_MESSAGE_ROUTED1_3(Msg_R_1_3, int, std::string, int, bool) |
| 73 | |
| 74 | // in1 must be 1, in2 must be false, out1 is true |
| 75 | IPC_SYNC_MESSAGE_ROUTED2_1(Msg_R_2_1, int, bool, bool) |
| 76 | |
| 77 | // in1 must be false, in2 must be 2, out1 is true, out2 is 22 |
| 78 | IPC_SYNC_MESSAGE_ROUTED2_2(Msg_R_2_2, bool, int, bool, int) |
| 79 | |
| 80 | // in1 must be 3, in2 must be true, out1 is "2_3", out2 is 23, out3 is false |
| 81 | IPC_SYNC_MESSAGE_ROUTED2_3(Msg_R_2_3, int, bool, std::string, int, bool) |
| 82 | |
| 83 | // in1 must be 1, in2 must be false, in3 must be "3_1", out1 is true |
| 84 | IPC_SYNC_MESSAGE_ROUTED3_1(Msg_R_3_1, int, bool, std::string, bool) |
| 85 | |
| 86 | // in1 must be "3_3", in2 must be false, in3 must be 2, out1 is true, out2 is 32 |
| 87 | IPC_SYNC_MESSAGE_ROUTED3_2(Msg_R_3_2, std::string, bool, int, bool, int) |
| 88 | |
| 89 | // in1 must be 3, in2 must be "3_3", in3 must be true, out1 is "3_3", out2 is 33, out3 is false |
| 90 | IPC_SYNC_MESSAGE_ROUTED3_3(Msg_R_3_3, int, std::string, bool, std::string, int, bool) |
| 91 | |
| 92 | IPC_END_MESSAGES(TestMsg) |
license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 93 | |