diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /ipc/ipdl/test/gtest/PTestCancel.ipdl | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ipc/ipdl/test/gtest/PTestCancel.ipdl')
-rw-r--r-- | ipc/ipdl/test/gtest/PTestCancel.ipdl | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ipc/ipdl/test/gtest/PTestCancel.ipdl b/ipc/ipdl/test/gtest/PTestCancel.ipdl new file mode 100644 index 0000000000..b0af04bae7 --- /dev/null +++ b/ipc/ipdl/test/gtest/PTestCancel.ipdl @@ -0,0 +1,39 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +namespace mozilla { +namespace _ipdltest { + +[NestedUpTo=inside_sync, ChildProc=any, ChildImpl=virtual, ParentImpl=virtual] +sync protocol PTestCancel +{ + // Immediate Cancel: child sync function cancels immediately, both ends check after cancellation. +child: + [Nested=inside_sync] sync ImmediateCancel(); + + + // Nested Cancel: child nested sync function cancels +child: + async StartNestedCancel(); + [Nested=inside_sync] sync NestedCancel(); +parent: + [Nested=inside_sync] sync CallNestedCancel(); + + + // Nested Cancel Parent: parent nested sync function cancels +child: + [Nested=inside_sync] sync StartNestedCancelParent(); +parent: + [Nested=inside_sync] sync NestedCancelParent(); + + +// Common functions to check that sync messages still work. +child: + [Nested=inside_sync] sync CheckChild() returns (uint32_t reply); +parent: + [Nested=inside_sync] sync CheckParent() returns (uint32_t reply); +}; + +} // namespace _ipdltest +} // namespace mozilla |