2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2006-02-07 19:26:37 +00:00
|
|
|
* Copyright (c) 1997-2006, International Business Machines Corporation and
|
2000-01-15 02:00:06 +00:00
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
|
|
|
/********************************************************************************
|
1999-08-16 21:50:52 +00:00
|
|
|
*
|
|
|
|
* File CLOCTST.H
|
|
|
|
*
|
|
|
|
* Modification History:
|
2000-08-15 01:13:48 +00:00
|
|
|
* Name Description
|
1999-08-16 21:50:52 +00:00
|
|
|
* Madhu Katragadda Converted to C
|
|
|
|
*********************************************************************************
|
|
|
|
*/
|
|
|
|
#ifndef _CLOCTEST
|
|
|
|
#define _CLOCTEST
|
|
|
|
|
|
|
|
#include "cintltst.h"
|
|
|
|
/*C API TEST FOR LOCALE */
|
|
|
|
|
|
|
|
/**
|
2000-08-15 01:13:48 +00:00
|
|
|
* Test functions to set and get data fields
|
2000-08-14 23:35:57 +00:00
|
|
|
**/
|
1999-08-16 21:50:52 +00:00
|
|
|
static void TestBasicGetters(void);
|
2001-02-17 13:34:42 +00:00
|
|
|
static void TestPrefixes(void);
|
1999-08-16 21:50:52 +00:00
|
|
|
/**
|
|
|
|
* Use Locale to access Resource file data and compare against expected values
|
|
|
|
**/
|
|
|
|
static void TestSimpleResourceInfo(void);
|
|
|
|
/**
|
|
|
|
* Use Locale to access Resource file display names and compare against expected values
|
|
|
|
**/
|
|
|
|
static void TestDisplayNames(void);
|
|
|
|
/**
|
2000-06-22 17:39:34 +00:00
|
|
|
* Test getAvailableLocales
|
1999-08-16 21:50:52 +00:00
|
|
|
**/
|
|
|
|
static void TestGetAvailableLocales(void);
|
|
|
|
/**
|
|
|
|
* Test functions to set and access a custom data directory
|
|
|
|
**/
|
|
|
|
static void TestDataDirectory(void);
|
|
|
|
/**
|
2000-06-22 17:39:34 +00:00
|
|
|
* Test functions to test get ISO countries and Languages
|
1999-08-16 21:50:52 +00:00
|
|
|
**/
|
|
|
|
static void TestISOFunctions(void);
|
2000-06-22 17:39:34 +00:00
|
|
|
/**
|
|
|
|
* Test functions to test get ISO3 countries and Languages Fallback
|
|
|
|
**/
|
|
|
|
static void TestISO3Fallback(void);
|
|
|
|
/**
|
|
|
|
* Test functions to test get ISO3 countries and Languages for Uninstalled locales
|
|
|
|
**/
|
|
|
|
static void TestUninstalledISO3Names(void);
|
2001-10-14 00:24:34 +00:00
|
|
|
static void TestObsoleteNames(void);
|
2000-06-22 17:39:34 +00:00
|
|
|
/**
|
|
|
|
* Test functions uloc_getDisplaynames()
|
|
|
|
**/
|
|
|
|
static void TestSimpleDisplayNames(void);
|
|
|
|
/**
|
|
|
|
* Test functions uloc_getDisplaynames()
|
|
|
|
**/
|
|
|
|
static void TestVariantParsing(void);
|
|
|
|
|
2003-10-15 05:32:40 +00:00
|
|
|
/* Test getting keyword enumeratin */
|
2003-10-14 06:08:54 +00:00
|
|
|
static void TestKeywordVariants(void);
|
|
|
|
|
2004-09-01 02:25:14 +00:00
|
|
|
static void TestKeywordSet(void);
|
|
|
|
static void TestKeywordSetError(void);
|
|
|
|
|
2003-10-15 05:32:40 +00:00
|
|
|
/* Test getting keyword values */
|
2003-10-14 06:08:54 +00:00
|
|
|
static void TestKeywordVariantParsing(void);
|
2004-10-18 23:59:41 +00:00
|
|
|
|
|
|
|
/* Test warning for no data in getDisplay* */
|
|
|
|
static void TestDisplayNameWarning(void);
|
2003-10-14 06:08:54 +00:00
|
|
|
|
2000-12-15 19:16:43 +00:00
|
|
|
/**
|
1999-08-16 21:50:52 +00:00
|
|
|
* routine to perform subtests, used by TestDisplayNames
|
2000-12-15 19:16:43 +00:00
|
|
|
*/
|
2003-04-25 22:56:51 +00:00
|
|
|
static void doTestDisplayNames(const char* inLocale, int32_t compareIndex);
|
2000-12-15 19:16:43 +00:00
|
|
|
|
2003-11-07 02:48:11 +00:00
|
|
|
static void TestCanonicalization(void);
|
|
|
|
|
|
|
|
static void TestDisplayKeywords(void);
|
|
|
|
|
|
|
|
static void TestDisplayKeywordValues(void);
|
2003-10-22 18:53:54 +00:00
|
|
|
|
2004-01-09 07:59:45 +00:00
|
|
|
static void TestGetBaseName(void);
|
|
|
|
|
2004-01-22 00:15:32 +00:00
|
|
|
static void TestGetLocale(void);
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
/**
|
|
|
|
* additional intialization for datatables storing expected values
|
2000-12-15 19:16:43 +00:00
|
|
|
*/
|
1999-08-16 21:50:52 +00:00
|
|
|
static void setUpDataTable(void);
|
2000-12-15 19:16:43 +00:00
|
|
|
static void cleanUpDataTable(void);
|
2004-01-13 00:09:55 +00:00
|
|
|
/*static void displayDataTable(void);*/
|
2004-11-04 08:17:26 +00:00
|
|
|
static void TestAcceptLanguage(void);
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2005-08-12 22:01:55 +00:00
|
|
|
/**
|
|
|
|
* test locale aliases
|
|
|
|
*/
|
|
|
|
static void TestCalendar(void);
|
|
|
|
static void TestDateFormat(void);
|
|
|
|
static void TestCollation(void);
|
|
|
|
static void TestULocale(void);
|
|
|
|
static void TestUResourceBundle(void);
|
|
|
|
static void TestDisplayName(void);
|
|
|
|
|
2006-02-07 19:26:37 +00:00
|
|
|
static void TestAcceptLanguage(void);
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
#endif
|