diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /ipc/ipdl/test/cxx/TestHangs.h | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ipc/ipdl/test/cxx/TestHangs.h')
-rw-r--r-- | ipc/ipdl/test/cxx/TestHangs.h | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/ipc/ipdl/test/cxx/TestHangs.h b/ipc/ipdl/test/cxx/TestHangs.h deleted file mode 100644 index a3dfb991f5..0000000000 --- a/ipc/ipdl/test/cxx/TestHangs.h +++ /dev/null @@ -1,75 +0,0 @@ -#ifndef mozilla__ipdltest_TestHangs_h -#define mozilla__ipdltest_TestHangs_h 1 - -#include "mozilla/_ipdltest/IPDLUnitTests.h" - -#include "mozilla/_ipdltest/PTestHangsParent.h" -#include "mozilla/_ipdltest/PTestHangsChild.h" - -namespace mozilla { -namespace _ipdltest { - -class TestHangsParent : public PTestHangsParent { - friend class PTestHangsParent; - - public: - TestHangsParent(); - virtual ~TestHangsParent(); - - static bool RunTestInProcesses() { return true; } - - // FIXME/bug 703320 Disabled because parent kills child proc, not - // clear how that should work in threads. - static bool RunTestInThreads() { return false; } - - void Main(); - - protected: - virtual bool ShouldContinueFromReplyTimeout() override; - - mozilla::ipc::IPCResult RecvNonce() { return IPC_OK(); } - - mozilla::ipc::IPCResult AnswerStackFrame(); - - virtual void ActorDestroy(ActorDestroyReason why) override { - if (AbnormalShutdown != why) fail("unexpected destruction!"); - passed("ok"); - QuitParent(); - } - - void CleanUp(); - - bool mDetectedHang; - int32_t mNumAnswerStackFrame; -}; - -class TestHangsChild : public PTestHangsChild { - friend class PTestHangsChild; - - public: - TestHangsChild(); - virtual ~TestHangsChild(); - - protected: - mozilla::ipc::IPCResult RecvStart() { - if (!SendNonce()) fail("sending Nonce"); - return IPC_OK(); - } - - mozilla::ipc::IPCResult AnswerStackFrame() { - if (CallStackFrame()) fail("should have failed"); - return IPC_OK(); - } - - mozilla::ipc::IPCResult AnswerHang(); - - virtual void ActorDestroy(ActorDestroyReason why) override { - if (AbnormalShutdown != why) fail("unexpected destruction!"); - QuitChild(); - } -}; - -} // namespace _ipdltest -} // namespace mozilla - -#endif // ifndef mozilla__ipdltest_TestHangs_h |