Lines Matching refs:IntlTest
11 * IntlTest is a base class for tests.
29 #include "intltest.h"
227 IntlTest::appendHex(uint32_t number,
267 IntlTest::prettify(const UnicodeString &source,
303 IntlTest::prettify(const UnicodeString &source, UBool parseBackslash)
352 /* IntlTest::setICU_DATA - if the ICU_DATA environment variable is not already
361 void IntlTest::setICU_DATA() {
433 IntlTest* IntlTest::gTest = NULL;
439 if (IntlTest::gTest)
440 IntlTest::gTest->log( message );
445 if (IntlTest::gTest)
446 IntlTest::gTest->logln( message );
451 if (IntlTest::gTest)
452 IntlTest::gTest->logln();
457 if (IntlTest::gTest)
458 IntlTest::gTest->info( message );
463 if (IntlTest::gTest)
464 IntlTest::gTest->infoln( message );
469 if (IntlTest::gTest)
470 IntlTest::gTest->infoln();
475 if (IntlTest::gTest)
476 IntlTest::gTest->err();
481 if (IntlTest::gTest)
482 IntlTest::gTest->err( message );
487 if (IntlTest::gTest)
488 IntlTest::gTest->errln( message );
493 if (IntlTest::gTest)
494 IntlTest::gTest->dataerr( message );
499 if (IntlTest::gTest)
500 IntlTest::gTest->dataerrln( message );
503 IntlTest::IntlTest()
522 void IntlTest::setCaller( IntlTest* callingTest )
539 UBool IntlTest::callTest( IntlTest& testToBeCalled, char* par )
549 void IntlTest::setPath( char* pathVal )
554 UBool IntlTest::setVerbose( UBool verboseVal )
561 UBool IntlTest::setWarnOnMissingData( UBool warn_on_missing_dataVal )
568 UBool IntlTest::setNoErrMsg( UBool no_err_msgVal )
575 UBool IntlTest::setQuick( UBool quickVal )
582 UBool IntlTest::setLeaks( UBool leaksVal )
589 int32_t IntlTest::setThreadCount( int32_t count )
596 int32_t IntlTest::getErrors( void )
601 int32_t IntlTest::getDataErrors( void )
606 UBool IntlTest::runTest( char* name, char* par, char *baseName )
648 void IntlTest::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
663 UBool IntlTest::runTestLoop( char* testname, char* par, char *baseName )
683 IntlTest* saveTest = gTest;
762 void IntlTest::log( const UnicodeString &message )
773 void IntlTest::logln( const UnicodeString &message )
780 void IntlTest::logln( void )
790 void IntlTest::info( const UnicodeString &message )
799 void IntlTest::infoln( const UnicodeString &message )
804 void IntlTest::infoln( void )
809 int32_t IntlTest::IncErrorCount( void )
816 int32_t IntlTest::IncDataErrorCount( void )
823 void IntlTest::err()
828 void IntlTest::err( const UnicodeString &message )
834 void IntlTest::errln( const UnicodeString &message )
840 void IntlTest::dataerr( const UnicodeString &message )
851 void IntlTest::dataerrln( const UnicodeString &message )
865 void IntlTest::errcheckln(UErrorCode status, const UnicodeString &message ) {
874 void IntlTest::log(const char *fmt, ...)
888 void IntlTest::logln(const char *fmt, ...)
903 void IntlTest::info(const char *fmt, ...)
915 void IntlTest::infoln(const char *fmt, ...)
927 void IntlTest::err(const char *fmt, ...)
938 void IntlTest::errln(const char *fmt, ...)
949 void IntlTest::dataerrln(const char *fmt, ...)
960 void IntlTest::errcheckln(UErrorCode status, const char *fmt, ...)
976 void IntlTest::printErrors()
978 IntlTest::LL_message(errorList, TRUE);
981 void IntlTest::LL_message( UnicodeString message, UBool newline )
1032 void IntlTest::usage( void )
1053 IntlTest::run_phase2( char* name, char* par ) // supports reporting memory leaks
1087 const char *props[IntlTest::kMaxProps];
1128 if (nProps < IntlTest::kMaxProps) {
1150 "### IntlTest [-option1 -option2 ...] [testname1 testname2 ...] \n"
1160 "### To get a list of the test names type: intltest LIST \n"
1161 "### To run just the utility tests type: intltest utility \n"
1164 "### For example to list the utility tests type: intltest utility/LIST \n"
1165 "### To run just the Locale test type: intltest utility/LocaleTest \n"
1172 if (nProps > IntlTest::kMaxProps) {
1190 fprintf(stdout, " IntlTest (C++) Test Suite for \n");
1248 IntlTest::setICU_DATA(); // Must set data directory before u_init() is called.
1313 if(ctest_xml_init("intltest"))
1411 const char* IntlTest::loadTestData(UErrorCode& err){
1450 const char* IntlTest::getTestDataPath(UErrorCode& err) {
1455 const char *IntlTest::getSourceTestData(UErrorCode& /*err*/) {
1463 /* We're in icu/source/test/intltest/ */
1467 /* We're in icu/source/test/intltest/Platform/(Debug|Release) */
1474 const char* IntlTest::fgDataDir = NULL;
1477 const char * IntlTest::pathToDataDirectory()
1570 float IntlTest::random(int32_t* seedp) {
1595 float IntlTest::random() {
1622 UBool IntlTest::assertTrue(const char* message, UBool condition, UBool quiet, UBool possibleDataError) {
1635 UBool IntlTest::assertFalse(const char* message, UBool condition, UBool quiet) {
1644 UBool IntlTest::assertSuccess(const char* message, UErrorCode ec, UBool possibleDataError) {
1657 UBool IntlTest::assertEquals(const char* message,
1681 UBool IntlTest::assertEquals(const char* message,
1699 UBool IntlTest::assertEquals(const char* message,
1727 UBool IntlTest::assertTrue(const UnicodeString& message, UBool condition, UBool quiet) {
1731 UBool IntlTest::assertFalse(const UnicodeString& message, UBool condition, UBool quiet) {
1735 UBool IntlTest::assertSuccess(const UnicodeString& message, UErrorCode ec) {
1739 UBool IntlTest::assertEquals(const UnicodeString& message,
1745 UBool IntlTest::assertEquals(const UnicodeString& message,
1755 UBool IntlTest::isICUVersionAtLeast(const UVersionInfo x) {
1762 UBool IntlTest::assertEquals(const UnicodeString& message,
1769 void IntlTest::setProperty(const char* propline) {
1776 const char* IntlTest::getProperty(const char* prop) {