Dactyloidae/ipc/ipdl/test/cxx/TestEndpointOpens.h
Moonchild 8c395520d9 Issue #1656 - Part 1: Nuke most vim config lines in the tree.
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-25 22:04:12 +08:00

100 lines
2.2 KiB
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
#ifndef mozilla__ipdltest_TestEndpointOpens_h
#define mozilla__ipdltest_TestEndpointOpens_h 1
#include "mozilla/_ipdltest/IPDLUnitTests.h"
#include "mozilla/_ipdltest/PTestEndpointOpensParent.h"
#include "mozilla/_ipdltest/PTestEndpointOpensChild.h"
#include "mozilla/_ipdltest2/PTestEndpointOpensOpenedParent.h"
#include "mozilla/_ipdltest2/PTestEndpointOpensOpenedChild.h"
namespace mozilla {
// parent process
namespace _ipdltest {
class TestEndpointOpensParent : public PTestEndpointOpensParent
{
public:
TestEndpointOpensParent() {}
virtual ~TestEndpointOpensParent() {}
static bool RunTestInProcesses() { return true; }
static bool RunTestInThreads() { return false; }
void Main();
protected:
virtual bool RecvStartSubprotocol(mozilla::ipc::Endpoint<PTestEndpointOpensOpenedParent>&& endpoint);
virtual void ActorDestroy(ActorDestroyReason why) override;
};
} // namespace _ipdltest
namespace _ipdltest2 {
class TestEndpointOpensOpenedParent : public PTestEndpointOpensOpenedParent
{
public:
explicit TestEndpointOpensOpenedParent()
{}
virtual ~TestEndpointOpensOpenedParent() {}
protected:
virtual bool RecvHello() override;
virtual bool RecvHelloSync() override;
virtual bool AnswerHelloRpc() override;
virtual void ActorDestroy(ActorDestroyReason why) override;
};
} // namespace _ipdltest2
// child process
namespace _ipdltest {
class TestEndpointOpensChild : public PTestEndpointOpensChild
{
public:
TestEndpointOpensChild();
virtual ~TestEndpointOpensChild() {}
protected:
virtual bool RecvStart() override;
virtual void ActorDestroy(ActorDestroyReason why) override;
};
} // namespace _ipdltest
namespace _ipdltest2 {
class TestEndpointOpensOpenedChild : public PTestEndpointOpensOpenedChild
{
public:
explicit TestEndpointOpensOpenedChild()
: mGotHi(false)
{}
virtual ~TestEndpointOpensOpenedChild() {}
protected:
virtual bool RecvHi() override;
virtual bool AnswerHiRpc() override;
virtual void ActorDestroy(ActorDestroyReason why) override;
bool mGotHi;
};
} // namespace _ipdltest2
} // namespace mozilla
#endif // ifndef mozilla__ipdltest_TestEndpointOpens_h