summaryrefslogtreecommitdiffstats
path: root/ipc/ipdl/test/cxx/PTestShmem.ipdl
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/ipdl/test/cxx/PTestShmem.ipdl')
-rw-r--r--ipc/ipdl/test/cxx/PTestShmem.ipdl22
1 files changed, 22 insertions, 0 deletions
diff --git a/ipc/ipdl/test/cxx/PTestShmem.ipdl b/ipc/ipdl/test/cxx/PTestShmem.ipdl
new file mode 100644
index 000000000..46a1958e2
--- /dev/null
+++ b/ipc/ipdl/test/cxx/PTestShmem.ipdl
@@ -0,0 +1,22 @@
+namespace mozilla {
+namespace _ipdltest {
+
+protocol PTestShmem {
+child:
+ async Give(Shmem mem, Shmem unsafe, size_t expectedSize);
+
+parent:
+ async Take(Shmem mem, Shmem unsafe, size_t expectedSize);
+ async __delete__();
+
+
+state GIVING:
+ send Give goto TAKING;
+
+state TAKING:
+ recv Take goto TAKING;
+ recv __delete__;
+};
+
+}
+}