ipc/ipdl/test/cxx/PTestShutdown.ipdl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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

mercurial