]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/intltest/uobjtest.h
ICU-62123.0.1.tar.gz
[apple/icu.git] / icuSources / test / intltest / uobjtest.h
CommitLineData
f3c0d7a5
A
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
b75a7d8f
A
3/********************************************************************
4 * COPYRIGHT:
729e4ab9 5 * Copyright (c) 2002-2010, International Business Machines Corporation and
b75a7d8f
A
6 * others. All Rights Reserved.
7 ********************************************************************/
8
9
10#ifndef _UOBJECTTEST_
11#define _UOBJECTTEST_
12
13#include "intltest.h"
14
15/**
16 * Test uobjtest.h
17 **/
18class UObjectTest : public IntlTest {
19 // IntlTest override
20 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
374ca955 21private:
b75a7d8f
A
22 // tests
23 void testIDs();
374ca955 24 void testUMemory();
73c04bcf 25 void TestMFCCompatibility();
729e4ab9 26 void TestCompilerRTTI();
374ca955 27
b75a7d8f 28 //helper
374ca955 29
b75a7d8f
A
30 /**
31 * @param obj The UObject to be tested
32 * @param className The name of the class being tested
33 * @param factory String version of obj, for exanple "new UFoo(1,3,4)". NULL if object is abstract.
34 * @param staticID The result of class :: getStaticClassID
35 * @return Returns obj, suitable for deletion
36 */
37 UObject *testClass(UObject *obj,
374ca955
A
38 const char *className, const char *factory,
39 UClassID staticID);
40
729e4ab9
A
41 UObject *testClassNoClassID(UObject *obj,
42 const char *className, const char *factory);
b75a7d8f 43};
374ca955 44
b75a7d8f
A
45#endif
46//eof