os/ossrv/lowlevellibsandfws/apputils/initLocale/test/T_CheckLocale.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __T_CHECKLOCALE_H__
    17 #define __T_CHECKLOCALE_H__
    18 
    19 #include <e32std.h>
    20 #include <collate.h>
    21 #include <e32test.h>
    22 
    23 
    24 _LIT(KOldUKLocaleName, "elocl.01") ;
    25 _LIT(KOldCNLocaleName, "elocl.31") ;
    26 _LIT(KOldUSLocaleName, "elocl.10") ;
    27 _LIT(KOldGELocaleName, "elocl.03") ;
    28 
    29 _LIT(KEnglishLanguage, "elocl_lan.001") ;
    30 _LIT(KUKRegion, "elocl_reg.826") ;
    31 _LIT(KStandardCollation, "elocl_col.001") ;
    32 const TLanguage KEnglishLanguageID = ELangEnglish;
    33 const TPtrC KUKCurrencySymbol(_S("\x00a3"));
    34 const TUint KStandardCollationID = KUidBasicCollationMethod;
    35 
    36 
    37 _LIT(KUSLanguage, "elocl_lan.010") ;
    38 _LIT(KUSRegion, "elocl_reg.840") ;
    39 _LIT(KUSCollation, "elocl_col.010") ;
    40 const TLanguage KUSLanguageID = ELangAmerican;
    41 const TPtrC KUSCurrencySymbol(_S("\x0024"));
    42 const TUint KUSTCollationMethodID = KUidBasicCollationMethod;
    43 
    44 
    45 _LIT(KCNLanguage, "elocl_lan.031") ;
    46 _LIT(KCNRegion, "elocl_reg.156");
    47 _LIT(KCNCollation, "elocl_col.031");
    48 const TLanguage KCNLanguageID = ELangPrcChinese;
    49 const TPtrC KCNCurrencySymbol(_S("\x00a5"));
    50 const TUint KCNTCollationMethodID = 0x10009067;
    51 
    52 _LIT(KGermanLanguage, "elocl_lan.003") ;
    53 _LIT(KGERegion, "elocl_reg.276") ;
    54 _LIT(KGECollation, "elocl_col.003");
    55 const TLanguage KGELanguageID = ELangGerman;
    56 const TPtrC KGECurrencySymbol(_S("\x20ac"));
    57 const TUint KGETCollationMethodID = KUidBasicCollationMethod;
    58 
    59 
    60 _LIT(KInvalidNameLanguage, "elocl_lon.031") ;
    61 _LIT(KInvalidNameRegion, "elocl_reggf.276") ;
    62 _LIT(KInvalidNameCollation, "errelocl_col.003");
    63 
    64 
    65 
    66 void TestLocaleDLLName(RTest& test, const TDesC& alanguage, const TDesC& aRegion, const TDesC& aCollation);
    67 void TestLocaleContent(RTest& test, TLanguage alanguageID, TPtrC aCurrencySymbol, TUint aTCollationMethodID);
    68 
    69 
    70 #endif