Bug 1746288 - Remove intr from IPDL tests r=ipc-reviewers,nika

Some tests had `intr` as a means of having the most restricted protocol
type; those were downgraded to `sync`.

Differential Revision: https://phabricator.services.mozilla.com/D204783
This commit is contained in:
Alex 2024-03-19 13:21:15 +00:00
Родитель c973ce585b
Коммит f50b261d13
23 изменённых файлов: 9 добавлений и 142 удалений

Просмотреть файл

@ -1,9 +0,0 @@
//error: protocol `IntrAsyncManagee' requires more powerful send semantics than its manager `IntrAsyncManager' provides
include protocol IntrAsyncManager;
intr protocol IntrAsyncManagee {
manager IntrAsyncManager;
child:
async __delete__();
};

Просмотреть файл

@ -1,10 +0,0 @@
//error: protocol `IntrAsyncManagee' requires more powerful send semantics than its manager `IntrAsyncManager' provides
include protocol IntrAsyncManagee;
[ChildProc=any]
async protocol IntrAsyncManager {
manages IntrAsyncManagee;
parent:
async IntrAsyncManagee();
};

Просмотреть файл

@ -1,9 +0,0 @@
//error: protocol `IntrSyncManagee' requires more powerful send semantics than its manager `IntrSyncManager' provides
include protocol IntrSyncManager;
intr protocol IntrSyncManagee {
manager IntrSyncManager;
child:
async __delete__();
};

Просмотреть файл

@ -1,10 +0,0 @@
//error: protocol `IntrSyncManagee' requires more powerful send semantics than its manager `IntrSyncManager' provides
include protocol IntrSyncManagee;
[ChildProc=any]
sync protocol IntrSyncManager {
manages IntrSyncManagee;
parent:
async IntrSyncManagee();
};

Просмотреть файл

@ -1,7 +0,0 @@
//error: intr message `Msg' cannot specify [Nested]
[ChildProc=any]
intr protocol PIntrNested {
child:
[Nested=inside_sync, LegacyIntr] intr Msg();
};

Просмотреть файл

@ -1,7 +0,0 @@
//error: intr protocol `PIntrNestedProtocol' cannot specify [NestedUpTo]
[NestedUpTo=inside_sync, ChildProc=any]
intr protocol PIntrNestedProtocol {
child:
[LegacyIntr] intr Msg();
};

Просмотреть файл

@ -1,7 +0,0 @@
//error: intr message `Msg' cannot specify [Priority]
[ChildProc=any]
intr protocol PIntrPriority {
child:
[Priority=vsync, LegacyIntr] intr Msg();
};

Просмотреть файл

@ -1,7 +1,7 @@
//error: argument typename `int' of message `foo' has a NoTaint attribute, but the message lacks the Tainted attribute
[ChildProc=any]
intr protocol PNoTaintWithoutTainted {
sync protocol PNoTaintWithoutTainted {
child:
async foo([NoTaint=passback] int id);
};

Просмотреть файл

@ -4,7 +4,7 @@
include protocol compressCtorManagee;
[ChildProc=any]
intr protocol compressCtor {
sync protocol compressCtor {
manages compressCtorManagee;
parent:

Просмотреть файл

@ -3,7 +3,7 @@
include protocol compressCtor;
intr protocol compressCtorManagee {
sync protocol compressCtorManagee {
manager compressCtor;
child:

Просмотреть файл

@ -1,10 +0,0 @@
//error: message `foo' in protocol `intrMessageCompress' requests compression but is not async
//error: message `bar' in protocol `intrMessageCompress' requests compression but is not async
[ChildProc=any]
intr protocol intrMessageCompress {
parent:
[Compress, LegacyIntr] intr foo();
child:
[Compress, LegacyIntr] intr bar();
};

Просмотреть файл

@ -1,7 +1,7 @@
//error: sync parent-to-child messages are verboten (here, message `Msg' in protocol `syncParentToChild')
[ChildProc=any]
intr protocol syncParentToChild {
sync protocol syncParentToChild {
// can't declare sync parent-to-child messages
child: sync Msg();

Просмотреть файл

@ -1,10 +0,0 @@
//error: message `Msg' requires more powerful send semantics than its protocol `tooWeakIntrAsync' provides
[ChildProc=any]
protocol tooWeakIntrAsync {
// it's an error to declare an async protocol with an intr message
parent: [LegacyIntr] intr Msg();
};

Просмотреть файл

@ -1,9 +0,0 @@
//error: message `Msg' requires more powerful send semantics than its protocol `tooWeakIntrSync' provides
[ChildProc=any]
sync protocol tooWeakIntrSync {
// it's an error to declare a sync protocol with an interrupt message
parent:
[LegacyIntr] intr Msg();
};

Просмотреть файл

@ -1,7 +0,0 @@
//error: Unknown sync IPC message unknownIntrMessage::Msg
[ChildProc=any]
intr protocol unknownIntrMessage {
parent:
[LegacyIntr] intr Msg();
};

Просмотреть файл

@ -1,5 +1,5 @@
[ChildProc=any]
intr protocol PMessageTainted {
sync protocol PMessageTainted {
child:
[Tainted] async foo();
};

Просмотреть файл

@ -1,5 +1,5 @@
[ChildProc=any]
intr protocol PMessageTaintedWithPassback {
sync protocol PMessageTaintedWithPassback {
child:
[Tainted] async foo([NoTaint=passback] int id);
};

Просмотреть файл

@ -4,11 +4,9 @@ union Foo {
};
[ChildProc=any]
intr protocol Pbytebuf {
sync protocol Pbytebuf {
parent:
async Msg(ByteBuf s, Foo f);
sync SyncMsg(ByteBuf s, Foo f)
returns (ByteBuf t, Foo g);
[LegacyIntr] intr InterruptMsg(ByteBuf s, Foo f)
returns (ByteBuf t, Foo g);
};

Просмотреть файл

@ -1,14 +0,0 @@
[ChildProc=any]
intr protocol PintrProtocol {
// sanity check of Interrupt protocols
child:
async AsyncMsg();
parent:
sync SyncMsg(int i) returns (int r);
both:
[LegacyIntr] intr InterruptMsg(int x) returns (int y);
};

Просмотреть файл

@ -1,5 +1,5 @@
[ChildProc=any]
intr protocol PmessageCompress {
sync protocol PmessageCompress {
child:
[Compress] async foo();
[Compress=all] async bar();

Просмотреть файл

@ -1,6 +0,0 @@
[ChildProc=any]
intr protocol Pplugin {
child:
async __delete__();
};

Просмотреть файл

@ -4,11 +4,9 @@ union Foo {
};
[ChildProc=any]
intr protocol Pshmem {
sync protocol Pshmem {
parent:
async Msg(Shmem s, Foo f);
sync SyncMsg(Shmem s, Foo f)
returns (Shmem t, Foo g);
[LegacyIntr] intr InterruptMsg(Shmem s, Foo f)
returns (Shmem t, Foo g);
};

Просмотреть файл

@ -10,30 +10,16 @@ description = test only
description = test only
[Punion_Comparable::Msg]
description = test only
[PintrProtocol::SyncMsg]
description = test only
[PintrProtocol::InterruptMsg]
description = test only
[Pshmem::SyncMsg]
description = test only
[Pshmem::InterruptMsg]
description = test only
[Pbytebuf::SyncMsg]
description = test only
[Pbytebuf::InterruptMsg]
description = test only
[PsyncProtocol::SyncMsg]
description = test only
[PintrMessageCompress::foo]
description = test only
[PintrMessageCompress::bar]
description = test only
[PsyncMessageCompress::foo]
description = test only
[PsyncParentToChild::Msg]
description = test only
[PtooWeakIntrSync::Msg]
description = test only
[PtooWeakSyncAsync::Msg]
description = test only
[PundeclReturnType::Msg]