Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/security/sandbox/common/test/mozISandboxTest.idl
*/
#ifndef __gen_mozISandboxTest_h__
#define __gen_mozISandboxTest_h__
#include "nsISupports.h"
#include "nsTArray.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: mozISandboxTest */
#define MOZISANDBOXTEST_IID_STR "2306c118-3544-4674-9222-670b88dc07a9"
#define MOZISANDBOXTEST_IID \
{0x2306c118, 0x3544, 0x4674, \
{ 0x92, 0x22, 0x67, 0x0b, 0x88, 0xdc, 0x07, 0xa9 }}
class NS_NO_VTABLE mozISandboxTest : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(MOZISANDBOXTEST_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = mozISandboxTest;
/* void startTests (in Array<ACString> aProcessesList); */
NS_IMETHOD StartTests(const nsTArray<nsCString >& aProcessesList) = 0;
/* void finishTests (); */
NS_IMETHOD FinishTests(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(mozISandboxTest, MOZISANDBOXTEST_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_MOZISANDBOXTEST \
NS_IMETHOD StartTests(const nsTArray<nsCString >& aProcessesList) override; \
NS_IMETHOD FinishTests(void) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_MOZISANDBOXTEST \
nsresult StartTests(const nsTArray<nsCString >& aProcessesList); \
nsresult FinishTests(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_MOZISANDBOXTEST(_to) \
NS_IMETHOD StartTests(const nsTArray<nsCString >& aProcessesList) override { return _to StartTests(aProcessesList); } \
NS_IMETHOD FinishTests(void) override { return _to FinishTests(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_MOZISANDBOXTEST(_to) \
NS_IMETHOD StartTests(const nsTArray<nsCString >& aProcessesList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartTests(aProcessesList); } \
NS_IMETHOD FinishTests(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FinishTests(); }
#if defined(MOZ_SANDBOX) && defined(MOZ_DEBUG) && defined(ENABLE_TESTS)
#define MOZ_SANDBOX_TEST_CID \
{0x989dda27, 0xb144, 0x45f9, {0x90, 0x39, 0x69, 0x74, 0x4e, 0xc6, dd0xd9, 0x12}}
#define MOZ_SANDBOX_TEST_CONTRACTID \
"@mozilla.org/sandbox/sandbox-test;1"
#else
#error "This file should not be used outside of debug with tests"
#endif
#endif /* __gen_mozISandboxTest_h__ */