66 lines
2.0 KiB
C
66 lines
2.0 KiB
C
|
/**
|
||
|
*******************************************************************************
|
||
|
* Copyright (C) 2001-2002, International Business Machines Corporation and *
|
||
|
* others. All Rights Reserved. *
|
||
|
*******************************************************************************
|
||
|
*
|
||
|
*******************************************************************************
|
||
|
*/
|
||
|
|
||
|
#ifndef ICUSVTST_H
|
||
|
#define ICUSVTST_H
|
||
|
|
||
|
#include "unicode/utypes.h"
|
||
|
|
||
|
#if !UCONFIG_NO_SERVICE
|
||
|
|
||
|
#include "intltest.h"
|
||
|
|
||
|
U_NAMESPACE_BEGIN
|
||
|
|
||
|
class Integer;
|
||
|
|
||
|
class ICUServiceTest : public IntlTest
|
||
|
{
|
||
|
public:
|
||
|
ICUServiceTest();
|
||
|
~ICUServiceTest();
|
||
|
|
||
|
void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL);
|
||
|
|
||
|
void testAPI_One(void);
|
||
|
void testAPI_Two(void);
|
||
|
void testRBF(void);
|
||
|
void testNotification(void);
|
||
|
void testLocale(void);
|
||
|
void testWrapFactory(void);
|
||
|
void testCoverage(void);
|
||
|
|
||
|
private:
|
||
|
UnicodeString& lrmsg(UnicodeString& result, const UnicodeString& message, const UObject* lhs, const UObject* rhs) const;
|
||
|
void confirmBoolean(const UnicodeString& message, UBool val);
|
||
|
#if 0
|
||
|
void confirmEqual(const UnicodeString& message, const UObject* lhs, const UObject* rhs);
|
||
|
#else
|
||
|
void confirmEqual(const UnicodeString& message, const Integer* lhs, const Integer* rhs);
|
||
|
void confirmEqual(const UnicodeString& message, const UnicodeString* lhs, const UnicodeString* rhs);
|
||
|
void confirmEqual(const UnicodeString& message, const Locale* lhs, const Locale* rhs);
|
||
|
#endif
|
||
|
void confirmStringsEqual(const UnicodeString& message, const UnicodeString& lhs, const UnicodeString& rhs);
|
||
|
void confirmIdentical(const UnicodeString& message, const UObject* lhs, const UObject* rhs);
|
||
|
void confirmIdentical(const UnicodeString& message, int32_t lhs, int32_t rhs);
|
||
|
|
||
|
void msgstr(const UnicodeString& message, UObject* obj, UBool err = TRUE);
|
||
|
void logstr(const UnicodeString& message, UObject* obj) {
|
||
|
msgstr(message, obj, FALSE);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
U_NAMESPACE_END
|
||
|
|
||
|
/* UCONFIG_NO_SERVICE */
|
||
|
#endif
|
||
|
|
||
|
/* ICUSVTST_H */
|
||
|
#endif
|