~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/js/src/xpconnect/tests/components/xpctest_private.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 
2
 *
 
3
 * ***** BEGIN LICENSE BLOCK *****
 
4
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
5
 *
 
6
 * The contents of this file are subject to the Mozilla Public License Version
 
7
 * 1.1 (the "License"); you may not use this file except in compliance with
 
8
 * the License. You may obtain a copy of the License at
 
9
 * http://www.mozilla.org/MPL/
 
10
 *
 
11
 * Software distributed under the License is distributed on an "AS IS" basis,
 
12
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 
13
 * for the specific language governing rights and limitations under the
 
14
 * License.
 
15
 *
 
16
 * The Original Code is Mozilla Communicator client code, released
 
17
 * March 31, 1998.
 
18
 *
 
19
 * The Initial Developer of the Original Code is
 
20
 * Netscape Communications Corporation.
 
21
 * Portions created by the Initial Developer are Copyright (C) 1998
 
22
 * the Initial Developer. All Rights Reserved.
 
23
 *
 
24
 * Contributor(s):
 
25
 *   John Bandhauer <jband@netscape.com>
 
26
 *
 
27
 * Alternatively, the contents of this file may be used under the terms of
 
28
 * either of the GNU General Public License Version 2 or later (the "GPL"),
 
29
 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
30
 * in which case the provisions of the GPL or the LGPL are applicable instead
 
31
 * of those above. If you wish to allow use of your version of this file only
 
32
 * under the terms of either the GPL or the LGPL, and not to allow others to
 
33
 * use your version of this file under the terms of the MPL, indicate your
 
34
 * decision by deleting the provisions above and replace them with the notice
 
35
 * and other provisions required by the GPL or the LGPL. If you do not delete
 
36
 * the provisions above, a recipient may use your version of this file under
 
37
 * the terms of any one of the MPL, the GPL or the LGPL.
 
38
 *
 
39
 * ***** END LICENSE BLOCK ***** */
 
40
 
 
41
/* local header for xpconnect tests components */
 
42
 
 
43
#ifndef xpctest_private_h___
 
44
#define xpctest_private_h___
 
45
 
 
46
#include "nsISupports.h"
 
47
#include "nsIFactory.h"
 
48
#include "nsMemory.h"
 
49
#include "nsIXPConnect.h"
 
50
#include "nsIServiceManager.h"
 
51
#include "nsIComponentManager.h"
 
52
#include "nsIGenericFactory.h"
 
53
#include "nscore.h"
 
54
#include "nsCOMPtr.h"
 
55
#include "nsAString.h"
 
56
#include "nsVariant.h"
 
57
#include <stdio.h>
 
58
 
 
59
#include "xpctest.h"
 
60
#include "jsapi.h"
 
61
 
 
62
#if defined(WIN32) && !defined(XPCONNECT_STANDALONE)
 
63
#define IMPLEMENT_TIMER_STUFF 1
 
64
#endif
 
65
 
 
66
#ifdef IMPLEMENT_TIMER_STUFF
 
67
#include "nsITimer.h"
 
68
#endif // IMPLEMENT_TIMER_STUFF
 
69
 
 
70
// {ED132C20-EED1-11d2-BAA4-00805F8A5DD7}
 
71
#define NS_ECHO_CID \
 
72
{ 0xed132c20, 0xeed1, 0x11d2, \
 
73
    { 0xba, 0xa4, 0x0, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 } }
 
74
 
 
75
// {0ECB3420-0D6F-11d3-BAB8-00805F8A5DD7}
 
76
#define NS_CHILD_CID \
 
77
{ 0xecb3420, 0xd6f, 0x11d3, \
 
78
    { 0xba, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 } }
 
79
 
 
80
// {FD774840-237B-11d3-9879-006008962422}
 
81
#define NS_NOISY_CID \
 
82
{ 0xfd774840, 0x237b, 0x11d3, \
 
83
    { 0x98, 0x79, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
 
84
 
 
85
// {4DD7EC80-30D9-11d3-9885-006008962422}
 
86
#define NS_STRING_TEST_CID \
 
87
{ 0x4dd7ec80, 0x30d9, 0x11d3,\
 
88
    { 0x98, 0x85, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
 
89
 
 
90
// {DC5FDE90-439D-11d3-988C-006008962422}
 
91
#define NS_OVERLOADED_CID \
 
92
{ 0xdc5fde90, 0x439d, 0x11d3, \
 
93
    { 0x98, 0x8c, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
 
94
 
 
95
#define NS_XPCTESTOBJECTREADONLY_CID \
 
96
  {0x1364941e, 0x4462, 0x11d3, \
 
97
    { 0x82, 0xee, 0x00, 0x60, 0xb0, 0xeb, 0x59, 0x6f }}
 
98
 
 
99
#define NS_XPCTESTOBJECTREADWRITE_CID \
 
100
  {0x3b9b1d38, 0x491a, 0x11d3, \
 
101
    { 0x82, 0xef, 0x00, 0x60, 0xb0, 0xeb, 0x59, 0x6f }}
 
102
 
 
103
#define NS_XPCTESTIN_CID \
 
104
  {0x318d6f6a, 0x5411, 0x11d3, \
 
105
    { 0x82, 0xef, 0x00, 0x60, 0xb0, 0xeb, 0x59, 0x6f }}
 
106
 
 
107
#define NS_XPCTESTOUT_CID \
 
108
  {0x4105ae88, 0x5599, 0x11d3, \
 
109
    { 0x82, 0xef, 0x00, 0x60, 0xb0, 0xeb, 0x59, 0x6f }}
 
110
 
 
111
#define NS_XPCTESTINOUT_CID \
 
112
  { 0x70c54fa0, 0xc25e, 0x11d3, \
 
113
    { 0x98, 0xc9, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
 
114
 
 
115
#define NS_XPCTESTCONST_CID \
 
116
  {0x83f57a56, 0x4f55, 0x11d3, \
 
117
    { 0x82, 0xef, 0x00, 0x60, 0xb0, 0xeb, 0x59, 0x6f }}
 
118
 
 
119
#define NS_XPCTESTCALLJS_CID \
 
120
  {0x38ba7d98, 0x5a54, 0x11d3, \
 
121
    { 0x82, 0xef, 0x00, 0x60, 0xb0, 0xeb, 0x59, 0x6f }}
 
122
 
 
123
#define NS_XPCTESTPARENTONE_CID \
 
124
  {0x5408fdcc, 0x60a3, 0x11d3, \
 
125
    { 0x82, 0xef, 0x00, 0x60, 0xb0, 0xeb, 0x59, 0x6f }}
 
126
 
 
127
#define NS_XPCTESTPARENTTWO_CID \
 
128
  {0x63137392, 0x60a3, 0x11d3, \
 
129
    { 0x82, 0xef, 0x00, 0x60, 0xb0, 0xeb, 0x59, 0x6f }}
 
130
 
 
131
#define NS_XPCTESTCHILD2_CID \
 
132
  {0x66bed216, 0x60a3, 0x11d3, \
 
133
    { 0x82, 0xef, 0x00, 0x60, 0xb0, 0xeb, 0x59, 0x6f }}
 
134
 
 
135
#define NS_XPCTESTCHILD3_CID \
 
136
  {0x62353978, 0x614e, 0x11d3, \
 
137
    { 0x82, 0xef, 0x00, 0x60, 0xb0, 0xeb, 0x59, 0x6f }}
 
138
 
 
139
#define NS_XPCTESTCHILD4_CID \
 
140
  {0xa6d22202, 0x622b, 0x11d3, \
 
141
    { 0x82, 0xef, 0x00, 0x60, 0xb0, 0xeb, 0x59, 0x6f }}
 
142
 
 
143
#define NS_XPCTESTCHILD5_CID \
 
144
  {0xba3eef4e, 0x6250, 0x11d3, \
 
145
    { 0x82, 0xef, 0x00, 0x60, 0xb0, 0xeb, 0x59, 0x6f }}
 
146
 
 
147
// {5B9AF380-6569-11d3-989E-006008962422}
 
148
#define NS_ARRAY_CID \
 
149
{ 0x5b9af380, 0x6569, 0x11d3, \
 
150
    { 0x98, 0x9e, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
 
151
 
 
152
// {DB569F7E-16FB-4BCB-A86C-E08AA7F97666}
 
153
#define NS_XPCTESTDOMSTRING_CID \
 
154
  {0xdb569f7e, 0x16fb, 0x1bcb, \
 
155
    { 0xa8, 0x6c, 0xe0, 0x8a, 0xa7, 0xf9, 0x76, 0x66 }}
 
156
 
 
157
// {DC932D30-95B0-11d5-90FC-0010A4E73D9A}
 
158
#define NS_XPCTESTVARIANT_CID \
 
159
  {0xdc932d30, 0x95b0, 0x11d5, \
 
160
    { 0x90, 0xfc, 0x0, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}
 
161
 
 
162
// 'namespace' class
 
163
class xpctest
 
164
{
 
165
public:
 
166
  static NS_METHOD ConstructEcho(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
167
  static NS_METHOD ConstructChild(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
168
  static NS_METHOD ConstructNoisy(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
169
  static NS_METHOD ConstructStringTest(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
170
  static NS_METHOD ConstructOverloaded(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
171
  static NS_METHOD ConstructXPCTestObjectReadOnly(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
172
  static NS_METHOD ConstructXPCTestObjectReadWrite(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
173
  static NS_METHOD ConstructXPCTestIn(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
174
  static NS_METHOD ConstructXPCTestOut(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
175
  static NS_METHOD ConstructXPCTestInOut(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
176
  static NS_METHOD ConstructXPCTestConst(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
177
  static NS_METHOD ConstructXPCTestCallJS(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
178
  static NS_METHOD ConstructXPCTestParentOne(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
179
  static NS_METHOD ConstructXPCTestParentTwo(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
180
  static NS_METHOD ConstructXPCTestChild2(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
181
  static NS_METHOD ConstructXPCTestChild3(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
182
  static NS_METHOD ConstructXPCTestChild4(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
183
  static NS_METHOD ConstructXPCTestChild5(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
184
  static NS_METHOD ConstructArrayTest(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
185
  static NS_METHOD ConstructXPCTestDOMString(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
186
  static NS_METHOD ConstructXPCTestVariant(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
187
 
 
188
private:
 
189
    xpctest();  // not implemented
 
190
};
 
191
 
 
192
#endif /* xpctest_private_h___ */