os/textandloc/fontservices/textshaperplugin/test/t_shapeteststep.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description: 
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
#ifndef T_SHAPETESTSTEP_H_
sl@0
    19
#define T_SHAPETESTSTEP_H_
sl@0
    20
sl@0
    21
#include <e32cmn.h>
sl@0
    22
#include <test/testexecutestepbase.h>
sl@0
    23
sl@0
    24
class CFontStore;
sl@0
    25
class CBitmapFont;
sl@0
    26
class CTestData;
sl@0
    27
sl@0
    28
class CShapeTestStep : public CTestStep
sl@0
    29
    {
sl@0
    30
public:
sl@0
    31
    static CTestStep * CreateShapeTestStep(const TDesC& aStepName);    
sl@0
    32
    
sl@0
    33
protected:
sl@0
    34
    TVerdict doTestStepL();
sl@0
    35
sl@0
    36
private:
sl@0
    37
    CShapeTestStep(TInt aTestDataIndex, TInt aNumberOfTestDataFiles, TUint32 aScript, TUint32 aLang, const TDesC& aScriptName, const TDesC& aTestID);
sl@0
    38
    
sl@0
    39
    void SetupTestDataL();
sl@0
    40
    
sl@0
    41
    void doShapeText(CBitmapFont* font, CTestData& aTestData, TBool aCheckOutput = EFalse);
sl@0
    42
    void shapeText(CBitmapFont* font, CTestData& aTestData, TBool aCheckOutput = EFalse);
sl@0
    43
    
sl@0
    44
    void doOomShapeText(CBitmapFont* font, CTestData& aTestData);
sl@0
    45
    void oomShapeText(CBitmapFont* font, CTestData& aTestData);
sl@0
    46
    
sl@0
    47
    void doRepeatShapeText(CBitmapFont* font, CTestData& aTestData);
sl@0
    48
    void repeatShapeText(CBitmapFont* aFont, CTestData& aTestData);
sl@0
    49
    
sl@0
    50
    void doRepeatShapeUsingVariousFontSizesTest(CFontStore* aFontStore, const TDesC aTypefaceName, const TDesC &aText1,
sl@0
    51
                                                const TDesC &aText2, const TDesC &aText3);
sl@0
    52
    void ShapeTestL();
sl@0
    53
    
sl@0
    54
    static const TDesC& getText1();
sl@0
    55
    static const TDesC& getText2();
sl@0
    56
    static const TDesC& getText3();
sl@0
    57
    
sl@0
    58
private:
sl@0
    59
    const TInt iTestDataIndex;
sl@0
    60
    const TInt iNumberOfTestDataFiles;
sl@0
    61
    const TUint32 iScript;
sl@0
    62
    const TUint32 iLang;
sl@0
    63
    const TBuf<32> iScriptName;
sl@0
    64
    const TBuf<64> iTestID;
sl@0
    65
    RPointerArray<CTestData> iTestDataArr;
sl@0
    66
    };
sl@0
    67
sl@0
    68
#endif /* T_SHAPETESTSTEP_H_ */