mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
61 lines
1.2 KiB
C++
61 lines
1.2 KiB
C++
#ifndef mozilla__ipdltest_TestRPCErrorCleanup_h
|
|
#define mozilla__ipdltest_TestRPCErrorCleanup_h 1
|
|
|
|
#include "mozilla/_ipdltest/IPDLUnitTests.h"
|
|
|
|
#include "mozilla/_ipdltest/PTestRPCErrorCleanupParent.h"
|
|
#include "mozilla/_ipdltest/PTestRPCErrorCleanupChild.h"
|
|
|
|
namespace mozilla {
|
|
namespace _ipdltest {
|
|
|
|
|
|
class TestRPCErrorCleanupParent :
|
|
public PTestRPCErrorCleanupParent
|
|
{
|
|
public:
|
|
TestRPCErrorCleanupParent();
|
|
virtual ~TestRPCErrorCleanupParent();
|
|
|
|
void Main();
|
|
|
|
protected:
|
|
NS_OVERRIDE
|
|
virtual void ActorDestroy(ActorDestroyReason why)
|
|
{
|
|
if (AbnormalShutdown != why)
|
|
fail("unexpected destruction!");
|
|
}
|
|
|
|
NS_OVERRIDE
|
|
virtual void ProcessingError(Result what);
|
|
|
|
bool mGotProcessingError;
|
|
};
|
|
|
|
|
|
class TestRPCErrorCleanupChild :
|
|
public PTestRPCErrorCleanupChild
|
|
{
|
|
public:
|
|
TestRPCErrorCleanupChild();
|
|
virtual ~TestRPCErrorCleanupChild();
|
|
|
|
protected:
|
|
NS_OVERRIDE
|
|
virtual bool AnswerError();
|
|
|
|
NS_OVERRIDE
|
|
virtual void ActorDestroy(ActorDestroyReason why)
|
|
{
|
|
fail("should have 'crashed'!");
|
|
}
|
|
};
|
|
|
|
|
|
} // namespace _ipdltest
|
|
} // namespace mozilla
|
|
|
|
|
|
#endif // ifndef mozilla__ipdltest_TestRPCErrorCleanup_h
|