1 /******************************************************************** 2 * COPYRIGHT: 3 * Copyright (c) 1997-2009, International Business Machines Corporation and 4 * others. All Rights Reserved. 5 ********************************************************************/ 6 /******************************************************************************** 7 * 8 * File CDATTST.H 9 * 10 * Modification History: 11 * Name Description 12 * Madhu Katragadda Creation 13 ********************************************************************************* 14 */ 15 /* C API TEST FOR DATE FORMAT */ 16 #ifndef _CDATFRMTST 17 #define _CDATFRMTST 18 19 #include "unicode/utypes.h" 20 21 #if !UCONFIG_NO_FORMATTING 22 23 #include "cintltst.h" 24 25 /** 26 * The functions used to test the Date format API 27 **/ 28 static void TestDateFormat(void); 29 static void TestRelativeDateFormat(void); 30 31 /** 32 * The function used to test API udat_getSymbols(), udat_setSymbols() and udat_countSymbols() 33 **/ 34 static void TestSymbols(void); 35 36 /** 37 * Test DateFormat(Calendar) API 38 */ 39 static void TestDateFormatCalendar(void); 40 41 /** 42 * test subroutines used by TestSymbols 43 **/ 44 static void VerifygetSymbols(UDateFormat*, UDateFormatSymbolType, int32_t, const char*); 45 static void VerifysetSymbols(UDateFormat*, UDateFormatSymbolType, int32_t, const char*); 46 static void VerifygetsetSymbols(UDateFormat*, UDateFormat*, UDateFormatSymbolType, int32_t); 47 48 /** 49 * test subroutine used by the testing functions 50 **/ 51 static UChar* myNumformat(const UNumberFormat* numfor, double d); 52 53 #endif /* #if !UCONFIG_NO_FORMATTING */ 54 55 #endif 56