classicui_plat/fonts_api/tsrc/src/testsdkfontsblocks.cpp
branchRCL_3
changeset 19 aecbbf00d063
equal deleted inserted replaced
18:fcdfafb36fe7 19:aecbbf00d063
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  test fonts api
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // [INCLUDE FILES]
       
    21 #include <e32svr.h>
       
    22 #include <stifparser.h>
       
    23 #include <stiftestinterface.h>
       
    24 
       
    25 #include "testsdkfonts.h"
       
    26 
       
    27 
       
    28 
       
    29 // ============================ MEMBER FUNCTIONS ===============================
       
    30 
       
    31 // -----------------------------------------------------------------------------
       
    32 // Ctestsdkfonts::RunMethodL
       
    33 // Run specified method. Contains also table of test mothods and their names.
       
    34 // -----------------------------------------------------------------------------
       
    35 //
       
    36 TInt CTestSdkFonts::RunMethodL( CStifItemParser& aItem ) 
       
    37     {
       
    38 
       
    39     static TStifFunctionInfo const KFunctions[] =
       
    40         {  
       
    41         // First string is the function name used in TestScripter script file.
       
    42         // Second is the actual implementation member function. 
       
    43 
       
    44         ENTRY( "TestFAGetFont", CTestSdkFonts::TestFAGetFont ),
       
    45         ENTRY( "TestFAGetFontDesc", CTestSdkFonts::TestFAGetFontDesc ),
       
    46         ENTRY( "TestFAGetClosestFont", CTestSdkFonts::TestFAGetClosestFont ),
       
    47         ENTRY( "TestFAGetClosestFontDesc", CTestSdkFonts::TestFAGetClosestFontDesc ),
       
    48         ENTRY( "TestFACreateLayoutFontFromSpecificationL",CTestSdkFonts::TestFACreateLayoutFontFromSpecificationL ),
       
    49         ENTRY( "TestFACreateLayoutFontFromSpecificationTTypefaceL",CTestSdkFonts::TestFACreateLayoutFontFromSpecificationTTypefaceL ),
       
    50         
       
    51         ENTRY( "TestLFUpdateL",CTestSdkFonts::TestLFUpdateL ),
       
    52         ENTRY( "TestLFMaxAscentL",CTestSdkFonts::TestLFMaxAscentL ),
       
    53         ENTRY( "TestLFMaxDescentL",CTestSdkFonts::TestLFMaxDescentL ),
       
    54         ENTRY( "TestLFTextPaneTopToBaselineL",CTestSdkFonts::TestLFTextPaneTopToBaselineL ),
       
    55         ENTRY( "TestLFBaselineToTextPaneBottomL",CTestSdkFonts::TestLFBaselineToTextPaneBottomL ),
       
    56         ENTRY( "TestLFTextPaneHeightL",CTestSdkFonts::TestLFTextPaneHeightL ),
       
    57         ENTRY( "TestLFAscentForCharacterL",CTestSdkFonts::TestLFAscentForCharacterL ),
       
    58         ENTRY( "TestLFAsCAknLayoutFontOrNullL",CTestSdkFonts::TestLFAsCAknLayoutFontOrNullL ),
       
    59         ENTRY( "TestLFTextDecorationMetricsL",CTestSdkFonts::TestLFTextDecorationMetricsL ),
       
    60         ENTRY( "TestLFFontCategoryL",CTestSdkFonts::TestLFFontCategoryL ),
       
    61         ENTRY( "TestLFFontSpecificationL",CTestSdkFonts::TestLFFontSpecificationL ),
       
    62 
       
    63         ENTRY( "TestTDMTAknTextDecorationMetricsL", CTestSdkFonts::TestTDMTAknTextDecorationMetricsL ),
       
    64         ENTRY( "TestTDMTAknTextDecorationMetricsFontL", CTestSdkFonts::TestTDMTAknTextDecorationMetricsFontL ),
       
    65         ENTRY( "TestTDMTAknTextDecorationMetricsSpecL", CTestSdkFonts::TestTDMTAknTextDecorationMetricsSpecL ),
       
    66         ENTRY( "TestTDMGetLeftAndRightMarginsL", CTestSdkFonts::TestTDMGetLeftAndRightMarginsL ),
       
    67         ENTRY( "TestTDMGetTopAndBottomMarginsL", CTestSdkFonts::TestTDMGetTopAndBottomMarginsL ),
       
    68         ENTRY( "TestTDMCursorWidthL", CTestSdkFonts::TestTDMCursorWidthL ),
       
    69         ENTRY( "TestTDMBaselineToUnderlineOffsetL", CTestSdkFonts::TestTDMBaselineToUnderlineOffsetL ),
       
    70         ENTRY( "TestTDMUnderlineHeightL", CTestSdkFonts::TestTDMUnderlineHeightL ),
       
    71 
       
    72         // [test cases entries]
       
    73 
       
    74         };
       
    75 
       
    76     const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo );
       
    77 
       
    78     return RunInternalL( KFunctions, count, aItem );
       
    79 
       
    80     }
       
    81 
       
    82 
       
    83 
       
    84 //  [End of File]