mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Bug 1529686 - Part 1 - fixed ipdl unittests for devirtualization, which requires protocol names to start with 'P'; r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D21066 --HG-- rename : ipc/ipdl/test/ipdl/error/asyncMessageListed.ipdl => ipc/ipdl/test/ipdl/error/PasyncMessageListed.ipdl rename : ipc/ipdl/test/ipdl/ok/AsyncReturn.ipdl => ipc/ipdl/test/ipdl/ok/PAsyncReturn.ipdl rename : ipc/ipdl/test/ipdl/ok/Delete.ipdl => ipc/ipdl/test/ipdl/ok/PDelete.ipdl rename : ipc/ipdl/test/ipdl/ok/DeleteSub.ipdl => ipc/ipdl/test/ipdl/ok/PDeleteSub.ipdl rename : ipc/ipdl/test/ipdl/ok/EndpointDecl.ipdl => ipc/ipdl/test/ipdl/ok/PEndpointDecl.ipdl rename : ipc/ipdl/test/ipdl/ok/EndpointUse.ipdl => ipc/ipdl/test/ipdl/ok/PEndpointUse.ipdl rename : ipc/ipdl/test/ipdl/ok/Nullable.ipdl => ipc/ipdl/test/ipdl/ok/PNullable.ipdl rename : ipc/ipdl/test/ipdl/ok/Struct.ipdl => ipc/ipdl/test/ipdl/ok/PStruct.ipdl rename : ipc/ipdl/test/ipdl/ok/SyncSyncManagee.ipdl => ipc/ipdl/test/ipdl/ok/PSyncSyncManagee.ipdl rename : ipc/ipdl/test/ipdl/ok/SyncSyncManager.ipdl => ipc/ipdl/test/ipdl/ok/PSyncSyncManager.ipdl rename : ipc/ipdl/test/ipdl/ok/actorparam.ipdl => ipc/ipdl/test/ipdl/ok/Pactorparam.ipdl rename : ipc/ipdl/test/ipdl/ok/actorreturn.ipdl => ipc/ipdl/test/ipdl/ok/Pactorreturn.ipdl rename : ipc/ipdl/test/ipdl/ok/array_Basic.ipdl => ipc/ipdl/test/ipdl/ok/Parray_Basic.ipdl rename : ipc/ipdl/test/ipdl/ok/array_OfActors.ipdl => ipc/ipdl/test/ipdl/ok/Parray_OfActors.ipdl rename : ipc/ipdl/test/ipdl/ok/array_OfActorsSub.ipdl => ipc/ipdl/test/ipdl/ok/Parray_OfActorsSub.ipdl rename : ipc/ipdl/test/ipdl/ok/array_Union.ipdl => ipc/ipdl/test/ipdl/ok/Parray_Union.ipdl rename : ipc/ipdl/test/ipdl/ok/basicUsing.ipdl => ipc/ipdl/test/ipdl/ok/PbasicUsing.ipdl rename : ipc/ipdl/test/ipdl/ok/builtins.ipdl => ipc/ipdl/test/ipdl/ok/Pbuiltins.ipdl rename : ipc/ipdl/test/ipdl/ok/bytebuf.ipdl => ipc/ipdl/test/ipdl/ok/Pbytebuf.ipdl rename : ipc/ipdl/test/ipdl/ok/empty.ipdl => ipc/ipdl/test/ipdl/ok/Pempty.ipdl rename : ipc/ipdl/test/ipdl/ok/emptyStruct.ipdl => ipc/ipdl/test/ipdl/ok/PemptyStruct.ipdl rename : ipc/ipdl/test/ipdl/ok/headerProto.ipdl => ipc/ipdl/test/ipdl/ok/PheaderProto.ipdl rename : ipc/ipdl/test/ipdl/ok/intrProtocol.ipdl => ipc/ipdl/test/ipdl/ok/PintrProtocol.ipdl rename : ipc/ipdl/test/ipdl/ok/jetpack.ipdl => ipc/ipdl/test/ipdl/ok/Pjetpack.ipdl rename : ipc/ipdl/test/ipdl/ok/manageSelf.ipdl => ipc/ipdl/test/ipdl/ok/PmanageSelf.ipdl rename : ipc/ipdl/test/ipdl/ok/manageSelf_Toplevel.ipdl => ipc/ipdl/test/ipdl/ok/PmanageSelf_Toplevel.ipdl rename : ipc/ipdl/test/ipdl/ok/managedProtocol.ipdl => ipc/ipdl/test/ipdl/ok/PmanagedProtocol.ipdl rename : ipc/ipdl/test/ipdl/ok/managerProtocol.ipdl => ipc/ipdl/test/ipdl/ok/PmanagerProtocol.ipdl rename : ipc/ipdl/test/ipdl/ok/maybe_Basic.ipdl => ipc/ipdl/test/ipdl/ok/Pmaybe_Basic.ipdl rename : ipc/ipdl/test/ipdl/ok/maybe_OfActors.ipdl => ipc/ipdl/test/ipdl/ok/Pmaybe_OfActors.ipdl rename : ipc/ipdl/test/ipdl/ok/maybe_OfActorsSub.ipdl => ipc/ipdl/test/ipdl/ok/Pmaybe_OfActorsSub.ipdl rename : ipc/ipdl/test/ipdl/ok/maybe_Union.ipdl => ipc/ipdl/test/ipdl/ok/Pmaybe_Union.ipdl rename : ipc/ipdl/test/ipdl/ok/media.ipdl => ipc/ipdl/test/ipdl/ok/Pmedia.ipdl rename : ipc/ipdl/test/ipdl/ok/messageCompress.ipdl => ipc/ipdl/test/ipdl/ok/PmessageCompress.ipdl rename : ipc/ipdl/test/ipdl/ok/messageVerify.ipdl => ipc/ipdl/test/ipdl/ok/PmessageVerify.ipdl rename : ipc/ipdl/test/ipdl/ok/messageVerifyTopLevel.ipdl => ipc/ipdl/test/ipdl/ok/PmessageVerifyTopLevel.ipdl rename : ipc/ipdl/test/ipdl/ok/multiManaged.ipdl => ipc/ipdl/test/ipdl/ok/PmultiManaged.ipdl rename : ipc/ipdl/test/ipdl/ok/multiManager1.ipdl => ipc/ipdl/test/ipdl/ok/PmultiManager1.ipdl rename : ipc/ipdl/test/ipdl/ok/multiManager2.ipdl => ipc/ipdl/test/ipdl/ok/PmultiManager2.ipdl rename : ipc/ipdl/test/ipdl/ok/multipleUsingCxxTypes.ipdl => ipc/ipdl/test/ipdl/ok/PmultipleUsingCxxTypes.ipdl rename : ipc/ipdl/test/ipdl/ok/mutualRecStructUnion.ipdl => ipc/ipdl/test/ipdl/ok/PmutualRecStructUnion.ipdl rename : ipc/ipdl/test/ipdl/ok/mutualRecUnion.ipdl => ipc/ipdl/test/ipdl/ok/PmutualRecUnion.ipdl rename : ipc/ipdl/test/ipdl/ok/namespace_Basic.ipdl => ipc/ipdl/test/ipdl/ok/Pnamespace_Basic.ipdl rename : ipc/ipdl/test/ipdl/ok/noRedeclCrossMessage.ipdl => ipc/ipdl/test/ipdl/ok/PnoRedeclCrossMessage.ipdl rename : ipc/ipdl/test/ipdl/ok/plugin.ipdl => ipc/ipdl/test/ipdl/ok/Pplugin.ipdl rename : ipc/ipdl/test/ipdl/ok/selfRecUnion.ipdl => ipc/ipdl/test/ipdl/ok/PselfRecUnion.ipdl rename : ipc/ipdl/test/ipdl/ok/shmem.ipdl => ipc/ipdl/test/ipdl/ok/Pshmem.ipdl rename : ipc/ipdl/test/ipdl/ok/syncProtocol.ipdl => ipc/ipdl/test/ipdl/ok/PsyncProtocol.ipdl rename : ipc/ipdl/test/ipdl/ok/threeDirections.ipdl => ipc/ipdl/test/ipdl/ok/PthreeDirections.ipdl rename : ipc/ipdl/test/ipdl/ok/union_Basic.ipdl => ipc/ipdl/test/ipdl/ok/Punion_Basic.ipdl rename : ipc/ipdl/test/ipdl/ok/union_Namespaced.ipdl => ipc/ipdl/test/ipdl/ok/Punion_Namespaced.ipdl extra : moz-landing-system : lando
This commit is contained in:
parent
742e5c134a
commit
fb6b626563
@ -1,6 +1,6 @@
|
||||
//error: `nullable' qualifier for type `int' makes no sense
|
||||
|
||||
protocol Nullable {
|
||||
protocol PNullable {
|
||||
child:
|
||||
async Msg(nullable int i);
|
||||
};
|
||||
|
6
ipc/ipdl/test/ipdl/error/PasyncMessageListed.ipdl
Normal file
6
ipc/ipdl/test/ipdl/error/PasyncMessageListed.ipdl
Normal file
@ -0,0 +1,6 @@
|
||||
//error: IPC message PasyncMessageListed::Msg is async, can be delisted
|
||||
|
||||
protocol PasyncMessageListed {
|
||||
parent:
|
||||
async Msg();
|
||||
};
|
@ -1,6 +0,0 @@
|
||||
//error: IPC message asyncMessageListed::Msg is async, can be delisted
|
||||
|
||||
protocol asyncMessageListed {
|
||||
parent:
|
||||
async Msg();
|
||||
};
|
@ -1,8 +0,0 @@
|
||||
include protocol DeleteSub;
|
||||
|
||||
sync protocol Delete {
|
||||
manages DeleteSub;
|
||||
|
||||
child:
|
||||
async DeleteSub();
|
||||
};
|
@ -1,10 +0,0 @@
|
||||
include protocol Delete;
|
||||
|
||||
sync protocol DeleteSub {
|
||||
manager Delete;
|
||||
|
||||
parent:
|
||||
sync __delete__(int x) returns (double d);
|
||||
|
||||
};
|
||||
|
@ -1,18 +0,0 @@
|
||||
|
||||
// Basic test that Endpoint types are declared for protocols, within
|
||||
// that protocol.
|
||||
|
||||
struct Whatever {
|
||||
Endpoint<EndpointDeclParent> par;
|
||||
Endpoint<EndpointDeclChild> chi;
|
||||
};
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
protocol EndpointDecl {
|
||||
child:
|
||||
async Message(Endpoint<EndpointDeclParent> aEndpointParent,
|
||||
Endpoint<EndpointDeclChild> aEndpointChild);
|
||||
};
|
||||
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
include protocol EndpointDecl;
|
||||
|
||||
// Basic test that Endpoint types are declared for included protocols.
|
||||
|
||||
protocol EndpointUse {
|
||||
child:
|
||||
async Message(Endpoint<EndpointDeclParent> aEndpointParent,
|
||||
Endpoint<EndpointDeclChild> aEndpointChild);
|
||||
};
|
@ -1,11 +0,0 @@
|
||||
union Union {
|
||||
nullable Nullable;
|
||||
nullable Nullable[];
|
||||
};
|
||||
|
||||
protocol Nullable {
|
||||
child:
|
||||
async Msg(nullable Nullable n);
|
||||
async Msg2(nullable Nullable[] N);
|
||||
async Msg3(Union u);
|
||||
};
|
@ -2,7 +2,7 @@
|
||||
|
||||
//error: asynchronous message `Msg' declares return values
|
||||
|
||||
protocol AsyncReturn {
|
||||
protocol PAsyncReturn {
|
||||
child:
|
||||
async Msg() returns(int32_t aNumber);
|
||||
};
|
8
ipc/ipdl/test/ipdl/ok/PDelete.ipdl
Normal file
8
ipc/ipdl/test/ipdl/ok/PDelete.ipdl
Normal file
@ -0,0 +1,8 @@
|
||||
include protocol PDeleteSub;
|
||||
|
||||
sync protocol PDelete {
|
||||
manages PDeleteSub;
|
||||
|
||||
child:
|
||||
async PDeleteSub();
|
||||
};
|
10
ipc/ipdl/test/ipdl/ok/PDeleteSub.ipdl
Normal file
10
ipc/ipdl/test/ipdl/ok/PDeleteSub.ipdl
Normal file
@ -0,0 +1,10 @@
|
||||
include protocol PDelete;
|
||||
|
||||
sync protocol PDeleteSub {
|
||||
manager PDelete;
|
||||
|
||||
parent:
|
||||
sync __delete__(int x) returns (double d);
|
||||
|
||||
};
|
||||
|
18
ipc/ipdl/test/ipdl/ok/PEndpointDecl.ipdl
Normal file
18
ipc/ipdl/test/ipdl/ok/PEndpointDecl.ipdl
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
// Basic test that Endpoint types are declared for protocols, within
|
||||
// that protocol.
|
||||
|
||||
struct Whatever {
|
||||
Endpoint<PEndpointDeclParent> par;
|
||||
Endpoint<PEndpointDeclChild> chi;
|
||||
};
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
protocol PEndpointDecl {
|
||||
child:
|
||||
async Message(Endpoint<PEndpointDeclParent> aEndpointParent,
|
||||
Endpoint<PEndpointDeclChild> aEndpointChild);
|
||||
};
|
||||
|
||||
}
|
9
ipc/ipdl/test/ipdl/ok/PEndpointUse.ipdl
Normal file
9
ipc/ipdl/test/ipdl/ok/PEndpointUse.ipdl
Normal file
@ -0,0 +1,9 @@
|
||||
include protocol PEndpointDecl;
|
||||
|
||||
// Basic test that Endpoint types are declared for included protocols.
|
||||
|
||||
protocol PEndpointUse {
|
||||
child:
|
||||
async Message(Endpoint<PEndpointDeclParent> aEndpointParent,
|
||||
Endpoint<PEndpointDeclChild> aEndpointChild);
|
||||
};
|
11
ipc/ipdl/test/ipdl/ok/PNullable.ipdl
Normal file
11
ipc/ipdl/test/ipdl/ok/PNullable.ipdl
Normal file
@ -0,0 +1,11 @@
|
||||
union Union {
|
||||
nullable PNullable;
|
||||
nullable PNullable[];
|
||||
};
|
||||
|
||||
protocol PNullable {
|
||||
child:
|
||||
async Msg(nullable PNullable n);
|
||||
async Msg2(nullable PNullable[] N);
|
||||
async Msg3(Union u);
|
||||
};
|
@ -3,7 +3,7 @@ struct S {
|
||||
double d;
|
||||
};
|
||||
|
||||
sync protocol Struct {
|
||||
sync protocol PStruct {
|
||||
parent:
|
||||
sync test(S s) returns (S ss);
|
||||
async __delete__();
|
7
ipc/ipdl/test/ipdl/ok/PSyncSyncManagee.ipdl
Normal file
7
ipc/ipdl/test/ipdl/ok/PSyncSyncManagee.ipdl
Normal file
@ -0,0 +1,7 @@
|
||||
include protocol PSyncSyncManager;
|
||||
|
||||
sync protocol PSyncSyncManagee {
|
||||
manager PSyncSyncManager;
|
||||
child:
|
||||
async __delete__();
|
||||
};
|
@ -1,11 +1,11 @@
|
||||
include protocol SyncSyncManagee;
|
||||
include protocol PSyncSyncManagee;
|
||||
|
||||
/* The main reason for this test is that it would have caught a bug
|
||||
* in the Rust IPDL parser that was treating "sync" like "async" in the
|
||||
* nested case.
|
||||
*/
|
||||
nested(upto not) sync protocol SyncSyncManager {
|
||||
manages SyncSyncManagee;
|
||||
nested(upto not) sync protocol PSyncSyncManager {
|
||||
manages PSyncSyncManagee;
|
||||
parent:
|
||||
async SyncSyncManagee();
|
||||
async PSyncSyncManagee();
|
||||
};
|
5
ipc/ipdl/test/ipdl/ok/Pactorparam.ipdl
Normal file
5
ipc/ipdl/test/ipdl/ok/Pactorparam.ipdl
Normal file
@ -0,0 +1,5 @@
|
||||
protocol Pactorparam {
|
||||
|
||||
child: async Msg(Pactorparam p);
|
||||
|
||||
};
|
6
ipc/ipdl/test/ipdl/ok/Pactorreturn.ipdl
Normal file
6
ipc/ipdl/test/ipdl/ok/Pactorreturn.ipdl
Normal file
@ -0,0 +1,6 @@
|
||||
sync protocol Pactorreturn {
|
||||
|
||||
parent:
|
||||
sync Msg(Pactorreturn p) returns (Pactorreturn r);
|
||||
|
||||
};
|
@ -1,4 +1,4 @@
|
||||
protocol array_Basic {
|
||||
protocol Parray_Basic {
|
||||
child:
|
||||
async Msg(int[] array);
|
||||
};
|
10
ipc/ipdl/test/ipdl/ok/Parray_OfActors.ipdl
Normal file
10
ipc/ipdl/test/ipdl/ok/Parray_OfActors.ipdl
Normal file
@ -0,0 +1,10 @@
|
||||
include protocol Parray_OfActorsSub;
|
||||
|
||||
protocol Parray_OfActors {
|
||||
manages Parray_OfActorsSub;
|
||||
|
||||
child:
|
||||
async Msg(Parray_OfActorsSub[] p);
|
||||
|
||||
async Parray_OfActorsSub();
|
||||
};
|
7
ipc/ipdl/test/ipdl/ok/Parray_OfActorsSub.ipdl
Normal file
7
ipc/ipdl/test/ipdl/ok/Parray_OfActorsSub.ipdl
Normal file
@ -0,0 +1,7 @@
|
||||
include protocol Parray_OfActors;
|
||||
|
||||
protocol Parray_OfActorsSub {
|
||||
manager Parray_OfActors;
|
||||
|
||||
child: async __delete__();
|
||||
};
|
@ -4,7 +4,7 @@ union Union {
|
||||
double;
|
||||
};
|
||||
|
||||
sync protocol array_Union {
|
||||
sync protocol Parray_Union {
|
||||
parent:
|
||||
sync Msg(Union u, Union[] au) returns (Union r);
|
||||
};
|
@ -16,7 +16,7 @@ union SomeUnion
|
||||
SomeRefcountedStruct;
|
||||
};
|
||||
|
||||
protocol basicUsing {
|
||||
protocol PbasicUsing {
|
||||
child:
|
||||
async Msg(SomeUnion foo);
|
||||
};
|
@ -1,4 +1,4 @@
|
||||
protocol builtins {
|
||||
protocol Pbuiltins {
|
||||
|
||||
// sanity-check that "essential" builtins are being declared
|
||||
|
@ -3,7 +3,7 @@ union Foo {
|
||||
ByteBuf;
|
||||
};
|
||||
|
||||
intr protocol bytebuf {
|
||||
intr protocol Pbytebuf {
|
||||
parent:
|
||||
async Msg(ByteBuf s, Foo f);
|
||||
sync SyncMsg(ByteBuf s, Foo f)
|
@ -1,3 +1,3 @@
|
||||
protocol empty {
|
||||
protocol Pempty {
|
||||
child: async Msg();
|
||||
};
|
3
ipc/ipdl/test/ipdl/ok/PemptyStruct.ipdl
Normal file
3
ipc/ipdl/test/ipdl/ok/PemptyStruct.ipdl
Normal file
@ -0,0 +1,3 @@
|
||||
struct empty { };
|
||||
|
||||
protocol PemptyStruct { child: async __delete__(); };
|
@ -2,7 +2,7 @@ include header;
|
||||
|
||||
namespace c {
|
||||
|
||||
protocol headerProto {
|
||||
protocol PheaderProto {
|
||||
child:
|
||||
async __delete__(foo a, baz b, Inner1 c, Inner2 d, X x);
|
||||
};
|
@ -1,4 +1,4 @@
|
||||
intr protocol intrProtocol {
|
||||
intr protocol PintrProtocol {
|
||||
|
||||
// sanity check of Interrupt protocols
|
||||
child:
|
@ -1,4 +1,4 @@
|
||||
intr protocol plugin {
|
||||
sync protocol Pjetpack {
|
||||
child:
|
||||
async __delete__();
|
||||
|
10
ipc/ipdl/test/ipdl/ok/PmanageSelf.ipdl
Normal file
10
ipc/ipdl/test/ipdl/ok/PmanageSelf.ipdl
Normal file
@ -0,0 +1,10 @@
|
||||
include protocol PmanageSelf_Toplevel;
|
||||
|
||||
protocol PmanageSelf {
|
||||
manager PmanageSelf_Toplevel or PmanageSelf;
|
||||
manages PmanageSelf;
|
||||
|
||||
child:
|
||||
async PmanageSelf();
|
||||
async __delete__();
|
||||
};
|
9
ipc/ipdl/test/ipdl/ok/PmanageSelf_Toplevel.ipdl
Normal file
9
ipc/ipdl/test/ipdl/ok/PmanageSelf_Toplevel.ipdl
Normal file
@ -0,0 +1,9 @@
|
||||
include protocol PmanageSelf;
|
||||
|
||||
protocol PmanageSelf_Toplevel {
|
||||
manages PmanageSelf;
|
||||
|
||||
child:
|
||||
async PmanageSelf();
|
||||
async __delete__();
|
||||
};
|
8
ipc/ipdl/test/ipdl/ok/PmanagedProtocol.ipdl
Normal file
8
ipc/ipdl/test/ipdl/ok/PmanagedProtocol.ipdl
Normal file
@ -0,0 +1,8 @@
|
||||
include protocol PmanagerProtocol;
|
||||
|
||||
protocol PmanagedProtocol {
|
||||
manager PmanagerProtocol;
|
||||
|
||||
child:
|
||||
async __delete__();
|
||||
};
|
11
ipc/ipdl/test/ipdl/ok/PmanagerProtocol.ipdl
Normal file
11
ipc/ipdl/test/ipdl/ok/PmanagerProtocol.ipdl
Normal file
@ -0,0 +1,11 @@
|
||||
include protocol PmanagedProtocol;
|
||||
|
||||
// sanity check of managed/manager protocols
|
||||
|
||||
protocol PmanagerProtocol {
|
||||
manages PmanagedProtocol;
|
||||
|
||||
parent:
|
||||
async PmanagedProtocol(int i);
|
||||
|
||||
};
|
@ -1,4 +1,4 @@
|
||||
protocol maybe_Basic {
|
||||
protocol Pmaybe_Basic {
|
||||
child:
|
||||
async Msg(int? maybe);
|
||||
};
|
10
ipc/ipdl/test/ipdl/ok/Pmaybe_OfActors.ipdl
Normal file
10
ipc/ipdl/test/ipdl/ok/Pmaybe_OfActors.ipdl
Normal file
@ -0,0 +1,10 @@
|
||||
include protocol Pmaybe_OfActorsSub;
|
||||
|
||||
protocol Pmaybe_OfActors {
|
||||
manages Pmaybe_OfActorsSub;
|
||||
|
||||
child:
|
||||
async Msg(Pmaybe_OfActorsSub? p);
|
||||
|
||||
async Pmaybe_OfActorsSub();
|
||||
};
|
7
ipc/ipdl/test/ipdl/ok/Pmaybe_OfActorsSub.ipdl
Normal file
7
ipc/ipdl/test/ipdl/ok/Pmaybe_OfActorsSub.ipdl
Normal file
@ -0,0 +1,7 @@
|
||||
include protocol Pmaybe_OfActors;
|
||||
|
||||
protocol Pmaybe_OfActorsSub {
|
||||
manager Pmaybe_OfActors;
|
||||
|
||||
child: async __delete__();
|
||||
};
|
@ -4,7 +4,7 @@ union MaybeUnion {
|
||||
double;
|
||||
};
|
||||
|
||||
sync protocol maybe_Union {
|
||||
sync protocol Pmaybe_Union {
|
||||
parent:
|
||||
async Msg(MaybeUnion u, MaybeUnion? au) returns (MaybeUnion r);
|
||||
};
|
@ -1,4 +1,4 @@
|
||||
sync protocol media {
|
||||
sync protocol Pmedia {
|
||||
child:
|
||||
async __delete__();
|
||||
|
@ -1,4 +1,4 @@
|
||||
intr protocol messageCompress {
|
||||
intr protocol PmessageCompress {
|
||||
child:
|
||||
async foo() compress;
|
||||
};
|
@ -1,7 +1,7 @@
|
||||
include protocol messageVerifyTopLevel;
|
||||
include protocol PmessageVerifyTopLevel;
|
||||
|
||||
intr protocol messageVerify {
|
||||
manager messageVerifyTopLevel;
|
||||
intr protocol PmessageVerify {
|
||||
manager PmessageVerifyTopLevel;
|
||||
|
||||
parent:
|
||||
sync __delete__(uint32_t x) returns (double rv1) verify;
|
7
ipc/ipdl/test/ipdl/ok/PmessageVerifyTopLevel.ipdl
Normal file
7
ipc/ipdl/test/ipdl/ok/PmessageVerifyTopLevel.ipdl
Normal file
@ -0,0 +1,7 @@
|
||||
include protocol PmessageVerify;
|
||||
|
||||
intr protocol PmessageVerifyTopLevel{
|
||||
manages PmessageVerify;
|
||||
parent:
|
||||
sync PmessageVerify(uint32_t aParam1) returns (double rv1) verify;
|
||||
};
|
9
ipc/ipdl/test/ipdl/ok/PmultiManaged.ipdl
Normal file
9
ipc/ipdl/test/ipdl/ok/PmultiManaged.ipdl
Normal file
@ -0,0 +1,9 @@
|
||||
include protocol PmultiManager1;
|
||||
include protocol PmultiManager2;
|
||||
|
||||
protocol PmultiManaged {
|
||||
manager PmultiManager1 or PmultiManager2;
|
||||
|
||||
child:
|
||||
async __delete__();
|
||||
};
|
8
ipc/ipdl/test/ipdl/ok/PmultiManager1.ipdl
Normal file
8
ipc/ipdl/test/ipdl/ok/PmultiManager1.ipdl
Normal file
@ -0,0 +1,8 @@
|
||||
include protocol PmultiManaged;
|
||||
|
||||
protocol PmultiManager1 {
|
||||
manages PmultiManaged;
|
||||
|
||||
child:
|
||||
async PmultiManaged();
|
||||
};
|
8
ipc/ipdl/test/ipdl/ok/PmultiManager2.ipdl
Normal file
8
ipc/ipdl/test/ipdl/ok/PmultiManager2.ipdl
Normal file
@ -0,0 +1,8 @@
|
||||
include protocol PmultiManaged;
|
||||
|
||||
protocol PmultiManager2 {
|
||||
manages PmultiManaged;
|
||||
|
||||
child:
|
||||
async PmultiManaged();
|
||||
};
|
@ -1,7 +1,7 @@
|
||||
using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
|
||||
using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
|
||||
|
||||
protocol multipleUsingCxxTypes {
|
||||
protocol PmultipleUsingCxxTypes {
|
||||
child:
|
||||
async Msg(void_t foo);
|
||||
};
|
@ -14,7 +14,7 @@ struct Z {
|
||||
Y y;
|
||||
};
|
||||
|
||||
protocol mutualRecStructUnion {
|
||||
protocol PmutualRecStructUnion {
|
||||
child:
|
||||
async Test(X x, Y y, Z z);
|
||||
async __delete__();
|
@ -14,7 +14,7 @@ union Z {
|
||||
X;
|
||||
};
|
||||
|
||||
protocol mutualRecUnion {
|
||||
protocol PmutualRecUnion {
|
||||
child:
|
||||
async Test(X x, Y y, Z z);
|
||||
async __delete__();
|
@ -2,7 +2,7 @@ namespace basic {
|
||||
|
||||
// sanity check of namespaced protocols
|
||||
|
||||
protocol namespace_Basic {
|
||||
protocol Pnamespace_Basic {
|
||||
|
||||
child:
|
||||
async Msg();
|
@ -1,4 +1,4 @@
|
||||
protocol noRedeclCrossMessage {
|
||||
protocol PnoRedeclCrossMessage {
|
||||
|
||||
// each message has its own scope for param/return names
|
||||
|
@ -1,4 +1,4 @@
|
||||
sync protocol jetpack {
|
||||
intr protocol Pplugin {
|
||||
child:
|
||||
async __delete__();
|
||||
|
@ -4,7 +4,7 @@ union R {
|
||||
R;
|
||||
};
|
||||
|
||||
protocol selfRecUnion {
|
||||
protocol PselfRecUnion {
|
||||
child:
|
||||
async Test(R r);
|
||||
async __delete__();
|
@ -3,7 +3,7 @@ union Foo {
|
||||
Shmem;
|
||||
};
|
||||
|
||||
intr protocol shmem {
|
||||
intr protocol Pshmem {
|
||||
parent:
|
||||
async Msg(Shmem s, Foo f);
|
||||
sync SyncMsg(Shmem s, Foo f)
|
@ -1,4 +1,4 @@
|
||||
sync protocol syncProtocol {
|
||||
sync protocol PsyncProtocol {
|
||||
|
||||
// sanity check of sync protocols
|
||||
|
@ -1,4 +1,4 @@
|
||||
protocol threeDirections {
|
||||
protocol PthreeDirections {
|
||||
|
||||
// sanity check that the three direction specifiers are being accepted
|
||||
child:
|
@ -3,7 +3,7 @@ union Basic {
|
||||
double;
|
||||
};
|
||||
|
||||
sync protocol union_Basic {
|
||||
sync protocol Punion_Basic {
|
||||
|
||||
parent:
|
||||
sync Msg(Basic p) returns (Basic r);
|
@ -10,7 +10,7 @@ union Socks {
|
||||
|
||||
namespace puppies {
|
||||
|
||||
protocol union_Namespaced {
|
||||
protocol Punion_Namespaced {
|
||||
child:
|
||||
async Msg(Socks s);
|
||||
};
|
@ -1,7 +0,0 @@
|
||||
include protocol SyncSyncManager;
|
||||
|
||||
sync protocol SyncSyncManagee {
|
||||
manager SyncSyncManager;
|
||||
child:
|
||||
async __delete__();
|
||||
};
|
@ -1,5 +0,0 @@
|
||||
protocol actorparam {
|
||||
|
||||
child: async Msg(actorparam p);
|
||||
|
||||
};
|
@ -1,6 +0,0 @@
|
||||
sync protocol actorreturn {
|
||||
|
||||
parent:
|
||||
sync Msg(actorreturn p) returns (actorreturn r);
|
||||
|
||||
};
|
@ -1,10 +0,0 @@
|
||||
include protocol array_OfActorsSub;
|
||||
|
||||
protocol array_OfActors {
|
||||
manages array_OfActorsSub;
|
||||
|
||||
child:
|
||||
async Msg(array_OfActorsSub[] p);
|
||||
|
||||
async array_OfActorsSub();
|
||||
};
|
@ -1,7 +0,0 @@
|
||||
include protocol array_OfActors;
|
||||
|
||||
protocol array_OfActorsSub {
|
||||
manager array_OfActors;
|
||||
|
||||
child: async __delete__();
|
||||
};
|
@ -1,3 +0,0 @@
|
||||
struct empty { };
|
||||
|
||||
protocol emptyStruct { child: async __delete__(); };
|
@ -1,10 +0,0 @@
|
||||
include protocol manageSelf_Toplevel;
|
||||
|
||||
protocol manageSelf {
|
||||
manager manageSelf_Toplevel or manageSelf;
|
||||
manages manageSelf;
|
||||
|
||||
child:
|
||||
async manageSelf();
|
||||
async __delete__();
|
||||
};
|
@ -1,9 +0,0 @@
|
||||
include protocol manageSelf;
|
||||
|
||||
protocol manageSelf_Toplevel {
|
||||
manages manageSelf;
|
||||
|
||||
child:
|
||||
async manageSelf();
|
||||
async __delete__();
|
||||
};
|
@ -1,8 +0,0 @@
|
||||
include protocol managerProtocol;
|
||||
|
||||
protocol managedProtocol {
|
||||
manager managerProtocol;
|
||||
|
||||
child:
|
||||
async __delete__();
|
||||
};
|
@ -1,11 +0,0 @@
|
||||
include protocol managedProtocol;
|
||||
|
||||
// sanity check of managed/manager protocols
|
||||
|
||||
protocol managerProtocol {
|
||||
manages managedProtocol;
|
||||
|
||||
parent:
|
||||
async managedProtocol(int i);
|
||||
|
||||
};
|
@ -1,10 +0,0 @@
|
||||
include protocol maybe_OfActorsSub;
|
||||
|
||||
protocol maybe_OfActors {
|
||||
manages maybe_OfActorsSub;
|
||||
|
||||
child:
|
||||
async Msg(maybe_OfActorsSub? p);
|
||||
|
||||
async maybe_OfActorsSub();
|
||||
};
|
@ -1,7 +0,0 @@
|
||||
include protocol maybe_OfActors;
|
||||
|
||||
protocol maybe_OfActorsSub {
|
||||
manager maybe_OfActors;
|
||||
|
||||
child: async __delete__();
|
||||
};
|
@ -1,7 +0,0 @@
|
||||
include protocol messageVerify;
|
||||
|
||||
intr protocol messageVerifyTopLevel{
|
||||
manages messageVerify;
|
||||
parent:
|
||||
sync messageVerify(uint32_t aParam1) returns (double rv1) verify;
|
||||
};
|
@ -1,9 +0,0 @@
|
||||
include protocol multiManager1;
|
||||
include protocol multiManager2;
|
||||
|
||||
protocol multiManaged {
|
||||
manager multiManager1 or multiManager2;
|
||||
|
||||
child:
|
||||
async __delete__();
|
||||
};
|
@ -1,8 +0,0 @@
|
||||
include protocol multiManaged;
|
||||
|
||||
protocol multiManager1 {
|
||||
manages multiManaged;
|
||||
|
||||
child:
|
||||
async multiManaged();
|
||||
};
|
@ -1,8 +0,0 @@
|
||||
include protocol multiManaged;
|
||||
|
||||
protocol multiManager2 {
|
||||
manages multiManaged;
|
||||
|
||||
child:
|
||||
async multiManaged();
|
||||
};
|
@ -1,24 +1,24 @@
|
||||
[actorreturn::Msg]
|
||||
[array_Union::Msg]
|
||||
[union_Basic::Msg]
|
||||
[Struct::test]
|
||||
[intrProtocol::SyncMsg]
|
||||
[intrProtocol::InterruptMsg]
|
||||
[shmem::SyncMsg]
|
||||
[shmem::InterruptMsg]
|
||||
[bytebuf::SyncMsg]
|
||||
[bytebuf::InterruptMsg]
|
||||
[syncProtocol::SyncMsg]
|
||||
[messageVerify::__delete__]
|
||||
[messageVerify::msg3]
|
||||
[messageVerify::msg4]
|
||||
[messageVerifyTopLevel::messageVerify]
|
||||
[DeleteSub::__delete__]
|
||||
[intrMessageCompress::foo]
|
||||
[intrMessageCompress::bar]
|
||||
[syncMessageCompress::foo]
|
||||
[syncParentToChild::Msg]
|
||||
[tooWeakIntrSync::Msg]
|
||||
[tooWeakSyncAsync::Msg]
|
||||
[undeclReturnType::Msg]
|
||||
[asyncMessageListed::Msg]
|
||||
[Pactorreturn::Msg]
|
||||
[Parray_Union::Msg]
|
||||
[Punion_Basic::Msg]
|
||||
[PStruct::test]
|
||||
[PintrProtocol::SyncMsg]
|
||||
[PintrProtocol::InterruptMsg]
|
||||
[Pshmem::SyncMsg]
|
||||
[Pshmem::InterruptMsg]
|
||||
[Pbytebuf::SyncMsg]
|
||||
[Pbytebuf::InterruptMsg]
|
||||
[PsyncProtocol::SyncMsg]
|
||||
[PmessageVerify::__delete__]
|
||||
[PmessageVerify::msg3]
|
||||
[PmessageVerify::msg4]
|
||||
[PmessageVerifyTopLevel::PmessageVerify]
|
||||
[PDeleteSub::__delete__]
|
||||
[PintrMessageCompress::foo]
|
||||
[PintrMessageCompress::bar]
|
||||
[PsyncMessageCompress::foo]
|
||||
[PsyncParentToChild::Msg]
|
||||
[PtooWeakIntrSync::Msg]
|
||||
[PtooWeakSyncAsync::Msg]
|
||||
[PundeclReturnType::Msg]
|
||||
[PasyncMessageListed::Msg]
|
||||
|
Loading…
Reference in New Issue
Block a user