ipc/ipdl/test/cxx/PTestStackHooks.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.

     2 namespace mozilla {
     3 namespace _ipdltest {
     6 intr protocol PTestStackHooks {
     7 child:
     8     async Start();
    10     // These tests are more fruitful running child->parent, because
    11     // children can send |sync| messages
    12 parent:
    13     async Async();
    14     sync Sync();
    15     intr Rpc();
    17 both:
    18     intr StackFrame();
    20 parent:
    21     __delete__();
    24 state START:
    25     send Start goto TEST1;
    27 state TEST1:
    28     recv Async goto TEST2;
    30 state TEST2:
    31     recv Sync goto TEST3;
    33 state TEST3:
    34     answer Rpc goto TEST4;
    36 state TEST4:
    37     answer StackFrame goto TEST4_2;
    38 state TEST4_2:
    39     call StackFrame goto TEST4_3;
    40 state TEST4_3:
    41     recv Async goto TEST5;
    43 state TEST5:
    44     answer StackFrame goto TEST5_2;
    45 state TEST5_2:
    46     call StackFrame goto TEST5_3;
    47 state TEST5_3:
    48     recv Sync goto DEAD;
    50 state DEAD:
    51     recv __delete__;
    52 };
    55 } // namespace mozilla
    56 } // namespace _ipdltest

mercurial