Home | History | Annotate | Download | only in intltest
      1 /********************************************************************
      2  * COPYRIGHT:
      3  * Copyright (c) 2001-2005, International Business Machines Corporation and
      4  * others. All Rights Reserved.
      5  ********************************************************************/
      6 /************************************************************************
      7 *   This test program is intended for testing error conditions of the
      8 *   transliterator APIs to make sure the exceptions are raised where
      9 *   necessary.
     10 *
     11 *   Date        Name        Description
     12 *   11/14/2001  hshih       Creation.
     13 *
     14 ************************************************************************/
     15 
     16 
     17 #ifndef TRNSERR_H
     18 #define TRNSERR_H
     19 
     20 #include "unicode/utypes.h"
     21 
     22 #if !UCONFIG_NO_TRANSLITERATION
     23 
     24 #include "unicode/translit.h"
     25 #include "intltest.h"
     26 
     27 /**
     28  * @test
     29  * @summary Error condition tests of Transliterator
     30  */
     31 class TransliteratorErrorTest : public IntlTest {
     32 public:
     33     void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par=NULL);
     34 
     35     /*Tests the returned error codes on all the APIs according to the API documentation. */
     36     void TestTransliteratorErrors(void);
     37 
     38     void TestUnicodeSetErrors(void);
     39 
     40     //void TestUniToHexErrors(void);
     41 
     42     void TestRBTErrors(void);
     43 
     44     //void TestHexToUniErrors(void);
     45 
     46     // JitterBug 4452, for coverage.  The reason to put this method here is
     47     //  this class is comparable smaller than other Transliterator*Test classes
     48     void TestCoverage(void);
     49 
     50 };
     51 
     52 #endif /* #if !UCONFIG_NO_TRANSLITERATION */
     53 
     54 #endif
     55