1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ipc/ipdl/test/cxx/PTestDataStructures.ipdl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,132 @@ 1.4 +include protocol PTestDataStructuresSub; 1.5 +include PTestDataStructuresCommon; 1.6 + 1.7 +include "mozilla/GfxMessageUtils.h"; 1.8 + 1.9 +namespace mozilla { 1.10 +namespace _ipdltest { 1.11 + 1.12 +sync protocol PTestDataStructures { 1.13 + manages PTestDataStructuresSub; 1.14 + 1.15 +child: 1.16 + PTestDataStructuresSub(int i); 1.17 + 1.18 + Start(); 1.19 + 1.20 +parent: 1.21 + __delete__(); 1.22 + 1.23 + sync Test1(int[] i1) 1.24 + returns (int[] o1); 1.25 + 1.26 + sync Test2(PTestDataStructuresSub[] i1) 1.27 + returns (PTestDataStructuresSub[] o1); 1.28 + 1.29 + sync Test3(IntDouble i1, 1.30 + IntDouble i2) 1.31 + returns (IntDouble o1, 1.32 + IntDouble o2); 1.33 + 1.34 + sync Test4(IntDouble[] i1) 1.35 + returns (IntDouble[] o1); 1.36 + 1.37 + sync Test5(IntDoubleArrays i1, 1.38 + IntDoubleArrays i2, 1.39 + IntDoubleArrays i3) 1.40 + returns (IntDoubleArrays o1, 1.41 + IntDoubleArrays o2, 1.42 + IntDoubleArrays o3); 1.43 + 1.44 + sync Test6(IntDoubleArrays[] i1) 1.45 + returns (IntDoubleArrays[] o1); 1.46 + 1.47 + sync Test7_0(ActorWrapper a1) 1.48 + returns (ActorWrapper o1); 1.49 + 1.50 + sync Test7(Actors i1, 1.51 + Actors i2, 1.52 + Actors i3) 1.53 + returns (Actors o1, 1.54 + Actors o2, 1.55 + Actors o3); 1.56 + 1.57 + sync Test8(Actors[] i1) 1.58 + returns (Actors[] o1); 1.59 + 1.60 + sync Test9(Unions i1, 1.61 + Unions i2, 1.62 + Unions i3, 1.63 + Unions i4) 1.64 + returns (Unions o1, 1.65 + Unions o2, 1.66 + Unions o3, 1.67 + Unions o4); 1.68 + 1.69 + sync Test10(Unions[] i1) 1.70 + returns (Unions[] o1); 1.71 + 1.72 + sync Test11(SIntDouble i) 1.73 + returns (SIntDouble o); 1.74 + 1.75 + sync Test12(SIntDoubleArrays i) 1.76 + returns (SIntDoubleArrays o); 1.77 + 1.78 + sync Test13(SActors i) 1.79 + returns (SActors o); 1.80 + 1.81 + sync Test14(Structs i) 1.82 + returns (Structs o); 1.83 + 1.84 + sync Test15(WithStructs i1, 1.85 + WithStructs i2, 1.86 + WithStructs i3, 1.87 + WithStructs i4, 1.88 + WithStructs i5) 1.89 + returns (WithStructs o1, 1.90 + WithStructs o2, 1.91 + WithStructs o3, 1.92 + WithStructs o4, 1.93 + WithStructs o5); 1.94 + 1.95 + sync Test16(WithUnions i) 1.96 + returns (WithUnions o); 1.97 + 1.98 + sync Test17(Op[] ops); 1.99 + 1.100 + // test that the ParamTraits<nsTArray>::Read() workaround for 1.101 + // nsTArray's incorrect memmove() semantics works properly 1.102 + // (nsIntRegion isn't memmove()able) 1.103 + sync Test18(nsIntRegion[] ops); 1.104 + 1.105 + sync Dummy(ShmemUnion su) returns (ShmemUnion rsu); 1.106 + 1.107 +state CONSTRUCTING: 1.108 + send PTestDataStructuresSub goto CONSTRUCTING; 1.109 + send Start goto TEST1; 1.110 +state TEST1: recv Test1 goto TEST2; 1.111 +state TEST2: recv Test2 goto TEST3; 1.112 +state TEST3: recv Test3 goto TEST4; 1.113 +state TEST4: recv Test4 goto TEST5; 1.114 +state TEST5: recv Test5 goto TEST6; 1.115 +state TEST6: recv Test6 goto TEST7; 1.116 +state TEST7: recv Test7 goto TEST8; 1.117 +state TEST8: recv Test8 goto TEST9; 1.118 +state TEST9: recv Test9 goto TEST10; 1.119 +state TEST10: recv Test10 goto TEST11; 1.120 +state TEST11: recv Test11 goto TEST12; 1.121 +state TEST12: recv Test12 goto TEST13; 1.122 +state TEST13: recv Test13 goto TEST14; 1.123 +state TEST14: recv Test14 goto TEST15; 1.124 +state TEST15: recv Test15 goto TEST16; 1.125 +state TEST16: recv Test16 goto TEST17; 1.126 +state TEST17: recv Test17 goto TEST18; 1.127 +state TEST18: recv Test18 goto DEAD; 1.128 + 1.129 +state DEAD: 1.130 + recv __delete__; 1.131 +}; 1.132 + 1.133 +} // namespace _ipdltest 1.134 +} // namespace mozilla 1.135 +