speechsrv_plat/ui_voice_recognition_api/tsrc/src/testdomuivoicerengnblocks.cpp
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2002 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:  For test ui voice recognition api modules
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // [INCLUDE FILES]
       
    21 #include <e32svr.h>
       
    22 #include <stifparser.h>
       
    23 #include <stiftestinterface.h>
       
    24 #include <vuicvoicerecog.h>
       
    25 #include <vuicvoicerecogdialog.h>
       
    26 
       
    27 #include "testdomuivoicerengn.h"
       
    28 
       
    29 
       
    30 // ============================ MEMBER FUNCTIONS ===============================
       
    31 
       
    32 // -----------------------------------------------------------------------------
       
    33 // CTestDOMUiVoiceRengn::RunMethodL
       
    34 // Run specified method. Contains also table of test mothods and their names.
       
    35 // -----------------------------------------------------------------------------
       
    36 //
       
    37 TInt CTestDOMUiVoiceRengn::RunMethodL( CStifItemParser& aItem ) 
       
    38     {
       
    39 
       
    40     static TStifFunctionInfo const KFunctions[] =
       
    41         {  
       
    42         // First string is the function name used in TestScripter script file.
       
    43         // Second is the actual implementation member function. 
       
    44         ENTRY( "TestVuicVocRecogNewL", 
       
    45                CTestDOMUiVoiceRengn::TestVuicVocRecogNewL ),
       
    46         ENTRY( "TestVuicVocRecogNewLCL", 
       
    47                 CTestDOMUiVoiceRengn::TestVuicVocRecogNewLCL ),
       
    48         ENTRY( "TestVoceRegDalgCVoceRegDialogL", 
       
    49                 CTestDOMUiVoiceRengn::TestVoceRegDalgCVoceRegDialogL ),
       
    50         ENTRY( "TestVoceRegDalgDestructor", 
       
    51                 CTestDOMUiVoiceRengn::TestVoceRegDalgDestructor ),
       
    52         ENTRY( "TestVoceRegDalgExecuteLDL", 
       
    53                 CTestDOMUiVoiceRengn::TestVoceRegDalgExecuteLDL ),
       
    54         ENTRY( "TestVoceRegDalgCancel", 
       
    55                 CTestDOMUiVoiceRengn::TestVoceRegDalgCancel ),
       
    56         // [test cases entries]
       
    57 
       
    58         };
       
    59 
       
    60     const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo );
       
    61 
       
    62     return RunInternalL( KFunctions, count, aItem );
       
    63 
       
    64     }
       
    65 
       
    66 //  [End of File]