X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/374ca955a76ecab1204ca8bfa63ff9238d998416..249c4c5ea9376c24572daf9c2effa7484a282f14:/icuSources/test/intltest/tztest.h diff --git a/icuSources/test/intltest/tztest.h b/icuSources/test/intltest/tztest.h index 310a304b..99a44fe5 100644 --- a/icuSources/test/intltest/tztest.h +++ b/icuSources/test/intltest/tztest.h @@ -1,8 +1,9 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /******************************************************************** - * COPYRIGHT: - * Copyright (c) 1997-2003, International Business Machines Corporation and - * others. All Rights Reserved. + * Copyright (c) 1997-2014, International Business Machines + * Corporation and others. All Rights Reserved. ********************************************************************/ #ifndef __TimeZoneTest__ @@ -38,6 +39,8 @@ public: */ virtual void TestGetAvailableIDs913(void); + virtual void TestGetAvailableIDsNew(void); + /** * Generic API testing for API coverage. */ @@ -83,11 +86,37 @@ public: void TestEquivalentIDs(void); + void TestAliasedNames(void); + + void TestFractionalDST(void); + + void TestFebruary(void); + + void TestCanonicalIDAPI(); + void TestCanonicalID(void); + + virtual void TestDisplayNamesMeta(); + + void TestGetRegion(void); + void TestGetUnknown(); + + void TestGetWindowsID(void); + void TestGetIDForWindowsID(void); + static const UDate INTERVAL; private: // internal functions - static UnicodeString& formatMinutes(int32_t min, UnicodeString& rv); + static UnicodeString& formatOffset(int32_t offset, UnicodeString& rv); + static UnicodeString& formatTZID(int32_t offset, UnicodeString& rv); + + // Some test case data is current date/tzdata version sensitive and producing errors + // when year/rule are changed. + static const int32_t REFERENCE_YEAR; + static const char *REFERENCE_DATA_VERSION; + + void checkContainsAll(StringEnumeration *s1, const char *name1, + StringEnumeration *s2, const char *name2); }; #endif /* #if !UCONFIG_NO_FORMATTING */