|
1 include protocol PTestDataStructuresSub; |
|
2 include PTestDataStructuresCommon; |
|
3 |
|
4 include "mozilla/GfxMessageUtils.h"; |
|
5 |
|
6 namespace mozilla { |
|
7 namespace _ipdltest { |
|
8 |
|
9 sync protocol PTestDataStructures { |
|
10 manages PTestDataStructuresSub; |
|
11 |
|
12 child: |
|
13 PTestDataStructuresSub(int i); |
|
14 |
|
15 Start(); |
|
16 |
|
17 parent: |
|
18 __delete__(); |
|
19 |
|
20 sync Test1(int[] i1) |
|
21 returns (int[] o1); |
|
22 |
|
23 sync Test2(PTestDataStructuresSub[] i1) |
|
24 returns (PTestDataStructuresSub[] o1); |
|
25 |
|
26 sync Test3(IntDouble i1, |
|
27 IntDouble i2) |
|
28 returns (IntDouble o1, |
|
29 IntDouble o2); |
|
30 |
|
31 sync Test4(IntDouble[] i1) |
|
32 returns (IntDouble[] o1); |
|
33 |
|
34 sync Test5(IntDoubleArrays i1, |
|
35 IntDoubleArrays i2, |
|
36 IntDoubleArrays i3) |
|
37 returns (IntDoubleArrays o1, |
|
38 IntDoubleArrays o2, |
|
39 IntDoubleArrays o3); |
|
40 |
|
41 sync Test6(IntDoubleArrays[] i1) |
|
42 returns (IntDoubleArrays[] o1); |
|
43 |
|
44 sync Test7_0(ActorWrapper a1) |
|
45 returns (ActorWrapper o1); |
|
46 |
|
47 sync Test7(Actors i1, |
|
48 Actors i2, |
|
49 Actors i3) |
|
50 returns (Actors o1, |
|
51 Actors o2, |
|
52 Actors o3); |
|
53 |
|
54 sync Test8(Actors[] i1) |
|
55 returns (Actors[] o1); |
|
56 |
|
57 sync Test9(Unions i1, |
|
58 Unions i2, |
|
59 Unions i3, |
|
60 Unions i4) |
|
61 returns (Unions o1, |
|
62 Unions o2, |
|
63 Unions o3, |
|
64 Unions o4); |
|
65 |
|
66 sync Test10(Unions[] i1) |
|
67 returns (Unions[] o1); |
|
68 |
|
69 sync Test11(SIntDouble i) |
|
70 returns (SIntDouble o); |
|
71 |
|
72 sync Test12(SIntDoubleArrays i) |
|
73 returns (SIntDoubleArrays o); |
|
74 |
|
75 sync Test13(SActors i) |
|
76 returns (SActors o); |
|
77 |
|
78 sync Test14(Structs i) |
|
79 returns (Structs o); |
|
80 |
|
81 sync Test15(WithStructs i1, |
|
82 WithStructs i2, |
|
83 WithStructs i3, |
|
84 WithStructs i4, |
|
85 WithStructs i5) |
|
86 returns (WithStructs o1, |
|
87 WithStructs o2, |
|
88 WithStructs o3, |
|
89 WithStructs o4, |
|
90 WithStructs o5); |
|
91 |
|
92 sync Test16(WithUnions i) |
|
93 returns (WithUnions o); |
|
94 |
|
95 sync Test17(Op[] ops); |
|
96 |
|
97 // test that the ParamTraits<nsTArray>::Read() workaround for |
|
98 // nsTArray's incorrect memmove() semantics works properly |
|
99 // (nsIntRegion isn't memmove()able) |
|
100 sync Test18(nsIntRegion[] ops); |
|
101 |
|
102 sync Dummy(ShmemUnion su) returns (ShmemUnion rsu); |
|
103 |
|
104 state CONSTRUCTING: |
|
105 send PTestDataStructuresSub goto CONSTRUCTING; |
|
106 send Start goto TEST1; |
|
107 state TEST1: recv Test1 goto TEST2; |
|
108 state TEST2: recv Test2 goto TEST3; |
|
109 state TEST3: recv Test3 goto TEST4; |
|
110 state TEST4: recv Test4 goto TEST5; |
|
111 state TEST5: recv Test5 goto TEST6; |
|
112 state TEST6: recv Test6 goto TEST7; |
|
113 state TEST7: recv Test7 goto TEST8; |
|
114 state TEST8: recv Test8 goto TEST9; |
|
115 state TEST9: recv Test9 goto TEST10; |
|
116 state TEST10: recv Test10 goto TEST11; |
|
117 state TEST11: recv Test11 goto TEST12; |
|
118 state TEST12: recv Test12 goto TEST13; |
|
119 state TEST13: recv Test13 goto TEST14; |
|
120 state TEST14: recv Test14 goto TEST15; |
|
121 state TEST15: recv Test15 goto TEST16; |
|
122 state TEST16: recv Test16 goto TEST17; |
|
123 state TEST17: recv Test17 goto TEST18; |
|
124 state TEST18: recv Test18 goto DEAD; |
|
125 |
|
126 state DEAD: |
|
127 recv __delete__; |
|
128 }; |
|
129 |
|
130 } // namespace _ipdltest |
|
131 } // namespace mozilla |
|
132 |