Home | History | Annotate | Download | only in intltest

Lines Matching refs:VTimeZone

776  * Write out time zone rules of OlsonTimeZone into VTIMEZONE format, create a new
777 * VTimeZone from the VTIMEZONE data, then compare transitions
796 VTimeZone *vtz_org = VTimeZone::createVTimeZoneByID(*tzid);
799 VTimeZone *vtz_new = NULL;
801 // Write out VTIMEZONE data
805 *tzid + " into VTIMEZONE format.");
807 // Read VTIMEZONE data
808 vtz_new = VTimeZone::createVTimeZone(vtzdata, status);
810 errln((UnicodeString)"FAIL: error returned while reading VTIMEZONE data for " + *tzid);
812 // Write out VTIMEZONE one more time
817 *tzid + "(vtz_new) into VTIMEZONE format.");
819 // Make sure VTIMEZONE data is exactly same with the first one
821 errln((UnicodeString)"FAIL: different VTIMEZONE data after round trip for " + *tzid);
827 // VTIMEZONE.
835 errln("FAIL: VTimeZone for " + *tzid +
847 errln("FAIL: VTimeZone for " + *tzid +
850 logln("VTimeZone for " + *tzid +
871 * Write out time zone rules of OlsonTimeZone after a cutover date into VTIMEZONE format,
872 * create a new VTimeZone from the VTIMEZONE data, then compare transitions
896 VTimeZone *vtz_org = VTimeZone::createVTimeZoneByID(*tzid);
897 VTimeZone *vtz_new = NULL;
901 // Write out VTIMEZONE
906 *tzid + " into VTIMEZONE format since " + dateToString(startTime));
908 // Read VTIMEZONE data
909 vtz_new = VTimeZone::createVTimeZone(vtzdata, status);
911 errln((UnicodeString)"FAIL: error returned while reading VTIMEZONE data for " + *tzid
917 // VTIMEZONE.
925 errln("FAIL: VTimeZone for " + *tzid +
937 errln("FAIL: VTimeZone for " + *tzid +
940 logln("VTimeZone for " + *tzid +
963 * Write out simple time zone rules from an OlsonTimeZone at various time into VTIMEZONE
964 * format and create a new VTimeZone from the VTIMEZONE data, then make sure the raw offset
991 VTimeZone *vtz_org = VTimeZone::createVTimeZoneByID(*tzid);
992 VTimeZone *vtz_new = NULL;
996 // Write out VTIMEZONE
1001 *tzid + " into VTIMEZONE format at " + dateToString(time));
1003 // Read VTIMEZONE data
1004 vtz_new = VTimeZone::createVTimeZone(vtzdata, status);
1006 errln((UnicodeString)"FAIL: error returned while reading simple VTIMEZONE data for " + *tzid
1016 errln("FAIL: VTimeZone writeSimple for " + *tzid + " at "
1034 * Write out time zone rules of OlsonTimeZone into VTIMEZONE format with RFC2445 header TZURL and
1035 * LAST-MODIFIED, create a new VTimeZone from the VTIMEZONE data to see if the headers are preserved.
1046 VTimeZone *vtz = VTimeZone::createVTimeZoneByID("America/Chicago");
1053 VTimeZone *newvtz1 = NULL;
1055 errln("FAIL: error returned while writing VTIMEZONE data 1");
1059 newvtz1 = VTimeZone::createVTimeZone(vtzdata, status);
1061 errln("FAIL: error returned while loading VTIMEZONE data 1");
1081 errln("FAIL: error returned while writing VTIMEZONE data 2");
1083 VTimeZone *newvtz2 = VTimeZone::createVTimeZone(vtzdata, status);
1085 errln("FAIL: error returned while loading VTIMEZONE data 2");
1617 * API coverage test for VTimeZone
1625 VTimeZone *vtz = VTimeZone::createVTimeZoneByID(TZID);
1637 errln("FAIL: getOffset(7 args) returned different results in VTimeZone and OlsonTimeZone");
1650 errln("FAIL: getOffset(8 args) returned different results in VTimeZone and OlsonTimeZone");
1668 errln("FAIL: getOffset(long,boolean,int[]) returned different results in VTimeZone and OlsonTimeZone");
1673 errln("FAIL: getRawOffset returned different results in VTimeZone and OlsonTimeZone");
1687 errln("FAIL: inDaylightTime returned different results in VTimeZone and OlsonTimeZone");
1692 errln("FAIL: useDaylightTime returned different results in VTimeZone and OlsonTimeZone");
1697 VTimeZone *tmpvtz = (VTimeZone*)vtz->clone();
1700 logln("setRawOffset is implemented in VTimeZone");
1705 logln((UnicodeString)"OlsonTimeZone::hasSameRules(VTimeZone) should return FALSE always for now - actual: " + bSame);
1734 dataerrln("FAIL: getNextTransition returned different results in VTimeZone and OlsonTimeZone");
1739 dataerrln("FAIL: getPreviousTransition returned different results in VTimeZone and OlsonTimeZone");
1765 VTimeZone *vtz1 = VTimeZone::createVTimeZoneByID("America/Los_Angeles");
1767 errln("FAIL: VTimeZone vtz1 is not equal to vtz, but got wrong result");
1771 errln("FAIL: VTimeZone vtz1 is equal to vtz, but got wrong result");
1777 VTimeZone *vtzFromBasic = NULL;
1789 vtzFromBasic = VTimeZone::createVTimeZoneFromBasicTimeZone(*simpleTZ, status);
1799 // same as the test VTimeZone created above.
1831 // Trying to create VTimeZone from empty data
1833 VTimeZone *empty = VTimeZone::createVTimeZone(emptyData, status);
1836 errln("FAIL: Non-null VTimeZone is returned for empty VTIMEZONE data");
1840 // Create VTimeZone for Asia/Tokyo
1843 /* "BEGIN:VTIMEZONE\x0D\x0A" */
1863 /* "END:VTIMEZONE" */
1867 VTimeZone *tokyo = VTimeZone::createVTimeZone(asiaTokyo, status);
1869 errln("FAIL: Failed to create a VTimeZone tokyo");
1884 errln("FAIL: Bad offsets returned by a VTimeZone created for Tokyo");
1889 // Create VTimeZone from VTIMEZONE data
1893 /* "BEGIN:VTIMEZONE\x0D\x0A" */
1925 /* "END:VTIMEZONE\x0D\x0A" */
1932 VTimeZone *foo = VTimeZone::createVTimeZone(fooData, status);
1934 errln("FAIL: Failed to create a VTimeZone foo");
1936 // Write VTIMEZONE data
1940 errln("FAIL: Failed to write VTIMEZONE data for foo");
1957 /* "BEGIN:VTIMEZONE\r\n" */
1975 /* "END:VTIMEZONE\r\n" */
1985 /* "BEGIN:VTIMEZONE\r\n" */
2017 /* "END:VTIMEZONE\r\n" */
2027 /* "BEGIN:VTIMEZONE\r\n" */
2073 /* "END:VTIMEZONE\r\n" */
2132 VTimeZone *vtz = VTimeZone::createVTimeZone(TestZones[i], status);
2134 errln("FAIL: failed to create VTimeZone");