| OLD | NEW |
| 1 | 1 |
| 2 /******************************************************************** | 2 /******************************************************************** |
| 3 * Copyright (c) 1997-2013, International Business Machines | 3 * Copyright (c) 1997-2014, International Business Machines |
| 4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
| 5 ********************************************************************/ | 5 ********************************************************************/ |
| 6 | 6 |
| 7 #ifndef __TimeZoneTest__ | 7 #ifndef __TimeZoneTest__ |
| 8 #define __TimeZoneTest__ | 8 #define __TimeZoneTest__ |
| 9 | 9 |
| 10 #include "unicode/utypes.h" | 10 #include "unicode/utypes.h" |
| 11 | 11 |
| 12 #if !UCONFIG_NO_FORMATTING | 12 #if !UCONFIG_NO_FORMATTING |
| 13 | 13 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 void TestHistorical(void); | 83 void TestHistorical(void); |
| 84 | 84 |
| 85 void TestEquivalentIDs(void); | 85 void TestEquivalentIDs(void); |
| 86 | 86 |
| 87 void TestAliasedNames(void); | 87 void TestAliasedNames(void); |
| 88 | 88 |
| 89 void TestFractionalDST(void); | 89 void TestFractionalDST(void); |
| 90 | 90 |
| 91 void TestFebruary(void); | 91 void TestFebruary(void); |
| 92 | 92 |
| 93 void TestCanonicalIDAPI(); |
| 93 void TestCanonicalID(void); | 94 void TestCanonicalID(void); |
| 94 | 95 |
| 95 virtual void TestDisplayNamesMeta(); | 96 virtual void TestDisplayNamesMeta(); |
| 96 | 97 |
| 97 void TestGetRegion(void); | 98 void TestGetRegion(void); |
| 98 void TestGetUnknown(); | 99 void TestGetUnknown(); |
| 99 | 100 |
| 100 void TestGetWindowsID(void); | 101 void TestGetWindowsID(void); |
| 101 void TestGetIDForWindowsID(void); | 102 void TestGetIDForWindowsID(void); |
| 102 | 103 |
| 103 static const UDate INTERVAL; | 104 static const UDate INTERVAL; |
| 104 | 105 |
| 105 private: | 106 private: |
| 106 // internal functions | 107 // internal functions |
| 107 static UnicodeString& formatOffset(int32_t offset, UnicodeString& rv); | 108 static UnicodeString& formatOffset(int32_t offset, UnicodeString& rv); |
| 108 static UnicodeString& formatTZID(int32_t offset, UnicodeString& rv); | 109 static UnicodeString& formatTZID(int32_t offset, UnicodeString& rv); |
| 109 | 110 |
| 110 // Some test case data is current date/tzdata version sensitive and producin
g errors | 111 // Some test case data is current date/tzdata version sensitive and producin
g errors |
| 111 // when year/rule are changed. | 112 // when year/rule are changed. |
| 112 static const int32_t REFERENCE_YEAR; | 113 static const int32_t REFERENCE_YEAR; |
| 113 static const char *REFERENCE_DATA_VERSION; | 114 static const char *REFERENCE_DATA_VERSION; |
| 114 | 115 |
| 115 void checkContainsAll(StringEnumeration *s1, const char *name1, | 116 void checkContainsAll(StringEnumeration *s1, const char *name1, |
| 116 StringEnumeration *s2, const char *name2); | 117 StringEnumeration *s2, const char *name2); |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 #endif /* #if !UCONFIG_NO_FORMATTING */ | 120 #endif /* #if !UCONFIG_NO_FORMATTING */ |
| 120 | 121 |
| 121 #endif // __TimeZoneTest__ | 122 #endif // __TimeZoneTest__ |
| OLD | NEW |