| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <string> |
| 6 |
| 5 #include "ipc/ipc_message_macros.h" | 7 #include "ipc/ipc_message_macros.h" |
| 6 | 8 |
| 7 IPC_BEGIN_MESSAGES(Test) | 9 IPC_BEGIN_MESSAGES(Test) |
| 8 IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_NoArgs) | 10 IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_NoArgs) |
| 9 | 11 |
| 10 IPC_SYNC_MESSAGE_CONTROL0_1(SyncChannelTestMsg_AnswerToLife, | 12 IPC_SYNC_MESSAGE_CONTROL0_1(SyncChannelTestMsg_AnswerToLife, |
| 11 int /* answer */) | 13 int /* answer */) |
| 12 | 14 |
| 13 IPC_SYNC_MESSAGE_CONTROL1_1(SyncChannelTestMsg_Double, | 15 IPC_SYNC_MESSAGE_CONTROL1_1(SyncChannelTestMsg_Double, |
| 14 int /* in */, | 16 int /* in */, |
| 15 int /* out */) | 17 int /* out */) |
| 16 | 18 |
| 19 IPC_SYNC_MESSAGE_CONTROL0_1(SyncChannelNestedTestMsg_String, |
| 20 std::string) |
| 21 |
| 17 // out1 is false | 22 // out1 is false |
| 18 IPC_SYNC_MESSAGE_CONTROL0_1(Msg_C_0_1, bool) | 23 IPC_SYNC_MESSAGE_CONTROL0_1(Msg_C_0_1, bool) |
| 19 | 24 |
| 20 // out1 is true, out2 is 2 | 25 // out1 is true, out2 is 2 |
| 21 IPC_SYNC_MESSAGE_CONTROL0_2(Msg_C_0_2, bool, int) | 26 IPC_SYNC_MESSAGE_CONTROL0_2(Msg_C_0_2, bool, int) |
| 22 | 27 |
| 23 // out1 is false, out2 is 3, out3 is "0_3" | 28 // out1 is false, out2 is 3, out3 is "0_3" |
| 24 IPC_SYNC_MESSAGE_CONTROL0_3(Msg_C_0_3, bool, int, std::string) | 29 IPC_SYNC_MESSAGE_CONTROL0_3(Msg_C_0_3, bool, int, std::string) |
| 25 | 30 |
| 26 // in1 must be 1, out1 is true | 31 // in1 must be 1, out1 is true |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // in1 must be "3_3", in2 must be false, in3 must be 2, out1 is true, out2 | 94 // in1 must be "3_3", in2 must be false, in3 must be 2, out1 is true, out2 |
| 90 // is 32 | 95 // is 32 |
| 91 IPC_SYNC_MESSAGE_ROUTED3_2(Msg_R_3_2, std::string, bool, int, bool, int) | 96 IPC_SYNC_MESSAGE_ROUTED3_2(Msg_R_3_2, std::string, bool, int, bool, int) |
| 92 | 97 |
| 93 // in1 must be 3, in2 must be "3_3", in3 must be true, out1 is "3_3", out2 is | 98 // in1 must be 3, in2 must be "3_3", in3 must be true, out1 is "3_3", out2 is |
| 94 // 33, out3 is false | 99 // 33, out3 is false |
| 95 IPC_SYNC_MESSAGE_ROUTED3_3(Msg_R_3_3, int, std::string, bool, std::string, | 100 IPC_SYNC_MESSAGE_ROUTED3_3(Msg_R_3_3, int, std::string, bool, std::string, |
| 96 int, bool) | 101 int, bool) |
| 97 | 102 |
| 98 IPC_END_MESSAGES(Test) | 103 IPC_END_MESSAGES(Test) |
| OLD | NEW |