• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = nullptr) override;
21 
22 #if !UCONFIG_NO_FORMATTING
23     /**
24      * Test methods to set and get data fields
25      **/
26     void TestCreate();
27     void TestCreateDialect();
28     void TestWithKeywordsAndEverything();
29     void TestUldnOpen();
30     void TestUldnOpenDialect();
31     void TestUldnWithKeywordsAndEverything();
32     void TestUldnComponents();
33     void TestRootEtc();
34     void TestCurrencyKeyword();
35     void TestUnknownCurrencyKeyword();
36     void TestUntranslatedKeywords();
37     void TestPrivateUse();
38     void TestUldnDisplayContext();
39     void TestUldnWithGarbage();
40     void TestSubstituteHandling();
41     void TestNumericRegionID();
42 
43     void VerifySubstitute(LocaleDisplayNames* ldn);
44     void VerifyNoSubstitute(LocaleDisplayNames* ldn);
45 #endif
46 
47 };
48