2002-11-27 21:20:20 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2010-05-19 17:29:33 +00:00
|
|
|
* Copyright (c) 2002-2010, International Business Machines Corporation and
|
2002-11-27 21:20:20 +00:00
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _UOBJECTTEST_
|
|
|
|
#define _UOBJECTTEST_
|
|
|
|
|
|
|
|
#include "intltest.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test uobjtest.h
|
|
|
|
**/
|
|
|
|
class UObjectTest : public IntlTest {
|
|
|
|
// IntlTest override
|
|
|
|
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
|
2004-11-12 05:58:08 +00:00
|
|
|
private:
|
2002-11-27 21:20:20 +00:00
|
|
|
// tests
|
|
|
|
void testIDs();
|
2003-12-17 00:34:44 +00:00
|
|
|
void testUMemory();
|
2005-07-07 22:27:00 +00:00
|
|
|
void TestMFCCompatibility();
|
2010-05-19 17:29:33 +00:00
|
|
|
void TestCompilerRTTI();
|
2004-11-12 05:58:08 +00:00
|
|
|
|
2002-11-27 21:20:20 +00:00
|
|
|
//helper
|
2004-11-12 05:58:08 +00:00
|
|
|
|
2002-11-27 21:20:20 +00:00
|
|
|
/**
|
|
|
|
* @param obj The UObject to be tested
|
|
|
|
* @param className The name of the class being tested
|
|
|
|
* @param factory String version of obj, for exanple "new UFoo(1,3,4)". NULL if object is abstract.
|
|
|
|
* @param staticID The result of class :: getStaticClassID
|
|
|
|
* @return Returns obj, suitable for deletion
|
|
|
|
*/
|
|
|
|
UObject *testClass(UObject *obj,
|
2004-11-11 23:34:58 +00:00
|
|
|
const char *className, const char *factory,
|
|
|
|
UClassID staticID);
|
2004-11-12 05:58:08 +00:00
|
|
|
|
2010-05-19 17:29:33 +00:00
|
|
|
UObject *testClassNoClassID(UObject *obj,
|
|
|
|
const char *className, const char *factory);
|
2002-11-27 21:20:20 +00:00
|
|
|
};
|
2004-11-12 05:58:08 +00:00
|
|
|
|
2002-11-27 21:20:20 +00:00
|
|
|
#endif
|
|
|
|
//eof
|