]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/restsnew.h
ICU-6.2.8.tar.gz
[apple/icu.git] / icuSources / test / intltest / restsnew.h
1 /********************************************************************
2 * COPYRIGHT:
3 * Copyright (c) 1997-2003, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6
7 #ifndef NEW_RESOURCEBUNDLETEST_H
8 #define NEW_RESOURCEBUNDLETEST_H
9
10 #include "intltest.h"
11
12 /**
13 * Tests for class ResourceBundle
14 **/
15 class NewResourceBundleTest: public IntlTest {
16 public:
17 NewResourceBundleTest();
18 virtual ~NewResourceBundleTest();
19
20 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
21
22 /**
23 * Perform several extensive tests using the subtest routine testTag
24 **/
25 void TestResourceBundles(void);
26 /**
27 * Test construction of ResourceBundle accessing a custom test resource-file
28 **/
29 void TestConstruction(void);
30
31 void TestIteration(void);
32
33 void TestOtherAPI(void);
34
35 void TestNewTypes(void);
36
37 private:
38 /**
39 * The assignment operator has no real implementation.
40 * It is provided to make the compiler happy. Do not call.
41 */
42 NewResourceBundleTest& operator=(const NewResourceBundleTest&) { return *this; }
43
44 /**
45 * extensive subtests called by TestResourceBundles
46 **/
47 UBool testTag(const char* frag, UBool in_Root, UBool in_te, UBool in_te_IN);
48
49 void record_pass(void);
50 void record_fail(void);
51
52 int32_t pass;
53 int32_t fail;
54
55 };
56
57 #endif