Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 include protocol PTestShutdownSub;
3 namespace mozilla {
4 namespace _ipdltest {
6 intr protocol PTestShutdown {
7 manages PTestShutdownSub;
9 child:
10 Start();
12 parent:
13 // NB: we test deletion and crashing only, not shutdown, because
14 // crashing is the same code path as shutdown, and other IPDL unit
15 // tests check shutdown semantics
16 PTestShutdownSub(bool expectCrash);
18 // Used to synchronize between parent and child, to avoid races
19 // around flushing socket write queues
20 sync Sync();
22 __delete__();
25 state START:
26 send Start goto TESTING;
28 state TESTING:
29 recv PTestShutdownSub goto TESTING;
30 recv Sync goto DYING;
32 state DYING:
33 recv __delete__;
34 };
36 } // namespace _ipdltest
37 } // namespace mozilla