Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PIPDLUnitTest_h
#define PIPDLUnitTest_h
#include "mozilla/Attributes.h"
#include "IPCMessageStart.h"
#include "mozilla/RefPtr.h"
#include "nsString.h"
#include "nsTArray.h"
#include "nsTHashtable.h"
#include "mozilla/MozPromise.h"
#include "mozilla/OperatorNewExtensions.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/ipc/ByteBuf.h"
#include "mozilla/ipc/FileDescriptor.h"
#include "mozilla/ipc/IPCForwards.h"
#include "mozilla/ipc/Shmem.h"
// Headers for typedefs
#include "mozilla/ipc/IPDLStructMember.h"
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct TestPartResult|
//
namespace mozilla {
namespace _ipdltest {
class TestPartResult final
{
private:
typedef ::nsCString nsCString;
typedef ::int32_t int32_t;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
TestPartResult() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT TestPartResult(
const bool& _failed,
const bool& _fatal,
const nsCString& _filename,
const int32_t& _lineNumber,
const nsCString& _summary,
const nsCString& _message) :
failed_(_failed),
fatal_(_fatal),
filename_(_filename),
summary_(_summary),
message_(_message),
lineNumber_(_lineNumber)
{
}
MOZ_IMPLICIT TestPartResult(
bool&& _failed,
bool&& _fatal,
nsCString&& _filename,
int32_t&& _lineNumber,
nsCString&& _summary,
nsCString&& _message) :
failed_(std::move(_failed)),
fatal_(std::move(_fatal)),
filename_(std::move(_filename)),
summary_(std::move(_summary)),
message_(std::move(_message)),
lineNumber_(std::move(_lineNumber))
{
}
bool&
failed()
{
return failed_;
}
const bool&
failed() const
{
return failed_;
}
bool&
fatal()
{
return fatal_;
}
const bool&
fatal() const
{
return fatal_;
}
nsCString&
filename()
{
return filename_;
}
const nsCString&
filename() const
{
return filename_;
}
int32_t&
lineNumber()
{
return lineNumber_;
}
const int32_t&
lineNumber() const
{
return lineNumber_;
}
nsCString&
summary()
{
return summary_;
}
const nsCString&
summary() const
{
return summary_;
}
nsCString&
message()
{
return message_;
}
const nsCString&
message() const
{
return message_;
}
private:
::mozilla::ipc::IPDLStructMember<bool> failed_;
::mozilla::ipc::IPDLStructMember<bool> fatal_;
::mozilla::ipc::IPDLStructMember<nsCString> filename_;
::mozilla::ipc::IPDLStructMember<nsCString> summary_;
::mozilla::ipc::IPDLStructMember<nsCString> message_;
::mozilla::ipc::IPDLStructMember<int32_t> lineNumber_;
};
} // namespace _ipdltest
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::_ipdltest::TestPartResult>
{
typedef ::mozilla::_ipdltest::TestPartResult paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
namespace mozilla {
namespace _ipdltest {
class PIPDLUnitTestParent;
} // namespace _ipdltest
} // namespace mozilla
namespace mozilla {
namespace _ipdltest {
class PIPDLUnitTestChild;
} // namespace _ipdltest
} // namespace mozilla
//-----------------------------------------------------------------------------
// Code common to PIPDLUnitTestChild and PIPDLUnitTestParent
//
namespace mozilla {
namespace _ipdltest {
namespace PIPDLUnitTest {
nsresult
CreateEndpoints(
base::ProcessId aParentDestPid,
base::ProcessId aChildDestPid,
mozilla::ipc::Endpoint<::mozilla::_ipdltest::PIPDLUnitTestParent>* aParent,
mozilla::ipc::Endpoint<::mozilla::_ipdltest::PIPDLUnitTestChild>* aChild);
enum MessageType {
PIPDLUnitTestStart = PIPDLUnitTestMsgStart << 16,
Msg_Start__ID,
Msg_Report__ID,
Msg_Complete__ID,
PIPDLUnitTestEnd
};
mozilla::UniquePtr<IPC::Message>
Msg_Start(int32_t routingId);
mozilla::UniquePtr<IPC::Message>
Msg_Report(int32_t routingId);
mozilla::UniquePtr<IPC::Message>
Msg_Complete(int32_t routingId);
} // namespace PIPDLUnitTest
} // namespace _ipdltest
} // namespace mozilla
#endif // ifndef PIPDLUnitTest_h