You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.1 KiB
65 lines
2.1 KiB
4 months ago
|
// © 2016 and later: Unicode, Inc. and others.
|
||
|
// License & terms of use: http://www.unicode.org/copyright.html
|
||
|
/**
|
||
|
*******************************************************************************
|
||
|
* Copyright (C) 2001-2003, 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"
|
||
|
|
||
|
class Integer;
|
||
|
|
||
|
class ICUServiceTest : public IntlTest
|
||
|
{
|
||
|
public:
|
||
|
ICUServiceTest();
|
||
|
virtual ~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);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
/* UCONFIG_NO_SERVICE */
|
||
|
#endif
|
||
|
|
||
|
/* ICUSVTST_H */
|
||
|
#endif
|