Lines Matching full:vtimezone
774 * Write out time zone rules of OlsonTimeZone into VTIMEZONE format, create a new
775 * VTimeZone from the VTIMEZONE data, then compare transitions
794 VTimeZone *vtz_org = VTimeZone::createVTimeZoneByID(*tzid);
797 VTimeZone *vtz_new = NULL;
799 // Write out VTIMEZONE data
803 *tzid + " into VTIMEZONE format.");
805 // Read VTIMEZONE data
806 vtz_new = VTimeZone::createVTimeZone(vtzdata, status);
808 errln((UnicodeString)"FAIL: error returned while reading VTIMEZONE data for " + *tzid);
810 // Write out VTIMEZONE one more time
815 *tzid + "(vtz_new) into VTIMEZONE format.");
817 // Make sure VTIMEZONE data is exactly same with the first one
819 errln((UnicodeString)"FAIL: different VTIMEZONE data after round trip for " + *tzid);
825 // VTIMEZONE.
833 errln("FAIL: VTimeZone for " + *tzid +
845 errln("FAIL: VTimeZone for " + *tzid +
848 logln("VTimeZone for " + *tzid +
869 * Write out time zone rules of OlsonTimeZone after a cutover date into VTIMEZONE format,
870 * create a new VTimeZone from the VTIMEZONE data, then compare transitions
894 VTimeZone *vtz_org = VTimeZone::createVTimeZoneByID(*tzid);
895 VTimeZone *vtz_new = NULL;
899 // Write out VTIMEZONE
904 *tzid + " into VTIMEZONE format since " + dateToString(startTime));
906 // Read VTIMEZONE data
907 vtz_new = VTimeZone::createVTimeZone(vtzdata, status);
909 errln((UnicodeString)"FAIL: error returned while reading VTIMEZONE data for " + *tzid
915 // VTIMEZONE.
923 errln("FAIL: VTimeZone for " + *tzid +
935 errln("FAIL: VTimeZone for " + *tzid +
938 logln("VTimeZone for " + *tzid +
961 * Write out simple time zone rules from an OlsonTimeZone at various time into VTIMEZONE
962 * format and create a new VTimeZone from the VTIMEZONE data, then make sure the raw offset
989 VTimeZone *vtz_org = VTimeZone::createVTimeZoneByID(*tzid);
990 VTimeZone *vtz_new = NULL;
994 // Write out VTIMEZONE
999 *tzid + " into VTIMEZONE format at " + dateToString(time));
1001 // Read VTIMEZONE data
1002 vtz_new = VTimeZone::createVTimeZone(vtzdata, status);
1004 errln((UnicodeString)"FAIL: error returned while reading simple VTIMEZONE data for " + *tzid
1014 errln("FAIL: VTimeZone writeSimple for " + *tzid + " at "
1032 * Write out time zone rules of OlsonTimeZone into VTIMEZONE format with RFC2445 header TZURL and
1033 * LAST-MODIFIED, create a new VTimeZone from the VTIMEZONE data to see if the headers are preserved.
1044 VTimeZone *vtz = VTimeZone::createVTimeZoneByID("America/Chicago");
1051 VTimeZone *newvtz1 = NULL;
1053 errln("FAIL: error returned while writing VTIMEZONE data 1");
1057 newvtz1 = VTimeZone::createVTimeZone(vtzdata, status);
1059 errln("FAIL: error returned while loading VTIMEZONE data 1");
1079 errln("FAIL: error returned while writing VTIMEZONE data 2");
1081 VTimeZone *newvtz2 = VTimeZone::createVTimeZone(vtzdata, status);
1083 errln("FAIL: error returned while loading VTIMEZONE data 2");
1615 * API coverage test for VTimeZone
1623 VTimeZone *vtz = VTimeZone::createVTimeZoneByID(TZID);
1635 errln("FAIL: getOffset(7 args) returned different results in VTimeZone and OlsonTimeZone");
1648 errln("FAIL: getOffset(8 args) returned different results in VTimeZone and OlsonTimeZone");
1666 errln("FAIL: getOffset(long,boolean,int[]) returned different results in VTimeZone and OlsonTimeZone");
1671 errln("FAIL: getRawOffset returned different results in VTimeZone and OlsonTimeZone");
1685 errln("FAIL: inDaylightTime returned different results in VTimeZone and OlsonTimeZone");
1690 errln("FAIL: useDaylightTime returned different results in VTimeZone and OlsonTimeZone");
1695 VTimeZone *tmpvtz = (VTimeZone*)vtz->clone();
1698 logln("setRawOffset is implemented in VTimeZone");
1703 logln((UnicodeString)"OlsonTimeZone::hasSameRules(VTimeZone) should return FALSE always for now - actual: " + bSame);
1732 dataerrln("FAIL: getNextTransition returned different results in VTimeZone and OlsonTimeZone");
1737 dataerrln("FAIL: getPreviousTransition returned different results in VTimeZone and OlsonTimeZone");
1763 VTimeZone *vtz1 = VTimeZone::createVTimeZoneByID("America/Los_Angeles");
1765 errln("FAIL: VTimeZone vtz1 is not equal to vtz, but got wrong result");
1769 errln("FAIL: VTimeZone vtz1 is equal to vtz, but got wrong result");
1775 VTimeZone *vtzFromBasic = NULL;
1787 vtzFromBasic = VTimeZone::createVTimeZoneFromBasicTimeZone(*simpleTZ, status);
1797 // same as the test VTimeZone created above.
1829 // Trying to create VTimeZone from empty data
1831 VTimeZone *empty = VTimeZone::createVTimeZone(emptyData, status);
1834 errln("FAIL: Non-null VTimeZone is returned for empty VTIMEZONE data");
1838 // Create VTimeZone for Asia/Tokyo
1841 /* "BEGIN:VTIMEZONE\x0D\x0A" */
1861 /* "END:VTIMEZONE" */
1865 VTimeZone *tokyo = VTimeZone::createVTimeZone(asiaTokyo, status);
1867 errln("FAIL: Failed to create a VTimeZone tokyo");
1882 errln("FAIL: Bad offsets returned by a VTimeZone created for Tokyo");
1887 // Create VTimeZone from VTIMEZONE data
1891 /* "BEGIN:VTIMEZONE\x0D\x0A" */
1923 /* "END:VTIMEZONE\x0D\x0A" */
1930 VTimeZone *foo = VTimeZone::createVTimeZone(fooData, status);
1932 errln("FAIL: Failed to create a VTimeZone foo");
1934 // Write VTIMEZONE data
1938 errln("FAIL: Failed to write VTIMEZONE data for foo");
1955 /* "BEGIN:VTIMEZONE\r\n" */
1973 /* "END:VTIMEZONE\r\n" */
1983 /* "BEGIN:VTIMEZONE\r\n" */
2015 /* "END:VTIMEZONE\r\n" */
2025 /* "BEGIN:VTIMEZONE\r\n" */
2071 /* "END:VTIMEZONE\r\n" */
2130 VTimeZone *vtz = VTimeZone::createVTimeZone(TestZones[i], status);
2132 errln("FAIL: failed to create VTimeZone");