classicui_plat/physics_api/tsrc/src/testplatphysicsblocks.cpp
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     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 aknphysics.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // [INCLUDE FILES]
       
    20 #include <e32svr.h>
       
    21 #include <stifparser.h>
       
    22 #include <stiftestinterface.h>
       
    23 
       
    24 #include "testplatphysics.h"
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CTestPlatPhysics::RunMethodL
       
    30 // Run specified method. Contains also table of test mothods and their names.
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 TInt CTestPlatPhysics::RunMethodL( CStifItemParser& aItem ) 
       
    34     {
       
    35 
       
    36     static TStifFunctionInfo const KFunctions[] =
       
    37         {  
       
    38         // First string is the function name used in TestScripter script file.
       
    39         // Second is the actual implementation member function. 
       
    40 
       
    41         // [test cases entries]
       
    42         //aknphysics.h
       
    43         ENTRY( "TestCAknPhysicsNewL", CTestPlatPhysics::TestCAknPhysicsNewL ), 
       
    44         ENTRY( "TestCAknPhysicsInitPhysicsL", CTestPlatPhysics::TestCAknPhysicsInitPhysicsL ), 
       
    45         ENTRY( "TestCAknPhysicsStartPhysicsL", CTestPlatPhysics::TestCAknPhysicsStartPhysicsL ), 
       
    46         ENTRY( "TestCAknPhysicsStopPhysicsL", CTestPlatPhysics::TestCAknPhysicsStopPhysicsL ), 
       
    47         ENTRY( "TestCAknPhysicsOngoingPhysicsActionL", CTestPlatPhysics::TestCAknPhysicsOngoingPhysicsActionL ), 
       
    48         ENTRY( "TestCAknPhysicsRegisterPanningPositionL", CTestPlatPhysics::TestCAknPhysicsRegisterPanningPositionL ), 
       
    49         ENTRY( "TestCAknPhysicsSetFrictionL", CTestPlatPhysics::TestCAknPhysicsSetFrictionL ), 
       
    50         ENTRY( "TestCAknPhysicsResetFrictionL", CTestPlatPhysics::TestCAknPhysicsResetFrictionL ), 
       
    51         ENTRY( "TestCAknPhysicsHighlightTimeoutL", CTestPlatPhysics::TestCAknPhysicsHighlightTimeoutL ), 
       
    52         ENTRY( "TestCAknPhysicsDragThresholdL", CTestPlatPhysics::TestCAknPhysicsDragThresholdL ), 
       
    53         ENTRY( "TestCAknPhysicsFeatureEnabledL", CTestPlatPhysics::TestCAknPhysicsFeatureEnabledL ), 
       
    54         ENTRY( "TestCAknPhysicsEventHandlingAllowedL", CTestPlatPhysics::TestCAknPhysicsEventHandlingAllowedL ), 
       
    55         ENTRY( "TestCAknPhysicsUpdateViewWindowControlL", CTestPlatPhysics::TestCAknPhysicsUpdateViewWindowControlL ), 
       
    56         ENTRY( "TestCAknPhysicsSuspendPhysicsL", CTestPlatPhysics::TestCAknPhysicsSuspendPhysicsL ), 
       
    57         ENTRY( "TestCAknPhysicsResumePhysicsL", CTestPlatPhysics::TestCAknPhysicsResumePhysicsL ), 
       
    58 
       
    59         };
       
    60 
       
    61     const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo );
       
    62 
       
    63     return RunInternalL( KFunctions, count, aItem );
       
    64 
       
    65     }
       
    66