File tree Expand file tree Collapse file tree 1 file changed +27
-8
lines changed Expand file tree Collapse file tree 1 file changed +27
-8
lines changed Original file line number Diff line number Diff line change @@ -126,14 +126,8 @@ Bar::Release(void)
126
126
return mRefCnt ;
127
127
}
128
128
129
-
130
- int main (int argc, char **argv)
129
+ void Sizing ()
131
130
{
132
- ScopedXPCOM xpcom (" nsCOMArrayTests" );
133
- if (xpcom.failed ()) {
134
- return 1 ;
135
- }
136
-
137
131
int rv = 0 ;
138
132
139
133
Array arr;
@@ -178,6 +172,10 @@ int main(int argc, char **argv)
178
172
}
179
173
}
180
174
175
+ }
176
+
177
+ void ObjectFunctions ()
178
+ {
181
179
int32_t base;
182
180
{
183
181
Array2 arr2;
@@ -259,7 +257,11 @@ int main(int argc, char **argv)
259
257
fail (" Release called multiple times for Clear" );
260
258
}
261
259
}
260
+ }
262
261
262
+ void ElementFunctions ()
263
+ {
264
+ int32_t base;
263
265
{
264
266
Array2 arr2;
265
267
@@ -340,7 +342,11 @@ int main(int argc, char **argv)
340
342
fail (" Release called multiple times for Clear" );
341
343
}
342
344
}
345
+ }
343
346
347
+ void Destructor ()
348
+ {
349
+ int32_t base;
344
350
Bar::sReleaseCalled = 0 ;
345
351
346
352
{
@@ -358,6 +364,19 @@ int main(int argc, char **argv)
358
364
if (Bar::sReleaseCalled != base + 20 ) {
359
365
fail (" Release called multiple times for nsCOMArray::~nsCOMArray" );
360
366
}
367
+ }
368
+
369
+ int main (int argc, char **argv)
370
+ {
371
+ ScopedXPCOM xpcom (" nsCOMArrayTests" );
372
+ if (xpcom.failed ()) {
373
+ return 1 ;
374
+ }
375
+
376
+ Sizing ();
377
+ ObjectFunctions ();
378
+ ElementFunctions ();
379
+ Destructor ();
361
380
362
- return rv ;
381
+ return 0 ;
363
382
}
You can’t perform that action at this time.
0 commit comments