From 52fef40b4f93b746f5a6bac1782dc26b40c9f804 Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Mon, 10 May 1999 20:16:45 +0000 Subject: [PATCH] Copied nsITestXPCFoo from xpconnect so that I did not have to include it. --- xpcom/proxy/tests/proxytests.cpp | 33 +++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/xpcom/proxy/tests/proxytests.cpp b/xpcom/proxy/tests/proxytests.cpp index 7f91b3446dd5..f8e11a50da74 100644 --- a/xpcom/proxy/tests/proxytests.cpp +++ b/xpcom/proxy/tests/proxytests.cpp @@ -28,7 +28,38 @@ #include "prmon.h" -#include "../../../js/src/xpconnect/public/xpctest.h" +//-- + +/* {159E36D0-991E-11d2-AC3F-00C09300144B} */ +#define NS_ITESTXPCFOO_IID_STR "159E36D0-991E-11d2-AC3F-00C09300144B" +#define NS_ITESTXPCFOO_IID \ + {0x159E36D0, 0x991E, 0x11d2, \ + { 0xAC, 0x3F, 0x00, 0xC0, 0x93, 0x00, 0x14, 0x4B }} + +class nsITestXPCFoo : public nsISupports { + public: + NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITESTXPCFOO_IID) + + /* long Test (in long p1, in long p2); */ + NS_IMETHOD Test(PRInt32 p1, PRInt32 p2, PRInt32 *_retval) = 0; + + /* void Test2 (); */ + NS_IMETHOD Test2() = 0; + + enum { one = 1 }; + + enum { five = 5 }; + + enum { six = 6 }; + +#ifdef XPIDL_JS_STUBS + static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx); + static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsITestXPCFoo *priv); +#endif +}; + + +// #include "nsProxyObjectManager.h"