sl@0: /* sl@0: * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * @file sl@0: * @internalComponent sl@0: * sl@0: */ sl@0: sl@0: sl@0: #ifndef TCUSTOMCHARMAPPING_H_ sl@0: #define TCUSTOMCHARMAPPING_H_ sl@0: sl@0: #include sl@0: sl@0: namespace LocalToTCustomCharMapping sl@0: { sl@0: _LIT(KTCustomCharMapping, "TCustomCharMapping"); sl@0: const TInt KDisplayWidth = 202; sl@0: const TInt KDisplayHeight = 100; sl@0: const TInt KPictureCharacter = 0xFFFC; sl@0: sl@0: enum TTestNum sl@0: { sl@0: EDefaultBehaviourInvisible = 0, sl@0: EDefaultBehaviourVisible = 1, sl@0: ECustomRemappingInvisible = 2, sl@0: ECustomRemappingVisible = 3, sl@0: ENewTest = 4 sl@0: //Test remapping with no custom remapper and some flags explicitly set to invisible sl@0: }; sl@0: } sl@0: sl@0: class CTextLayout; sl@0: class CTestGraphicsDevice; sl@0: class CTextView; sl@0: sl@0: class CTCustomCharMappingStep : public CTestStep sl@0: { sl@0: public: sl@0: CTCustomCharMappingStep(); sl@0: protected: sl@0: TVerdict doTestStepL(); sl@0: sl@0: private: sl@0: sl@0: void DoTestL(TDes& aText, CTextLayout* /*aLayout*/, CTestGraphicsDevice* aDevice, CTextView* aView, LocalToTCustomCharMapping::TTestNum aTestNum); sl@0: void RunInstallationTestsL(); sl@0: void RunDefaultBehaviourTestsL(); sl@0: void RunCustomBehaviourTestsL(); sl@0: sl@0: }; sl@0: sl@0: _LIT(KTestStep_T_CustomCharMapping, "T_CustomCharMapping"); sl@0: sl@0: sl@0: #endif /* TCUSTOMCHARMAPPING_H_ */