]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/tzrulets.h
2 *******************************************************************************
3 * Copyright (C) 2007-2011, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
8 #ifndef _TIMEZONERULETEST_
9 #define _TIMEZONERULETEST_
11 #include "unicode/utypes.h"
14 #if !UCONFIG_NO_FORMATTING
17 * Tests for TimeZoneRule, RuleBasedTimeZone and VTimeZone
19 class TimeZoneRuleTest
: public CalendarTimeZoneTest
{
21 void runIndexedTest(int32_t index
, UBool exec
, const char*& name
, char* par
);
23 void TestSimpleRuleBasedTimeZone(void);
24 void TestHistoricalRuleBasedTimeZone(void);
25 void TestOlsonTransition(void);
26 void TestRBTZTransition(void);
27 void TestHasEquivalentTransitions(void);
28 void TestVTimeZoneRoundTrip(void);
29 void TestVTimeZoneRoundTripPartial(void);
30 void TestVTimeZoneSimpleWrite(void);
31 void TestVTimeZoneHeaderProps(void);
32 void TestGetSimpleRules(void);
33 void TestTimeZoneRuleCoverage(void);
34 void TestSimpleTimeZoneCoverage(void);
35 void TestVTimeZoneCoverage(void);
36 void TestVTimeZoneParse(void);
39 void TestVTimeZoneWrapper(void);
43 void verifyTransitions(BasicTimeZone
& icutz
, UDate start
, UDate end
);
44 void compareTransitionsAscending(BasicTimeZone
& z1
, BasicTimeZone
& z2
,
45 UDate start
, UDate end
, UBool inclusive
);
46 void compareTransitionsDescending(BasicTimeZone
& z1
, BasicTimeZone
& z2
,
47 UDate start
, UDate end
, UBool inclusive
);
48 UDate
getUTCMillis(int32_t year
, int32_t month
, int32_t dom
,
49 int32_t hour
=0, int32_t min
=0, int32_t sec
=0, int32_t msec
=0);
52 #endif /* #if !UCONFIG_NO_FORMATTING */
54 #endif // _TIMEZONERULETEST_