Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 #ifndef mozilla__ipdltest_TestSyncHang_h
2 #define mozilla__ipdltest_TestSyncHang_h 1
4 #include "mozilla/_ipdltest/IPDLUnitTests.h"
6 #include "mozilla/_ipdltest/PTestSyncHangParent.h"
7 #include "mozilla/_ipdltest/PTestSyncHangChild.h"
9 namespace mozilla {
10 namespace _ipdltest {
13 class TestSyncHangParent :
14 public PTestSyncHangParent
15 {
16 public:
17 TestSyncHangParent();
18 virtual ~TestSyncHangParent();
20 static bool RunTestInProcesses() { return true; }
21 // FIXME/bug 703323 Could work if modified
22 static bool RunTestInThreads() { return false; }
24 void Main();
26 protected:
27 virtual void ActorDestroy(ActorDestroyReason why) MOZ_OVERRIDE
28 {
29 if (NormalShutdown != why)
30 fail("unexpected destruction!");
31 passed("ok");
32 QuitParent();
33 }
34 };
37 class TestSyncHangChild :
38 public PTestSyncHangChild
39 {
40 public:
41 TestSyncHangChild();
42 virtual ~TestSyncHangChild();
44 protected:
45 virtual void ActorDestroy(ActorDestroyReason why) MOZ_OVERRIDE
46 {
47 if (NormalShutdown != why)
48 fail("unexpected destruction!");
49 QuitChild();
50 }
51 };
54 } // namespace _ipdltest
55 } // namespace mozilla
58 #endif // ifndef mozilla__ipdltest_TestSyncHang_h