mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
Bug 1339477 - Add more IPDL unit tests. r=kanru
--HG-- extra : rebase_source : 3e06de7f11cd51633e58639951254dbfe0cf0fe8
This commit is contained in:
parent
a8343a4b4b
commit
a03c79af0a
6
ipc/ipdl/test/ipdl/error/AsyncInsideSync.ipdl
Normal file
6
ipc/ipdl/test/ipdl/error/AsyncInsideSync.ipdl
Normal file
@ -0,0 +1,6 @@
|
||||
// inside_sync nested messages must be sync
|
||||
|
||||
protocol AsyncInsideSync {
|
||||
child:
|
||||
nested(inside_sync) async Msg();
|
||||
};
|
6
ipc/ipdl/test/ipdl/error/AsyncReturn.ipdl
Normal file
6
ipc/ipdl/test/ipdl/error/AsyncReturn.ipdl
Normal file
@ -0,0 +1,6 @@
|
||||
// Async messages are not allowed to return values.
|
||||
|
||||
protocol AsyncReturn {
|
||||
child:
|
||||
async Msg() returns(int32_t aNumber);
|
||||
};
|
10
ipc/ipdl/test/ipdl/error/ForgottenManagee.ipdl
Normal file
10
ipc/ipdl/test/ipdl/error/ForgottenManagee.ipdl
Normal file
@ -0,0 +1,10 @@
|
||||
include protocol ManagerForgot;
|
||||
|
||||
// This protocol says ManagerForgot manages it,
|
||||
// but ManagerForgot does not manage it.
|
||||
|
||||
protocol ForgottenManagee {
|
||||
manager ManagerForgot;
|
||||
child:
|
||||
async __delete__();
|
||||
};
|
9
ipc/ipdl/test/ipdl/error/ForgottenManager.ipdl
Normal file
9
ipc/ipdl/test/ipdl/error/ForgottenManager.ipdl
Normal file
@ -0,0 +1,9 @@
|
||||
include protocol ManageeForgot;
|
||||
|
||||
// ManageeForgot should have this protocol as its manager.
|
||||
|
||||
protocol ForgottenManager {
|
||||
manages ManageeForgot;
|
||||
child:
|
||||
async ManageeForgot();
|
||||
};
|
6
ipc/ipdl/test/ipdl/error/InsideCpowToChild.ipdl
Normal file
6
ipc/ipdl/test/ipdl/error/InsideCpowToChild.ipdl
Normal file
@ -0,0 +1,6 @@
|
||||
// inside_cpow nested parent-to-child messages are verboten
|
||||
|
||||
protocol InsideCpowToChild {
|
||||
child:
|
||||
nested(inside_cpow) sync Msg();
|
||||
};
|
9
ipc/ipdl/test/ipdl/error/ManageeForgot.ipdl
Normal file
9
ipc/ipdl/test/ipdl/error/ManageeForgot.ipdl
Normal file
@ -0,0 +1,9 @@
|
||||
include protocol ForgottenManager;
|
||||
|
||||
// See ForgottenManager. This includes ForgottenManager to ensure that
|
||||
// loading this file fails.
|
||||
|
||||
protocol ManageeForgot {
|
||||
child:
|
||||
async __delete__();
|
||||
};
|
9
ipc/ipdl/test/ipdl/error/ManagerForgot.ipdl
Normal file
9
ipc/ipdl/test/ipdl/error/ManagerForgot.ipdl
Normal file
@ -0,0 +1,9 @@
|
||||
include protocol ForgottenManagee;
|
||||
|
||||
// See ForgottenManagee.ipdl. This includes ForgottenManagee to
|
||||
// ensure that loading this file fails.
|
||||
|
||||
protocol ManagerForgot {
|
||||
child:
|
||||
async Msg();
|
||||
};
|
Loading…
Reference in New Issue
Block a user