Remove now-passing tests and rebaseline one after the Big Scary Roll.
[chromium-blink-merge.git] / ipc / ipc_sync_message_unittest.h
blobf4e98c11a7581b58e9636683ce54174eed8f2e0f
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.
5 #include <string>
7 #include "ipc/ipc_message_macros.h"
9 IPC_BEGIN_MESSAGES(Test)
10 IPC_SYNC_MESSAGE_CONTROL0_0(SyncChannelTestMsg_NoArgs)
12 IPC_SYNC_MESSAGE_CONTROL0_1(SyncChannelTestMsg_AnswerToLife,
13 int /* answer */)
15 IPC_SYNC_MESSAGE_CONTROL1_1(SyncChannelTestMsg_Double,
16 int /* in */,
17 int /* out */)
19 IPC_SYNC_MESSAGE_CONTROL0_1(SyncChannelNestedTestMsg_String,
20 std::string)
22 // out1 is false
23 IPC_SYNC_MESSAGE_CONTROL0_1(Msg_C_0_1, bool)
25 // out1 is true, out2 is 2
26 IPC_SYNC_MESSAGE_CONTROL0_2(Msg_C_0_2, bool, int)
28 // out1 is false, out2 is 3, out3 is "0_3"
29 IPC_SYNC_MESSAGE_CONTROL0_3(Msg_C_0_3, bool, int, std::string)
31 // in1 must be 1, out1 is true
32 IPC_SYNC_MESSAGE_CONTROL1_1(Msg_C_1_1, int, bool)
34 // in1 must be false, out1 is true, out2 is 12
35 IPC_SYNC_MESSAGE_CONTROL1_2(Msg_C_1_2, bool, bool, int)
37 // in1 must be 3, out1 is "1_3", out2 is 13, out3 is false
38 IPC_SYNC_MESSAGE_CONTROL1_3(Msg_C_1_3, int, std::string, int, bool)
40 // in1 must be 1, in2 must be false, out1 is true
41 IPC_SYNC_MESSAGE_CONTROL2_1(Msg_C_2_1, int, bool, bool)
43 // in1 must be false, in2 must be 2, out1 is true, out2 is 22
44 IPC_SYNC_MESSAGE_CONTROL2_2(Msg_C_2_2, bool, int, bool, int)
46 // in1 must be 3, in2 must be true, out1 is "2_3", out2 is 23, out3 is false
47 IPC_SYNC_MESSAGE_CONTROL2_3(Msg_C_2_3, int, bool, std::string, int, bool)
49 // in1 must be 1, in2 must be false, in3 must be "3_1", out1 is true
50 IPC_SYNC_MESSAGE_CONTROL3_1(Msg_C_3_1, int, bool, std::string, bool)
52 // in1 must be "3_3", in2 must be false, in3 must be 2, out1 is true, out2 is
53 // 32
54 IPC_SYNC_MESSAGE_CONTROL3_2(Msg_C_3_2, std::string, bool, int, bool, int)
56 // in1 must be 3, in2 must be "3_3", in3 must be true, out1 is "3_3", out2 is
57 // 33, out3 is false
58 IPC_SYNC_MESSAGE_CONTROL3_3(Msg_C_3_3, int, std::string, bool, std::string,
59 int, bool)
62 // NOTE: routed messages are just a copy of the above...
64 // out1 is false
65 IPC_SYNC_MESSAGE_ROUTED0_1(Msg_R_0_1, bool)
67 // out1 is true, out2 is 2
68 IPC_SYNC_MESSAGE_ROUTED0_2(Msg_R_0_2, bool, int)
70 // out1 is false, out2 is 3, out3 is "0_3"
71 IPC_SYNC_MESSAGE_ROUTED0_3(Msg_R_0_3, bool, int, std::string)
73 // in1 must be 1, out1 is true
74 IPC_SYNC_MESSAGE_ROUTED1_1(Msg_R_1_1, int, bool)
76 // in1 must be false, out1 is true, out2 is 12
77 IPC_SYNC_MESSAGE_ROUTED1_2(Msg_R_1_2, bool, bool, int)
79 // in1 must be 3, out1 is "1_3", out2 is 13, out3 is false
80 IPC_SYNC_MESSAGE_ROUTED1_3(Msg_R_1_3, int, std::string, int, bool)
82 // in1 must be 1, in2 must be false, out1 is true
83 IPC_SYNC_MESSAGE_ROUTED2_1(Msg_R_2_1, int, bool, bool)
85 // in1 must be false, in2 must be 2, out1 is true, out2 is 22
86 IPC_SYNC_MESSAGE_ROUTED2_2(Msg_R_2_2, bool, int, bool, int)
88 // in1 must be 3, in2 must be true, out1 is "2_3", out2 is 23, out3 is false
89 IPC_SYNC_MESSAGE_ROUTED2_3(Msg_R_2_3, int, bool, std::string, int, bool)
91 // in1 must be 1, in2 must be false, in3 must be "3_1", out1 is true
92 IPC_SYNC_MESSAGE_ROUTED3_1(Msg_R_3_1, int, bool, std::string, bool)
94 // in1 must be "3_3", in2 must be false, in3 must be 2, out1 is true, out2
95 // is 32
96 IPC_SYNC_MESSAGE_ROUTED3_2(Msg_R_3_2, std::string, bool, int, bool, int)
98 // in1 must be 3, in2 must be "3_3", in3 must be true, out1 is "3_3", out2 is
99 // 33, out3 is false
100 IPC_SYNC_MESSAGE_ROUTED3_3(Msg_R_3_3, int, std::string, bool, std::string,
101 int, bool)
103 IPC_END_MESSAGES(Test)