ipc/ipdl/test/cxx/PTestStackHooks.ipdl

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:a4ac9183dce1
1
2 namespace mozilla {
3 namespace _ipdltest {
4
5
6 intr protocol PTestStackHooks {
7 child:
8 async Start();
9
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();
16
17 both:
18 intr StackFrame();
19
20 parent:
21 __delete__();
22
23
24 state START:
25 send Start goto TEST1;
26
27 state TEST1:
28 recv Async goto TEST2;
29
30 state TEST2:
31 recv Sync goto TEST3;
32
33 state TEST3:
34 answer Rpc goto TEST4;
35
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;
42
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;
49
50 state DEAD:
51 recv __delete__;
52 };
53
54
55 } // namespace mozilla
56 } // namespace _ipdltest

mercurial