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