ipc/ipdl/test/cxx/PTestDataStructures.ipdl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 include protocol PTestDataStructuresSub;
     2 include PTestDataStructuresCommon;
     4 include "mozilla/GfxMessageUtils.h";
     6 namespace mozilla {
     7 namespace _ipdltest {
     9 sync protocol PTestDataStructures {
    10     manages PTestDataStructuresSub;
    12 child:
    13     PTestDataStructuresSub(int i);
    15     Start();
    17 parent:
    18     __delete__();
    20     sync Test1(int[] i1)
    21         returns (int[] o1);
    23     sync Test2(PTestDataStructuresSub[] i1)
    24         returns (PTestDataStructuresSub[] o1);
    26     sync Test3(IntDouble i1,
    27                IntDouble i2)
    28         returns (IntDouble o1,
    29                  IntDouble o2);
    31     sync Test4(IntDouble[] i1)
    32         returns (IntDouble[] o1);
    34     sync Test5(IntDoubleArrays i1,
    35                IntDoubleArrays i2,
    36                IntDoubleArrays i3)
    37         returns (IntDoubleArrays o1,
    38                  IntDoubleArrays o2,
    39                  IntDoubleArrays o3);
    41     sync Test6(IntDoubleArrays[] i1)
    42         returns (IntDoubleArrays[] o1);
    44     sync Test7_0(ActorWrapper a1)
    45         returns (ActorWrapper o1);
    47     sync Test7(Actors i1,
    48                Actors i2,
    49                Actors i3)
    50         returns (Actors o1,
    51                  Actors o2,
    52                  Actors o3);
    54     sync Test8(Actors[] i1)
    55         returns (Actors[] o1);
    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);
    66     sync Test10(Unions[] i1)
    67         returns (Unions[] o1);
    69     sync Test11(SIntDouble i)
    70         returns (SIntDouble o);
    72     sync Test12(SIntDoubleArrays i)
    73         returns (SIntDoubleArrays o);
    75     sync Test13(SActors i)
    76         returns (SActors o);
    78     sync Test14(Structs i)
    79         returns (Structs o);
    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);
    92     sync Test16(WithUnions i)
    93         returns (WithUnions o);
    95     sync Test17(Op[] ops);
    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);
   102     sync Dummy(ShmemUnion su) returns (ShmemUnion rsu);
   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;
   126 state DEAD:
   127     recv __delete__;
   128 };
   130 } // namespace _ipdltest
   131 } // namespace mozilla

mercurial