os/textandloc/textrendering/textformatting/test/src/tgraphemeiterator.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 /*
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 * @file
    16 * @internalComponent 
    17 *
    18 */
    19 
    20 #ifndef TGRAPHEMEITERATOR_H_
    21 #define TGRAPHEMEITERATOR_H_
    22 
    23 #include <e32cmn.h> 
    24 #include <test/testexecutestepbase.h>
    25 
    26 class CTGraphemeIteratorStep : public CTestStep
    27     {    
    28 public:
    29     CTGraphemeIteratorStep(){};
    30     void print(const TDesC& aBuf, const TText8* text, int line);
    31     void testpoint(TBool aCondition, const TText8* text, int line);
    32 protected:  
    33     TVerdict doTestStepL();
    34     };
    35 
    36 inline void CTGraphemeIteratorStep::print(const TDesC& aBuf, const TText8* text, int line)
    37     {
    38     Logger().LogExtra((text), line, ESevrInfo, (aBuf));
    39     }
    40 
    41 inline void CTGraphemeIteratorStep::testpoint(TBool aCondition, const TText8* text, int line )
    42     {
    43     testBooleanTrue((aCondition), text, line); 
    44     }
    45 
    46 _LIT(KTestStep_T_GraphemeIterator, "T_GraphemeIterator");
    47 
    48 #endif /* TGRAPHEMEITERATOR_H_ */