2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2004-05-19 21:19:13 +00:00
|
|
|
* Copyright (c) 1997-2004, 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);
|
|
|
|
|
2002-02-12 18:42:47 +00:00
|
|
|
/* Make sure that the locale data is good. */
|
2002-02-05 23:47:41 +00:00
|
|
|
static void TestLocaleStructure(void);
|
|
|
|
|
2002-02-12 18:42:47 +00:00
|
|
|
/* Make sure that Country information is the same across locales, within reason. */
|
|
|
|
static void TestConsistentCountryInfo(void);
|
|
|
|
|
2003-10-14 06:08:54 +00:00
|
|
|
/* Make sure we can pass "de_DE@Collation=PHONEBOOK" */
|
|
|
|
static void MoreVariants(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);
|
|
|
|
|
2003-10-15 05:32:40 +00:00
|
|
|
/* Test getting keyword values */
|
2003-10-14 06:08:54 +00:00
|
|
|
static void TestKeywordVariantParsing(void);
|
|
|
|
|
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);*/
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
#endif
|