classicui_pub/sounds_api/tsrc/src/testsdksoundsblocks.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 sounds_api 
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 // [INCLUDE FILES]
       
    20 #include <e32svr.h>
       
    21 #include <stifparser.h>
       
    22 #include <stiftestinterface.h>
       
    23 
       
    24 #include "testsdksounds.h"
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // ============================ MEMBER FUNCTIONS ===============================
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 // Ctestsdksounds::Delete
       
    32 // Delete here all resources allocated and opened from test methods. 
       
    33 // Called from destructor. 
       
    34 // -----------------------------------------------------------------------------
       
    35 //
       
    36 void CTestSDKSounds::Delete()
       
    37     {
       
    38 
       
    39     }
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // Ctestsdksounds::RunMethodL
       
    43 // Run specified method. Contains also table of test mothods and their names.
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 TInt CTestSDKSounds::RunMethodL(CStifItemParser& aItem)
       
    47     {
       
    48     static TStifFunctionInfo const KFunctions[] =
       
    49         {
       
    50         // First string is the function name used in TestScripter script file.
       
    51         ENTRY( "TestSINewL", CTestSDKSounds::TestSINewL ),
       
    52         ENTRY( "TestSIInternalizeL", CTestSDKSounds::TestSIInternalizeL ),
       
    53         ENTRY( "TestSIExternalizeL", CTestSDKSounds::TestSIExternalizeL ),
       
    54         ENTRY( "TestSSNewL", CTestSDKSounds::TestSSNewL ),
       
    55         ENTRY( "TestSSPushContextL", CTestSDKSounds::TestSSPushContextL ),
       
    56         ENTRY( "TestSSPopContextL", CTestSDKSounds::TestSSPopContextL ),
       
    57         ENTRY( "TestSSPlaySoundWithTKeyEventL", CTestSDKSounds::TestSSPlaySoundWithTKeyEventL ),
       
    58         ENTRY( "TestSSPlaySoundWithTIntL", CTestSDKSounds::TestSSPlaySoundWithTIntL ),
       
    59         ENTRY( "TestSSAddAppSoundInfoListL", CTestSDKSounds::TestSSAddAppSoundInfoListL ),
       
    60         ENTRY( "TestSSBringToForegroundL", CTestSDKSounds::TestSSBringToForegroundL ),
       
    61         ENTRY( "TestSSStopSoundL", CTestSDKSounds::TestSSStopSoundL ),
       
    62         ENTRY( "TestSSLockContextL", CTestSDKSounds::TestSSLockContextL ),
       
    63         ENTRY( "TestSSReleaseContextL", CTestSDKSounds::TestSSReleaseContextL ),
       
    64         ENTRY( "TestSSRequestSoundInfoL", CTestSDKSounds::TestSSRequestSoundInfoL ),
       
    65         ENTRY( "TestSSTopContextL", CTestSDKSounds::TestSSTopContextL ),
       
    66         // [test cases entries]
       
    67         };
       
    68 
       
    69     const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo );
       
    70 
       
    71     return RunInternalL( KFunctions, count, aItem );
       
    72 
       
    73     }
       
    74 
       
    75 //  [End of File]