ipc/ipdl/test/cxx/PTestStackHooks.ipdl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ipc/ipdl/test/cxx/PTestStackHooks.ipdl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +
     1.5 +namespace mozilla {
     1.6 +namespace _ipdltest {
     1.7 +
     1.8 +
     1.9 +intr protocol PTestStackHooks {
    1.10 +child:
    1.11 +    async Start();
    1.12 +
    1.13 +    // These tests are more fruitful running child->parent, because
    1.14 +    // children can send |sync| messages
    1.15 +parent:
    1.16 +    async Async();
    1.17 +    sync Sync();
    1.18 +    intr Rpc();
    1.19 +
    1.20 +both:
    1.21 +    intr StackFrame();
    1.22 +
    1.23 +parent:
    1.24 +    __delete__();
    1.25 +
    1.26 +
    1.27 +state START:
    1.28 +    send Start goto TEST1;
    1.29 +
    1.30 +state TEST1:
    1.31 +    recv Async goto TEST2;
    1.32 +
    1.33 +state TEST2:
    1.34 +    recv Sync goto TEST3;
    1.35 +
    1.36 +state TEST3:
    1.37 +    answer Rpc goto TEST4;
    1.38 +
    1.39 +state TEST4:
    1.40 +    answer StackFrame goto TEST4_2;
    1.41 +state TEST4_2:
    1.42 +    call StackFrame goto TEST4_3;
    1.43 +state TEST4_3:
    1.44 +    recv Async goto TEST5;
    1.45 +
    1.46 +state TEST5:
    1.47 +    answer StackFrame goto TEST5_2;
    1.48 +state TEST5_2:
    1.49 +    call StackFrame goto TEST5_3;
    1.50 +state TEST5_3:
    1.51 +    recv Sync goto DEAD;
    1.52 +
    1.53 +state DEAD:
    1.54 +    recv __delete__;
    1.55 +};
    1.56 +
    1.57 +
    1.58 +} // namespace mozilla
    1.59 +} // namespace _ipdltest

mercurial