From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- ipc/ipdl/test/cxx/PTestShutdown.ipdl | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ipc/ipdl/test/cxx/PTestShutdown.ipdl (limited to 'ipc/ipdl/test/cxx/PTestShutdown.ipdl') diff --git a/ipc/ipdl/test/cxx/PTestShutdown.ipdl b/ipc/ipdl/test/cxx/PTestShutdown.ipdl new file mode 100644 index 0000000000..e57defa46a --- /dev/null +++ b/ipc/ipdl/test/cxx/PTestShutdown.ipdl @@ -0,0 +1,29 @@ +include protocol PTestShutdownSub; + +include "mozilla/_ipdltest/TestShutdown.h"; + +namespace mozilla { +namespace _ipdltest { + +[ManualDealloc, ChildImpl="TestShutdownChild", ParentImpl="TestShutdownParent"] +intr protocol PTestShutdown { + manages PTestShutdownSub; + +child: + async Start(); + +parent: + // NB: we test deletion and crashing only, not shutdown, because + // crashing is the same code path as shutdown, and other IPDL unit + // tests check shutdown semantics + async PTestShutdownSub(bool expectCrash); + + // Used to synchronize between parent and child, to avoid races + // around flushing socket write queues + sync Sync(); + + async __delete__(); +}; + +} // namespace _ipdltest +} // namespace mozilla -- cgit v1.2.3