Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Unified Diff: icu46/source/test/cintltst/ccaltst.h

Issue 5516007: Check in the pristine copy of ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu46/source/test/cintltst/cbkittst.c ('k') | icu46/source/test/cintltst/ccaltst.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu46/source/test/cintltst/ccaltst.h
===================================================================
--- icu46/source/test/cintltst/ccaltst.h (revision 0)
+++ icu46/source/test/cintltst/ccaltst.h (revision 0)
@@ -0,0 +1,88 @@
+/********************************************************************
+ * COPYRIGHT:
+ * Copyright (c) 1997-2010, International Business Machines Corporation and
+ * others. All Rights Reserved.
+ ********************************************************************/
+/********************************************************************************
+*
+* File CAPITEST.H
+*
+* Modification History:
+* Name Description
+* Madhu Katragadda Creation
+*********************************************************************************/
+/* C API TEST FOR CALENDAR */
+#ifndef _CCALTST
+#define _CCALTST
+
+#include "unicode/utypes.h"
+
+#if !UCONFIG_NO_FORMATTING
+
+#include "cintltst.h"
+
+
+ /**
+ * The function used to test the Calendar API
+ **/
+ static void TestCalendar(void);
+ /**
+ * The function used to test getMillis, setMillis, setDate and setDateTime functions extensively
+ **/
+ static void TestGetSetDateAPI(void);
+ /**
+ * This function is used to test and confirm the functioning of
+ * the calendar get and set functions of calendar fields.
+ **/
+ static void TestFieldGetSet(void);
+ /**
+ * Execute and test adding and rolling extensively.
+ **/
+ static void TestAddRollExtensive(void);
+ /**
+ *Testing the Limits for various Fields of Calendar
+ **/
+ static void TestGetLimits(void);
+ /**
+ * Test that the days of the week progress properly when add is called repeatedly
+ * for increments of 24 days.
+ **/
+ static void TestDOWProgression(void);
+ /**
+ * Confirm that the offset between local time and GMT behaves as expected.
+ **/
+ static void TestGMTvsLocal(void);
+ /**
+ * test subroutine used by TestGMTvsLocal()
+ */
+ static void testZones(int32_t, int32_t, int32_t, int32_t, int32_t, int32_t);
+ /**
+ * Test getKeywordValuesForLocale API
+ */
+ static void TestGetKeywordValuesForLocale(void);
+ /**
+ * Test weekend-related APIs
+ */
+ static void TestWeekend(void);
+
+/*Internal functions used*/
+ /**
+ * test subroutines used by TestAddRollExtensive()
+ **/
+ static void checkDate(UCalendar* c, int32_t y, int32_t m, int32_t d);
+
+ static void checkDateTime(UCalendar* c, int32_t y, int32_t m, int32_t d,
+ int32_t hr, int32_t min, int32_t sec, int32_t ms,
+ UCalendarDateFields field);
+
+ /**
+ * test subroutines used by TestGetSetDateAPI and TestFieldGetSet
+ **/
+ static void verify1(const char* msg, UCalendar* c, UDateFormat* dat, int32_t year, int32_t month, int32_t day);
+
+ static void verify2(const char* msg, UCalendar* c, UDateFormat* dat, int32_t year, int32_t month, int32_t day,
+ int32_t hour, int32_t min, int32_t sec, int32_t am_pm);
+
+#endif /* #if !UCONFIG_NO_FORMATTING */
+
+#endif
Property changes on: icu46/source/test/cintltst/ccaltst.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « icu46/source/test/cintltst/cbkittst.c ('k') | icu46/source/test/cintltst/ccaltst.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698