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