diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /ipc/ipdl/test/cxx/TestInterruptShutdownRace.h | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ipc/ipdl/test/cxx/TestInterruptShutdownRace.h')
-rw-r--r-- | ipc/ipdl/test/cxx/TestInterruptShutdownRace.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/ipc/ipdl/test/cxx/TestInterruptShutdownRace.h b/ipc/ipdl/test/cxx/TestInterruptShutdownRace.h deleted file mode 100644 index 17425fc06c..0000000000 --- a/ipc/ipdl/test/cxx/TestInterruptShutdownRace.h +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef mozilla__ipdltest_TestInterruptShutdownRace_h -#define mozilla__ipdltest_TestInterruptShutdownRace_h 1 - -#include "mozilla/_ipdltest/IPDLUnitTests.h" - -#include "mozilla/_ipdltest/PTestInterruptShutdownRaceParent.h" -#include "mozilla/_ipdltest/PTestInterruptShutdownRaceChild.h" - -namespace mozilla { -namespace _ipdltest { - -class TestInterruptShutdownRaceParent - : public PTestInterruptShutdownRaceParent { - public: - TestInterruptShutdownRaceParent(); - virtual ~TestInterruptShutdownRaceParent(); - - static bool RunTestInProcesses() { return true; } - // FIXME/bug 703323 Could work if modified - static bool RunTestInThreads() { return false; } - - void Main(); - - mozilla::ipc::IPCResult RecvStartDeath(); - - mozilla::ipc::IPCResult RecvOrphan(); - - protected: - void StartShuttingDown(); - - virtual void ActorDestroy(ActorDestroyReason why) override { - if (AbnormalShutdown != why) fail("unexpected destruction!"); - } -}; - -class TestInterruptShutdownRaceChild : public PTestInterruptShutdownRaceChild { - friend class PTestInterruptShutdownRaceChild; - - public: - TestInterruptShutdownRaceChild(); - virtual ~TestInterruptShutdownRaceChild(); - - protected: - mozilla::ipc::IPCResult RecvStart(); - - mozilla::ipc::IPCResult AnswerExit(); - - virtual void ActorDestroy(ActorDestroyReason why) override { - fail("should have 'crashed'!"); - } -}; - -} // namespace _ipdltest -} // namespace mozilla - -#endif // ifndef mozilla__ipdltest_TestInterruptShutdownRace_h |