diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /ipc/ipdl/test/cxx/TestRacyReentry.cpp | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ipc/ipdl/test/cxx/TestRacyReentry.cpp')
-rw-r--r-- | ipc/ipdl/test/cxx/TestRacyReentry.cpp | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/ipc/ipdl/test/cxx/TestRacyReentry.cpp b/ipc/ipdl/test/cxx/TestRacyReentry.cpp deleted file mode 100644 index 4224018e11..0000000000 --- a/ipc/ipdl/test/cxx/TestRacyReentry.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "TestRacyReentry.h" - -#include "IPDLUnitTests.h" // fail etc. - -namespace mozilla { -namespace _ipdltest { - -//----------------------------------------------------------------------------- -// parent - -TestRacyReentryParent::TestRacyReentryParent() : mRecvdE(false) { - MOZ_COUNT_CTOR(TestRacyReentryParent); -} - -TestRacyReentryParent::~TestRacyReentryParent() { - MOZ_COUNT_DTOR(TestRacyReentryParent); -} - -void TestRacyReentryParent::Main() { - if (!SendStart()) fail("sending Start"); - - if (!SendN()) fail("sending N"); -} - -mozilla::ipc::IPCResult TestRacyReentryParent::AnswerE() { - if (!mRecvdE) { - mRecvdE = true; - return IPC_OK(); - } - - if (!CallH()) fail("calling H"); - - return IPC_OK(); -} - -//----------------------------------------------------------------------------- -// child - -TestRacyReentryChild::TestRacyReentryChild() { - MOZ_COUNT_CTOR(TestRacyReentryChild); -} - -TestRacyReentryChild::~TestRacyReentryChild() { - MOZ_COUNT_DTOR(TestRacyReentryChild); -} - -mozilla::ipc::IPCResult TestRacyReentryChild::RecvStart() { - if (!CallE()) fail("calling E"); - - Close(); - - return IPC_OK(); -} - -mozilla::ipc::IPCResult TestRacyReentryChild::RecvN() { - if (!CallE()) fail("calling E"); - return IPC_OK(); -} - -mozilla::ipc::IPCResult TestRacyReentryChild::AnswerH() { return IPC_OK(); } - -} // namespace _ipdltest -} // namespace mozilla |