ipc/ipdl/test/cxx/PTestDataStructuresCommon.ipdlh

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 include protocol PTestDataStructuresSub;
michael@0 2
michael@0 3 using struct mozilla::null_t from "ipc/IPCMessageUtils.h";
michael@0 4 using nsIntRegion from "nsRegion.h";
michael@0 5
michael@0 6 namespace mozilla {
michael@0 7 namespace _foo {
michael@0 8
michael@0 9 union IntDouble {
michael@0 10 int;
michael@0 11 double;
michael@0 12 };
michael@0 13
michael@0 14 struct SIntDouble {
michael@0 15 int i;
michael@0 16 double d;
michael@0 17 };
michael@0 18
michael@0 19 union IntDoubleArrays {
michael@0 20 int;
michael@0 21 int[];
michael@0 22 double[];
michael@0 23 };
michael@0 24
michael@0 25 struct SIntDoubleArrays {
michael@0 26 int i;
michael@0 27 int[] ai;
michael@0 28 double[] ad;
michael@0 29 };
michael@0 30
michael@0 31 struct ActorWrapper {
michael@0 32 PTestDataStructuresSub actor;
michael@0 33 };
michael@0 34
michael@0 35 union Actors {
michael@0 36 int;
michael@0 37 int[];
michael@0 38 PTestDataStructuresSub[];
michael@0 39 };
michael@0 40
michael@0 41 struct SActors {
michael@0 42 int i;
michael@0 43 int[] ai;
michael@0 44 PTestDataStructuresSub[] ap;
michael@0 45 };
michael@0 46
michael@0 47 union Unions {
michael@0 48 int;
michael@0 49 int[];
michael@0 50 PTestDataStructuresSub[];
michael@0 51 Actors[];
michael@0 52 };
michael@0 53
michael@0 54 struct Structs {
michael@0 55 int i;
michael@0 56 int[] ai;
michael@0 57 PTestDataStructuresSub[] ap;
michael@0 58 SActors[] aa;
michael@0 59 };
michael@0 60
michael@0 61 union WithStructs {
michael@0 62 int;
michael@0 63 int[];
michael@0 64 PTestDataStructuresSub[];
michael@0 65 SActors[];
michael@0 66 Structs[];
michael@0 67 };
michael@0 68
michael@0 69 struct WithUnions {
michael@0 70 int i;
michael@0 71 int[] ai;
michael@0 72 PTestDataStructuresSub[] ap;
michael@0 73 Actors[] aa;
michael@0 74 Unions[] au;
michael@0 75 };
michael@0 76
michael@0 77 struct CommonAttrs { bool dummy; };
michael@0 78 struct FooAttrs { int dummy; };
michael@0 79 struct BarAttrs { float dummy; };
michael@0 80 union SpecificAttrs {
michael@0 81 FooAttrs;
michael@0 82 BarAttrs;
michael@0 83 };
michael@0 84 struct Attrs {
michael@0 85 CommonAttrs common;
michael@0 86 SpecificAttrs specific;
michael@0 87 };
michael@0 88 struct SetAttrs {
michael@0 89 PTestDataStructuresSub x;
michael@0 90 Attrs attrs;
michael@0 91 };
michael@0 92 union Op { null_t; SetAttrs; };
michael@0 93
michael@0 94 struct ShmemStruct {
michael@0 95 int i;
michael@0 96 Shmem mem;
michael@0 97 };
michael@0 98
michael@0 99 union ShmemUnion {
michael@0 100 int;
michael@0 101 Shmem;
michael@0 102 };
michael@0 103
michael@0 104 struct Empty { };
michael@0 105
michael@0 106 } // namespace _foo
michael@0 107 } // namespace mozilla

mercurial