From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- ipc/ipdl/test/cxx/TestDesc.cpp | 78 ------------------------------------------ 1 file changed, 78 deletions(-) delete mode 100644 ipc/ipdl/test/cxx/TestDesc.cpp (limited to 'ipc/ipdl/test/cxx/TestDesc.cpp') diff --git a/ipc/ipdl/test/cxx/TestDesc.cpp b/ipc/ipdl/test/cxx/TestDesc.cpp deleted file mode 100644 index 2ae199457d..0000000000 --- a/ipc/ipdl/test/cxx/TestDesc.cpp +++ /dev/null @@ -1,78 +0,0 @@ -#include "TestDesc.h" - -#include "IPDLUnitTests.h" // fail etc. - -namespace mozilla { -namespace _ipdltest { - -//----------------------------------------------------------------------------- -// parent -void TestDescParent::Main() { - PTestDescSubParent* p = CallPTestDescSubConstructor(0); - if (!p) fail("can't allocate Sub"); - - PTestDescSubsubParent* pp = p->CallPTestDescSubsubConstructor(); - if (!pp) fail("can't allocate Subsub"); - - if (!SendTest(pp)) fail("can't send Subsub"); -} - -mozilla::ipc::IPCResult TestDescParent::RecvOk(PTestDescSubsubParent* a) { - if (!a) fail("didn't receive Subsub"); - - if (!PTestDescSubsubParent::Call__delete__(a)) fail("deleting Subsub"); - - Close(); - - return IPC_OK(); -} - -PTestDescSubParent* TestDescParent::AllocPTestDescSubParent( - PTestDescSubsubParent* dummy) { - if (dummy) fail("actor supposed to be null"); - return new TestDescSubParent(); -} -bool TestDescParent::DeallocPTestDescSubParent(PTestDescSubParent* actor) { - delete actor; - return true; -} - -PTestDescSubsubParent* TestDescSubParent::AllocPTestDescSubsubParent() { - return new TestDescSubsubParent(); -} -bool TestDescSubParent::DeallocPTestDescSubsubParent( - PTestDescSubsubParent* actor) { - delete actor; - return true; -} - -//----------------------------------------------------------------------------- -// child - -mozilla::ipc::IPCResult TestDescChild::RecvTest(PTestDescSubsubChild* a) { - if (!a) fail("didn't receive Subsub"); - if (!SendOk(a)) fail("couldn't send Ok()"); - return IPC_OK(); -} - -PTestDescSubChild* TestDescChild::AllocPTestDescSubChild( - PTestDescSubsubChild* dummy) { - if (dummy) fail("actor supposed to be null"); - return new TestDescSubChild(); -} -bool TestDescChild::DeallocPTestDescSubChild(PTestDescSubChild* actor) { - delete actor; - return true; -} - -PTestDescSubsubChild* TestDescSubChild::AllocPTestDescSubsubChild() { - return new TestDescSubsubChild(); -} -bool TestDescSubChild::DeallocPTestDescSubsubChild( - PTestDescSubsubChild* actor) { - delete actor; - return true; -} - -} // namespace _ipdltest -} // namespace mozilla -- cgit v1.2.3