]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/intltest/uobjtest.h
ICU-461.18.tar.gz
[apple/icu.git] / icuSources / test / intltest / uobjtest.h
CommitLineData
b75a7d8f
A
1/********************************************************************
2 * COPYRIGHT:
729e4ab9 3 * Copyright (c) 2002-2010, 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 **/
16class UObjectTest : public IntlTest {
17 // IntlTest override
18 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
374ca955 19private:
b75a7d8f
A
20 // tests
21 void testIDs();
374ca955 22 void testUMemory();
73c04bcf 23 void TestMFCCompatibility();
729e4ab9 24 void TestCompilerRTTI();
374ca955 25
b75a7d8f 26 //helper
374ca955 27
b75a7d8f
A
28 /**
29 * @param obj The UObject to be tested
30 * @param className The name of the class being tested
31 * @param factory String version of obj, for exanple "new UFoo(1,3,4)". NULL if object is abstract.
32 * @param staticID The result of class :: getStaticClassID
33 * @return Returns obj, suitable for deletion
34 */
35 UObject *testClass(UObject *obj,
374ca955
A
36 const char *className, const char *factory,
37 UClassID staticID);
38
729e4ab9
A
39 UObject *testClassNoClassID(UObject *obj,
40 const char *className, const char *factory);
b75a7d8f 41};
374ca955 42
b75a7d8f
A
43#endif
44//eof