gecko/ipc/ipdl/test/cxx/PTestStackHooks.ipdl
Chris Jones aa5b9d019a Bug 545455: IPDL/C++ test.
--HG--
extra : rebase_source : 9fae2c3f3192633834166b863f7ab0c1ed2f0e40
2010-02-16 12:44:23 -06:00

57 lines
858 B
Plaintext

namespace mozilla {
namespace _ipdltest {
rpc protocol PTestStackHooks {
child:
async Start();
// These tests are more fruitful running child->parent, because
// children can send |sync| messages
parent:
async Async();
sync Sync();
rpc Rpc();
both:
rpc StackFrame();
parent:
__delete__();
state START:
send Start goto TEST1;
state TEST1:
recv Async goto TEST2;
state TEST2:
recv Sync goto TEST3;
state TEST3:
answer Rpc goto TEST4;
state TEST4:
answer StackFrame goto TEST4_2;
state TEST4_2:
call StackFrame goto TEST4_3;
state TEST4_3:
recv Async goto TEST5;
state TEST5:
answer StackFrame goto TEST5_2;
state TEST5_2:
call StackFrame goto TEST5_3;
state TEST5_3:
recv Sync goto DEAD;
state DEAD:
recv __delete__;
};
} // namespace mozilla
} // namespace _ipdltest