]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/locnmtst.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / test / intltest / locnmtst.h
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) 2010-2016, International Business Machines Corporation
6 * and others. All Rights Reserved.
7 ********************************************************************/
8
9 #include "intltest.h"
10 #include "unicode/locdspnm.h"
11
12 /**
13 * Tests for the LocaleDisplayNames class
14 **/
15 class LocaleDisplayNamesTest: public IntlTest {
16 public:
17 LocaleDisplayNamesTest();
18 virtual ~LocaleDisplayNamesTest();
19
20 void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL);
21
22 #if !UCONFIG_NO_FORMATTING
23 /**
24 * Test methods to set and get data fields
25 **/
26 void TestCreate(void);
27 void TestCreateDialect(void);
28 void TestWithKeywordsAndEverything(void);
29 void TestUldnOpen(void);
30 void TestUldnOpenDialect(void);
31 void TestUldnWithKeywordsAndEverything(void);
32 void TestUldnComponents(void);
33 void TestRootEtc(void);
34 void TestCurrencyKeyword(void);
35 void TestUnknownCurrencyKeyword(void);
36 void TestUntranslatedKeywords(void);
37 void TestPrivateUse(void);
38 void TestUldnDisplayContext(void);
39 void TestUldnWithGarbage(void);
40 void TestSubstituteHandling(void);
41
42 void VerifySubstitute(LocaleDisplayNames* ldn);
43 void VerifyNoSubstitute(LocaleDisplayNames* ldn);
44 #endif
45
46 };