Lines Matching refs:TestObject

58 class TestObject : public TestObjectBaseA, public TestObjectBaseB {
60 TestObject()
62 printf(" Creating TestObject %p.\n",
67 virtual ~TestObject()
69 printf(" Destroying TestObject %p.\n",
129 static void CreateTestObject(TestObject **aResult)
131 *aResult = new TestObject();
139 static void DoSomethingWithTestObject(TestObject *aIn)
141 printf(" Doing something with |TestObject| %p.\n",
145 static void DoSomethingWithConstTestObject(const TestObject *aIn)
147 printf(" Doing something with |const TestObject| %p.\n",
190 printf("Should create one |TestObject|:\n");
191 nsAutoPtr<TestObject> pobj( new TestObject() );
192 printf("Should destroy one |TestObject|:\n");
196 printf("Should create one |TestObject|:\n");
197 nsAutoPtr<TestObject> pobj( new TestObject() );
198 printf("Should create one |TestObject| and then destroy one:\n");
199 pobj = new TestObject();
200 printf("Should destroy one |TestObject|:\n");
204 printf("Should create 3 |TestObject|s:\n");
205 nsAutoArrayPtr<TestObject> pobj( new TestObject[3] );
206 printf("Should create 5 |TestObject|s and then destroy 3:\n");
207 pobj = new TestObject[5];
208 printf("Should destroy 5 |TestObject|s:\n");
324 nsAutoPtr<TestObject> ptr;
325 printf("Should create one |TestObject|:\n");
327 printf("Should destroy one |TestObject|:\n");
339 if ((void*)(TestObject*)0x1000 ==
340 (void*)(TestObjectBaseB*)(TestObject*)0x1000)
344 nsAutoPtr<TestObject> p1(new TestObject());
353 TestObject *p1 = new TestObject();
392 printf("Should create one |TestObject|:\n");
393 nsAutoPtr<TestObject> pobj( new TestObject() );
395 nsAutoPtr<TestObject> pobj2( pobj.forget() );
396 printf("Should destroy one |TestObject|:\n");
400 printf("Should create 3 |TestObject|s:\n");
401 nsAutoArrayPtr<TestObject> pobj( new TestObject[3] );
403 nsAutoArrayPtr<TestObject> pobj2( pobj.forget() );
404 printf("Should destroy 3 |TestObject|s:\n");
410 printf("Should create one |TestObject|:\n");
411 nsAutoPtr<TestObject> pobj(new TestObject());
412 printf("Should destroy one |TestObject|:\n");
416 printf("Should create 3 |TestObject|s:\n");
417 nsAutoArrayPtr<TestObject> pobj(new TestObject[3]);
418 printf("Should destroy 3 |TestObject|s:\n");
430 printf("Should create one |TestObject|:\n");
431 nsAutoPtr<TestObject> pobj(new TestObject());
432 printf("Should do something with one |TestObject|:\n");
434 printf("Should do something with one |TestObject|:\n");
436 printf("Should destroy one |TestObject|:\n");
440 printf("Should create 3 |TestObject|s:\n");
441 nsAutoArrayPtr<TestObject> pobj(new TestObject[3]);
442 printf("Should do something with one |TestObject|:\n");
444 printf("Should do something with one |TestObject|:\n");
446 printf("Should do something with one |TestObject|:\n");
448 printf("Should do something with one |TestObject|:\n");
450 printf("Should destroy 3 |TestObject|s:\n");
464 printf("Should create one |TestObject|:\n");
465 nsAutoPtr<TestObject> pobj(new TestObject());
466 printf("Should do something with one |TestObject|:\n");
468 printf("Should do something with one |TestObject|:\n");
470 printf("Should destroy one |TestObject|:\n");
474 printf("Should create 3 |TestObject|s:\n");
475 nsAutoArrayPtr<TestObject> pobj(new TestObject[3]);
476 printf("Should do something with one |TestObject|:\n");
478 printf("Should do something with one |TestObject|:\n");
480 printf("Should do something with one |TestObject|:\n");
482 printf("Should do something with one |TestObject|:\n");
484 printf("Should destroy 3 |TestObject|s:\n");
498 printf("Should create one |TestObject|:\n");
499 const nsAutoPtr<TestObject> pobj(new TestObject());
500 printf("Should do something with one |TestObject|:\n");
502 printf("Should do something with one |TestObject|:\n");
504 printf("Should destroy one |TestObject|:\n");
508 printf("Should create 3 |TestObject|s:\n");
509 const nsAutoArrayPtr<TestObject> pobj(new TestObject[3]);
510 printf("Should do something with one |TestObject|:\n");
512 printf("Should do something with one |TestObject|:\n");
514 printf("Should do something with one |TestObject|:\n");
516 printf("Should do something with one |TestObject|:\n");
518 printf("Should destroy 3 |TestObject|s:\n");
532 printf("Should create one |TestObject|:\n");
533 const nsAutoPtr<TestObject> pobj(new TestObject());
534 printf("Should do something with one |TestObject|:\n");
536 printf("Should do something with one |TestObject|:\n");
538 printf("Should destroy one |TestObject|:\n");
542 printf("Should create 3 |TestObject|s:\n");
543 const nsAutoArrayPtr<TestObject> pobj(new TestObject[3]);
544 printf("Should do something with one |TestObject|:\n");
546 printf("Should do something with one |TestObject|:\n");
548 printf("Should do something with one |TestObject|:\n");
550 printf("Should do something with one |TestObject|:\n");
552 printf("Should destroy 3 |TestObject|s:\n");