2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2001-03-21 19:46:49 +00:00
|
|
|
* Copyright (c) 1997-2001, 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);
|
|
|
|
|
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
|
|
|
*/
|
1999-08-16 21:50:52 +00:00
|
|
|
static void doTestDisplayNames(const char* inLocale, int32_t compareIndex, int32_t defaultIsFrench);
|
2000-12-15 19:16:43 +00:00
|
|
|
|
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);
|
1999-08-16 21:50:52 +00:00
|
|
|
void displayDataTable(void);
|
|
|
|
|
|
|
|
#endif
|