2012-09-20 23:30:53 +04:00
|
|
|
|
|
|
|
include protocol PTestActorPunningPunned;
|
|
|
|
include protocol PTestActorPunningSub;
|
|
|
|
include "mozilla/_ipdltest/IPDLUnitTestUtils.h";
|
|
|
|
|
2013-11-22 04:51:26 +04:00
|
|
|
using struct mozilla::_ipdltest::Bad from "mozilla/_ipdltest/IPDLUnitTestUtils.h";
|
|
|
|
|
2012-09-20 23:30:53 +04:00
|
|
|
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
|