diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /ipc/ipdl/test/gtest/PTestJSON.ipdl | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-adbda400be353e676059e335c3c0aaf99e719475.tar.xz firefox-adbda400be353e676059e335c3c0aaf99e719475.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ipc/ipdl/test/gtest/PTestJSON.ipdl')
-rw-r--r-- | ipc/ipdl/test/gtest/PTestJSON.ipdl | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/ipc/ipdl/test/gtest/PTestJSON.ipdl b/ipc/ipdl/test/gtest/PTestJSON.ipdl new file mode 100644 index 0000000000..2486e85378 --- /dev/null +++ b/ipc/ipdl/test/gtest/PTestJSON.ipdl @@ -0,0 +1,43 @@ +include protocol PTestJSONHandle; + +using struct mozilla::void_t from "mozilla/ipc/IPCCore.h"; +using struct mozilla::null_t from "mozilla/ipc/IPCCore.h"; + +namespace mozilla { +namespace _ipdltest { + +[Comparable] +struct KeyValue { + nsString key; + JSONVariant value; +}; + +[Comparable] +union JSONVariant { + void_t; + null_t; + bool; + int; + double; + nsString; + PTestJSONHandle; + KeyValue[]; + JSONVariant[]; +}; + +[ChildProc=any, ChildImpl=virtual, ParentImpl=virtual] +sync protocol PTestJSON { + manages PTestJSONHandle; + +child: + async Start(); + +parent: + async PTestJSONHandle(); + sync Test(JSONVariant i) + returns (JSONVariant o); + async __delete__(); +}; + +} // namespace mozilla +} // namespace _ipdltest |