home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / test / intltest / restest.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-16  |  1.7 KB  |  50 lines

  1. /*
  2. *****************************************************************************************
  3. *                                                                                       *
  4. * COPYRIGHT:                                                                            *
  5. *   (C) Copyright Taligent, Inc.,  1997                                                 *
  6. *   (C) Copyright International Business Machines Corporation,  1997-1998               *
  7. *   Licensed Material - Program-Property of IBM - All Rights Reserved.                  *
  8. *   US Government Users Restricted Rights - Use, duplication, or disclosure             *
  9. *   restricted by GSA ADP Schedule Contract with IBM Corp.                              *
  10. *                                                                                       *
  11. *****************************************************************************************
  12. */
  13.  
  14. #include "intltest.h"
  15.  
  16. /**
  17.  * Tests for class ResourceBundle
  18.  **/
  19. class ResourceBundleTest: public IntlTest {
  20. public:
  21.     ResourceBundleTest();
  22.     ~ResourceBundleTest();
  23.     
  24.     void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
  25.  
  26.     /** 
  27.      * Perform several extensive tests using the subtest routine testTag
  28.      **/
  29.     void TestResourceBundles(void);
  30.     /** 
  31.      * Test construction of ResourceBundle accessing a custom test resource-file
  32.      **/
  33.     void TestConstruction(void);
  34.  
  35. private:
  36.     /**
  37.      * extensive subtests called by TestResourceBundles
  38.      **/
  39.     bool_t testTag(const char* frag, bool_t in_Default, bool_t in_te, bool_t in_te_IN);
  40.  
  41.     void record_pass(void);
  42.     void record_fail(void);
  43.  
  44.     int32_t pass;
  45.     int32_t fail;
  46.  
  47.     IntlTest& OUT;
  48. };
  49.  
  50.