OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #include "chrome/common/ipc_message_macros.h" | |
6 | |
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 | |
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 | |
48 // 32 | |
49 IPC_SYNC_MESSAGE_CONTROL3_2(Msg_C_3_2, std::string, bool, int, bool, int) | |
50 | |
51 // in1 must be 3, in2 must be "3_3", in3 must be true, out1 is "3_3", out2 is | |
52 // 33, out3 is false | |
53 IPC_SYNC_MESSAGE_CONTROL3_3(Msg_C_3_3, int, std::string, bool, std::string, | |
54 int, bool) | |
55 | |
56 | |
57 // NOTE: routed messages are just a copy of the above... | |
58 | |
59 // out1 is false | |
60 IPC_SYNC_MESSAGE_ROUTED0_1(Msg_R_0_1, bool) | |
61 | |
62 // out1 is true, out2 is 2 | |
63 IPC_SYNC_MESSAGE_ROUTED0_2(Msg_R_0_2, bool, int) | |
64 | |
65 // out1 is false, out2 is 3, out3 is "0_3" | |
66 IPC_SYNC_MESSAGE_ROUTED0_3(Msg_R_0_3, bool, int, std::string) | |
67 | |
68 // in1 must be 1, out1 is true | |
69 IPC_SYNC_MESSAGE_ROUTED1_1(Msg_R_1_1, int, bool) | |
70 | |
71 // in1 must be false, out1 is true, out2 is 12 | |
72 IPC_SYNC_MESSAGE_ROUTED1_2(Msg_R_1_2, bool, bool, int) | |
73 | |
74 // in1 must be 3, out1 is "1_3", out2 is 13, out3 is false | |
75 IPC_SYNC_MESSAGE_ROUTED1_3(Msg_R_1_3, int, std::string, int, bool) | |
76 | |
77 // in1 must be 1, in2 must be false, out1 is true | |
78 IPC_SYNC_MESSAGE_ROUTED2_1(Msg_R_2_1, int, bool, bool) | |
79 | |
80 // in1 must be false, in2 must be 2, out1 is true, out2 is 22 | |
81 IPC_SYNC_MESSAGE_ROUTED2_2(Msg_R_2_2, bool, int, bool, int) | |
82 | |
83 // in1 must be 3, in2 must be true, out1 is "2_3", out2 is 23, out3 is false | |
84 IPC_SYNC_MESSAGE_ROUTED2_3(Msg_R_2_3, int, bool, std::string, int, bool) | |
85 | |
86 // in1 must be 1, in2 must be false, in3 must be "3_1", out1 is true | |
87 IPC_SYNC_MESSAGE_ROUTED3_1(Msg_R_3_1, int, bool, std::string, bool) | |
88 | |
89 // in1 must be "3_3", in2 must be false, in3 must be 2, out1 is true, out2 | |
90 // is 32 | |
91 IPC_SYNC_MESSAGE_ROUTED3_2(Msg_R_3_2, std::string, bool, int, bool, int) | |
92 | |
93 // in1 must be 3, in2 must be "3_3", in3 must be true, out1 is "3_3", out2 is | |
94 // 33, out3 is false | |
95 IPC_SYNC_MESSAGE_ROUTED3_3(Msg_R_3_3, int, std::string, bool, std::string, | |
96 int, bool) | |
97 | |
98 IPC_END_MESSAGES(TestMsg) | |
OLD | NEW |