os/ossrv/lowlevellibsandfws/apputils/initLocale/test/T_CheckLocale.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/lowlevellibsandfws/apputils/initLocale/test/T_CheckLocale.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,70 @@
     1.4 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef __T_CHECKLOCALE_H__
    1.20 +#define __T_CHECKLOCALE_H__
    1.21 +
    1.22 +#include <e32std.h>
    1.23 +#include <collate.h>
    1.24 +#include <e32test.h>
    1.25 +
    1.26 +
    1.27 +_LIT(KOldUKLocaleName, "elocl.01") ;
    1.28 +_LIT(KOldCNLocaleName, "elocl.31") ;
    1.29 +_LIT(KOldUSLocaleName, "elocl.10") ;
    1.30 +_LIT(KOldGELocaleName, "elocl.03") ;
    1.31 +
    1.32 +_LIT(KEnglishLanguage, "elocl_lan.001") ;
    1.33 +_LIT(KUKRegion, "elocl_reg.826") ;
    1.34 +_LIT(KStandardCollation, "elocl_col.001") ;
    1.35 +const TLanguage KEnglishLanguageID = ELangEnglish;
    1.36 +const TPtrC KUKCurrencySymbol(_S("\x00a3"));
    1.37 +const TUint KStandardCollationID = KUidBasicCollationMethod;
    1.38 +
    1.39 +
    1.40 +_LIT(KUSLanguage, "elocl_lan.010") ;
    1.41 +_LIT(KUSRegion, "elocl_reg.840") ;
    1.42 +_LIT(KUSCollation, "elocl_col.010") ;
    1.43 +const TLanguage KUSLanguageID = ELangAmerican;
    1.44 +const TPtrC KUSCurrencySymbol(_S("\x0024"));
    1.45 +const TUint KUSTCollationMethodID = KUidBasicCollationMethod;
    1.46 +
    1.47 +
    1.48 +_LIT(KCNLanguage, "elocl_lan.031") ;
    1.49 +_LIT(KCNRegion, "elocl_reg.156");
    1.50 +_LIT(KCNCollation, "elocl_col.031");
    1.51 +const TLanguage KCNLanguageID = ELangPrcChinese;
    1.52 +const TPtrC KCNCurrencySymbol(_S("\x00a5"));
    1.53 +const TUint KCNTCollationMethodID = 0x10009067;
    1.54 +
    1.55 +_LIT(KGermanLanguage, "elocl_lan.003") ;
    1.56 +_LIT(KGERegion, "elocl_reg.276") ;
    1.57 +_LIT(KGECollation, "elocl_col.003");
    1.58 +const TLanguage KGELanguageID = ELangGerman;
    1.59 +const TPtrC KGECurrencySymbol(_S("\x20ac"));
    1.60 +const TUint KGETCollationMethodID = KUidBasicCollationMethod;
    1.61 +
    1.62 +
    1.63 +_LIT(KInvalidNameLanguage, "elocl_lon.031") ;
    1.64 +_LIT(KInvalidNameRegion, "elocl_reggf.276") ;
    1.65 +_LIT(KInvalidNameCollation, "errelocl_col.003");
    1.66 +
    1.67 +
    1.68 +
    1.69 +void TestLocaleDLLName(RTest& test, const TDesC& alanguage, const TDesC& aRegion, const TDesC& aCollation);
    1.70 +void TestLocaleContent(RTest& test, TLanguage alanguageID, TPtrC aCurrencySymbol, TUint aTCollationMethodID);
    1.71 +
    1.72 +
    1.73 +#endif