]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | /******************************************************************** |
2 | * COPYRIGHT: | |
73c04bcf | 3 | * Copyright (c) 2002-2005, International Business Machines Corporation and |
b75a7d8f A |
4 | * others. All Rights Reserved. |
5 | ********************************************************************/ | |
6 | ||
7 | ||
8 | #ifndef _UOBJECTTEST_ | |
9 | #define _UOBJECTTEST_ | |
10 | ||
11 | #include "intltest.h" | |
12 | ||
13 | /** | |
14 | * Test uobjtest.h | |
15 | **/ | |
16 | class UObjectTest : public IntlTest { | |
17 | // IntlTest override | |
18 | void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ); | |
374ca955 | 19 | private: |
b75a7d8f A |
20 | // tests |
21 | void testIDs(); | |
374ca955 | 22 | void testUMemory(); |
73c04bcf | 23 | void TestMFCCompatibility(); |
374ca955 | 24 | |
b75a7d8f | 25 | //helper |
374ca955 | 26 | |
b75a7d8f A |
27 | /** |
28 | * @param obj The UObject to be tested | |
29 | * @param className The name of the class being tested | |
30 | * @param factory String version of obj, for exanple "new UFoo(1,3,4)". NULL if object is abstract. | |
31 | * @param staticID The result of class :: getStaticClassID | |
32 | * @return Returns obj, suitable for deletion | |
33 | */ | |
34 | UObject *testClass(UObject *obj, | |
374ca955 A |
35 | const char *className, const char *factory, |
36 | UClassID staticID); | |
37 | ||
38 | ||
b75a7d8f | 39 | }; |
374ca955 | 40 | |
b75a7d8f A |
41 | #endif |
42 | //eof |