gecko/ipc/ipdl/test/cxx
2010-04-26 20:11:40 -05:00
..
app bug 526397: fix up command line init. no r=, minor 2009-11-03 23:12:18 -06:00
genIPDLUnitTests.py fix some leaks found by valgrind. r=trivial 2009-12-04 18:15:44 -06:00
ipdl.mk Bug 548437: Test SysV shmem. 2010-04-16 00:29:17 -05:00
IPDLUnitTests.h Bug 552117 - Print current test name in IPDL tests. r=cjones 2010-03-13 13:23:50 +13:00
IPDLUnitTests.template.cpp Bug 552117 - Print current test name in IPDL tests. r=cjones 2010-03-13 13:23:50 +13:00
IPDLUnitTestSubprocess.cpp bug 518126, part 2: add infrastructure for C++ tests of IPDL-generated code. r=ted,bsmedberg 2009-10-06 13:02:26 -05:00
IPDLUnitTestSubprocess.h bug 518126, part 2: add infrastructure for C++ tests of IPDL-generated code. r=ted,bsmedberg 2009-10-06 13:02:26 -05:00
IPDLUnitTestThreadChild.cpp Bug 516515 - Don't initialize XPCOM in plugin processes, r=cjones 2010-02-03 17:17:09 -05:00
IPDLUnitTestThreadChild.h Bug 516515 - Don't initialize XPCOM in plugin processes, r=cjones 2010-02-03 17:17:09 -05:00
IPDLUnitTestTypes.h bug 529005: detect child process shutdowns vs. crashes, and expose this information to IPDL actors in a new |ActorDestroy(why)| interface. also ensure that subprotocol actors are notified of shutdown and cleaned up properly. r=bsmedberg r=bent 2009-12-03 02:16:28 -06:00
Makefile.in Bug 548437: Test SysV shmem. 2010-04-16 00:29:17 -05:00
PTestArrays.ipdl bug 525342: make IPDL dtors part of the destructed actor's protocol instead of the manager's. r=bsmedberg 2009-12-03 02:16:14 -06:00
PTestArraysSub.ipdl Bug 545591: Temporary workaround. 2010-02-11 00:48:33 -06:00
PTestBlockChild.ipdl Bug 540886, part 3: IPDL/C++ test for BlockChild()/UnblockChild(). r=bnewman 2010-01-27 00:41:33 -06:00
PTestCrashCleanup.ipdl Test for bug 538586. 2010-01-12 00:14:31 -06:00
PTestDesc.ipdl bug 525342: make IPDL dtors part of the destructed actor's protocol instead of the manager's. r=bsmedberg 2009-12-03 02:16:14 -06:00
PTestDescSub.ipdl bug 525342: make IPDL dtors part of the destructed actor's protocol instead of the manager's. r=bsmedberg 2009-12-03 02:16:14 -06:00
PTestDescSubsub.ipdl bug 525342: make IPDL dtors part of the destructed actor's protocol instead of the manager's. r=bsmedberg 2009-12-03 02:16:14 -06:00
PTestHangs.ipdl Bug 546035: Test 2010-03-11 01:35:28 -06:00
PTestLatency.ipdl Don't run TestLatency if the timing resolution is too low and use the new TimeDuration::ToSecondsSigDigits() method to display durations to humans. No r=, test only. 2010-01-11 23:46:17 -06:00
PTestManyChildAllocs.ipdl bug 525342: make IPDL dtors part of the destructed actor's protocol instead of the manager's. r=bsmedberg 2009-12-03 02:16:14 -06:00
PTestManyChildAllocsSub.ipdl bug 525342: make IPDL dtors part of the destructed actor's protocol instead of the manager's. r=bsmedberg 2009-12-03 02:16:14 -06:00
PTestMultiMgrs.ipdl Bug 540111, part 5: IPDL/C++ test of multi-managers. r=bnewman 2010-01-26 22:56:14 -06:00
PTestMultiMgrsBottom.ipdl Bug 540111, part 5: IPDL/C++ test of multi-managers. r=bnewman 2010-01-26 22:56:14 -06:00
PTestMultiMgrsLeft.ipdl Bug 540111, part 5: IPDL/C++ test of multi-managers. r=bnewman 2010-01-26 22:56:14 -06:00
PTestMultiMgrsRight.ipdl Bug 540111, part 5: IPDL/C++ test of multi-managers. r=bnewman 2010-01-26 22:56:14 -06:00
PTestNestedLoops.ipdl Bug 552014: Test 2010-03-18 17:52:34 -05:00
PTestRacyRPCReplies.ipdl Bug 548214: Extended IPDL/C++ test. 2010-02-24 15:59:24 -06:00
PTestRPCErrorCleanup.ipdl bug 535298: IPDL unit test for use-after-free crashes after RPC errors. r=test-only 2009-12-17 18:12:01 -06:00
PTestRPCRaces.ipdl Bug 549888: Test 2010-03-11 01:35:32 -06:00
PTestRPCShutdownRace.ipdl Bug 545342: Test 2010-03-11 01:35:21 -06:00
PTestSanity.ipdl Followup to bug 542052: Windows doesn't like stdint types. 2010-01-25 17:18:11 -06:00
PTestShmem.ipdl bug 523175: follow-up to 82549dbf71d8, fully enables the C++/IPDL side of Shmem and adds unit tests. r=bent 2009-12-04 12:45:21 -06:00
PTestShutdown.ipdl Test for followup to bug 539856. 2010-01-15 15:15:51 -06:00
PTestShutdownSub.ipdl Test for followup to bug 539856. 2010-01-15 15:15:51 -06:00
PTestShutdownSubsub.ipdl Test for bug 539856. 2010-01-14 23:25:56 -06:00
PTestStackHooks.ipdl Bug 545455: IPDL/C++ test. 2010-02-16 12:44:23 -06:00
PTestSyncWakeup.ipdl Test for bug 538239. 2010-01-20 21:50:07 -06:00
PTestSysVShmem.ipdl Bug 548437: Test SysV shmem. 2010-04-16 00:29:17 -05:00
README.txt bug 518425: C++ unit test for bug 2009-10-06 13:05:47 -05:00
TestArrays.cpp bug 529005: detect child process shutdowns vs. crashes, and expose this information to IPDL actors in a new |ActorDestroy(why)| interface. also ensure that subprotocol actors are notified of shutdown and cleaned up properly. r=bsmedberg r=bent 2009-12-03 02:16:28 -06:00
TestArrays.h bug 529005: detect child process shutdowns vs. crashes, and expose this information to IPDL actors in a new |ActorDestroy(why)| interface. also ensure that subprotocol actors are notified of shutdown and cleaned up properly. r=bsmedberg r=bent 2009-12-03 02:16:28 -06:00
TestBlockChild.cpp Bug 540886, part 3: IPDL/C++ test for BlockChild()/UnblockChild(). r=bnewman 2010-01-27 00:41:33 -06:00
TestBlockChild.h Bug 540886, part 3: IPDL/C++ test for BlockChild()/UnblockChild(). r=bnewman 2010-01-27 00:41:33 -06:00
TestCrashCleanup.cpp Test for bug 538586. 2010-01-12 00:14:31 -06:00
TestCrashCleanup.h Test for bug 538586. 2010-01-12 00:14:31 -06:00
TestDesc.cpp bug 529005: detect child process shutdowns vs. crashes, and expose this information to IPDL actors in a new |ActorDestroy(why)| interface. also ensure that subprotocol actors are notified of shutdown and cleaned up properly. r=bsmedberg r=bent 2009-12-03 02:16:28 -06:00
TestDesc.h bug 529005: detect child process shutdowns vs. crashes, and expose this information to IPDL actors in a new |ActorDestroy(why)| interface. also ensure that subprotocol actors are notified of shutdown and cleaned up properly. r=bsmedberg r=bent 2009-12-03 02:16:28 -06:00
TestHangs.cpp Bug 546035: Test 2010-03-11 01:35:28 -06:00
TestHangs.h Bug 546035: Test 2010-03-11 01:35:28 -06:00
TestLatency.cpp Don't run TestLatency if the timing resolution is too low and use the new TimeDuration::ToSecondsSigDigits() method to display durations to humans. No r=, test only. 2010-01-11 23:46:17 -06:00
TestLatency.h Don't run TestLatency if the timing resolution is too low and use the new TimeDuration::ToSecondsSigDigits() method to display durations to humans. No r=, test only. 2010-01-11 23:46:17 -06:00
TestManyChildAllocs.cpp bug 529005: detect child process shutdowns vs. crashes, and expose this information to IPDL actors in a new |ActorDestroy(why)| interface. also ensure that subprotocol actors are notified of shutdown and cleaned up properly. r=bsmedberg r=bent 2009-12-03 02:16:28 -06:00
TestManyChildAllocs.h bug 529005: detect child process shutdowns vs. crashes, and expose this information to IPDL actors in a new |ActorDestroy(why)| interface. also ensure that subprotocol actors are notified of shutdown and cleaned up properly. r=bsmedberg r=bent 2009-12-03 02:16:28 -06:00
TestMultiMgrs.cpp Bug 540111, part 5: IPDL/C++ test of multi-managers. r=bnewman 2010-01-26 22:56:14 -06:00
TestMultiMgrs.h Bug 540111, part 5: IPDL/C++ test of multi-managers. r=bnewman 2010-01-26 22:56:14 -06:00
TestNestedLoops.cpp Bug 552014: Test 2010-03-18 17:52:34 -05:00
TestNestedLoops.h Bug 552014: Test 2010-03-18 17:52:34 -05:00
TestRacyRPCReplies.cpp Bug 548214: Extended IPDL/C++ test. 2010-02-24 15:59:24 -06:00
TestRacyRPCReplies.h Bug 548214: Extended IPDL/C++ test. 2010-02-24 15:59:24 -06:00
TestRPCErrorCleanup.cpp Test for bug 538586. 2010-01-12 00:14:31 -06:00
TestRPCErrorCleanup.h bug 535298: IPDL unit test for use-after-free crashes after RPC errors. r=test-only 2009-12-17 18:12:01 -06:00
TestRPCRaces.cpp Bug 549888: Test 2010-03-11 01:35:32 -06:00
TestRPCRaces.h Bug 549888: Test 2010-03-11 01:35:32 -06:00
TestRPCShutdownRace.cpp Followup to bug 545342: atomically refcount the dequeue task. r=bent 2010-03-11 16:24:15 -06:00
TestRPCShutdownRace.h Bug 545342: Test 2010-03-11 01:35:21 -06:00
TestSanity.cpp Followup to bug 542052: Windows doesn't like stdint types. 2010-01-25 17:18:11 -06:00
TestSanity.h Followup to bug 542052: Windows doesn't like stdint types. 2010-01-25 17:18:11 -06:00
TestShmem.cpp Bug 555275: Implement a DeallocShmem() interface. r=bent 2010-04-26 20:11:40 -05:00
TestShmem.h bug 523175: follow-up to 82549dbf71d8, fully enables the C++/IPDL side of Shmem and adds unit tests. r=bent 2009-12-04 12:45:21 -06:00
TestShutdown.cpp Test for followup to bug 539856. 2010-01-15 15:15:51 -06:00
TestShutdown.h Test for followup to bug 539856. 2010-01-15 15:15:51 -06:00
TestStackHooks.cpp Bug 545455: IPDL/C++ test. 2010-02-16 12:44:23 -06:00
TestStackHooks.h Bug 545455: IPDL/C++ test. 2010-02-16 12:44:23 -06:00
TestSyncWakeup.cpp Fix Windows build busted by 2e3e142612b1. 2010-01-20 22:58:47 -06:00
TestSyncWakeup.h Test for bug 538239. 2010-01-20 21:50:07 -06:00
TestSysVShmem.cpp Bug 555275: Implement a DeallocShmem() interface. r=bent 2010-04-26 20:11:40 -05:00
TestSysVShmem.h Bug 548437: Test SysV shmem. 2010-04-16 00:29:17 -05:00

To add a new IPDL C++ unit test, you need to create (at least) the
following files (for a test "TestFoo"):

  - PTestFoo.ipdl, specifying the top-level protocol used for the test

  - TestFoo.h, declaring the top-level parent/child actors used for
    the test

  - TestFoo.cpp, defining the top-level actors

  - (make sure all are in the namespace mozilla::_ipdltest)

Next

  - add PTestFoo.ipdl to ipdl.mk

  - append TestFoo to the variable IPDLTESTS in Makefile.in

The IPDL test harness will try to execute |testFooParentActor->Main()|
to kick off your test.  Make sure you define |TestFooParent::Main()|.

If your test passes its criteria, please call
|MOZ_IPDL_TESTPASS("msg")| and "exit gracefully".

If your tests fails, please call |MOZ_IPDL_TESTFAIL("msg")| and "exit
ungracefully", preferably by abort()ing.


If all goes well, running

  make -C $OBJDIR/ipc/ipdl/test/cxx

will update the file IPDLUnitTests.cpp (the test launcher), and your
new code will be built automatically.


You can launch your new test by invoking

  make -C $OBJDIR/ipc/ipdl/test/cxx check

If you want to launch only your test, run

  cd $OBJDIR/dist/bin
  ./run-mozilla.sh ./ipdlunittest TestFoo


For a bare-bones example of adding a test, take a look at
PTestSanity.ipdl, TestSanity.h, TestSanity.cpp, and how "TestSanity"
is included in ipdl.mk and Makefile.in.