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