diff -r 000000000000 -r 6474c204b198 ipc/ipdl/test/cxx/PTestActorPunning.ipdl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ipc/ipdl/test/cxx/PTestActorPunning.ipdl Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,39 @@ + +include protocol PTestActorPunningPunned; +include protocol PTestActorPunningSub; +include "mozilla/_ipdltest/IPDLUnitTestUtils.h"; + +using struct mozilla::_ipdltest::Bad from "mozilla/_ipdltest/IPDLUnitTestUtils.h"; + +namespace mozilla { +namespace _ipdltest { + +protocol PTestActorPunning { + manages PTestActorPunningPunned; + manages PTestActorPunningSub; + +child: + Start(); + +parent: + PTestActorPunningPunned(); + PTestActorPunningSub(); + Pun(PTestActorPunningSub a, Bad bad); + __delete__(); + + +state PING: + send Start goto CONSTRUCTING; + +state CONSTRUCTING: + recv PTestActorPunningPunned goto CONSTRUCTING; + recv PTestActorPunningSub goto CONSTRUCTING; + recv Pun goto DEAD; + // We never make it past this transition, --> error. + +state DEAD: + recv __delete__; +}; + +} // namespace mozilla +} // namespace _ipdltest