summaryrefslogtreecommitdiffstats
path: root/ipc/ipdl/test/cxx/PTestStackHooks.ipdl
blob: 1f3af068fba48fd0f8b3908e7c3ceb0d8f90c601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

namespace mozilla {
namespace _ipdltest {


intr protocol PTestStackHooks {
child:
    async Start();

    // These tests are more fruitful running child->parent, because
    // children can send |sync| messages
parent:
    async Async();
    sync Sync();
    intr Rpc();

both:
    intr StackFrame();

parent:
    async __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