Imported Upstream version 4.8
[platform/upstream/icu.git] / source / test / intltest / tzregts.h
1 /********************************************************************
2  * COPYRIGHT: 
3  * Copyright (c) 1998-2005, International Business Machines Corporation and
4  * others. All Rights Reserved.
5  ********************************************************************/
6
7 #ifndef _TIMEZONEREGRESSIONTEST_
8 #define _TIMEZONEREGRESSIONTEST_
9  
10 #include "unicode/utypes.h"
11
12 #if !UCONFIG_NO_FORMATTING
13
14 #include "unicode/timezone.h"
15 #include "unicode/gregocal.h"
16 #include "unicode/simpletz.h"
17 #include "intltest.h"
18
19
20
21 /** 
22  * Performs regression test for Calendar
23  **/
24 class TimeZoneRegressionTest: public IntlTest {    
25     
26     // IntlTest override
27     void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
28 public:
29     
30     void Test4052967(void);
31     void Test4073209(void);
32     void Test4073215(void);
33     void Test4084933(void);
34     void Test4096952(void);
35     void Test4109314(void);
36     void Test4126678(void);
37     void Test4151406(void);
38     void Test4151429(void);
39     void Test4154537(void);
40     void Test4154542(void);
41     void Test4154650(void);
42     void Test4154525(void);
43     void Test4162593(void);
44     void Test4176686(void);
45     void TestJ186(void);
46     void TestJ449(void);
47     void TestJDK12API(void);
48     void Test4184229(void);
49     UBool checkCalendar314(GregorianCalendar *testCal, TimeZone *testTZ);
50
51
52 protected:
53     UDate findTransitionBinary(const SimpleTimeZone& tz, UDate min, UDate max);
54     UDate findTransitionStepwise(const SimpleTimeZone& tz, UDate min, UDate max);
55     UBool failure(UErrorCode status, const char* msg);
56 };
57
58 #endif /* #if !UCONFIG_NO_FORMATTING */
59  
60 #endif // _CALENDARREGRESSIONTEST_
61 //eof