Bug 1339477 - Add more IPDL unit tests. r=kanru

--HG--
extra : rebase_source : 3e06de7f11cd51633e58639951254dbfe0cf0fe8
This commit is contained in:
Andrew McCreight 2017-02-14 08:34:04 -08:00
parent a8343a4b4b
commit a03c79af0a
7 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,6 @@
// inside_sync nested messages must be sync
protocol AsyncInsideSync {
child:
nested(inside_sync) async Msg();
};

View File

@ -0,0 +1,6 @@
// Async messages are not allowed to return values.
protocol AsyncReturn {
child:
async Msg() returns(int32_t aNumber);
};

View 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__();
};

View File

@ -0,0 +1,9 @@
include protocol ManageeForgot;
// ManageeForgot should have this protocol as its manager.
protocol ForgottenManager {
manages ManageeForgot;
child:
async ManageeForgot();
};

View File

@ -0,0 +1,6 @@
// inside_cpow nested parent-to-child messages are verboten
protocol InsideCpowToChild {
child:
nested(inside_cpow) sync Msg();
};

View 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__();
};

View 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();
};