omxil/mmilapi/unittest/scripts/tsu_milif_omxilif.script
changeset 56 b6488ac24ddc
parent 47 481b3bce574a
child 57 1cbb0d5bf7f2
equal deleted inserted replaced
47:481b3bce574a 56:b6488ac24ddc
     1 //
       
     2 // Copyright (c) 2008-2009 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 //
       
    16 
       
    17 LOAD_SUITE TSU_MILIF_OMXILIF.dll
       
    18 
       
    19 //------------------------------------------------------------------------------------------//
       
    20 // Test Suite for the Generic Multimedia Integration Layer Interface 			    //
       
    21 //
       
    22 // This test suite is based on the generic DLL implementation of the MILIF interface that has
       
    23 // been specialized to make use of a generic plugin implementation of the MILIF interface for 
       
    24 // OMX audio decoders
       
    25 // 
       
    26 // Test Cases: MM-MILIF-DUMMYOMXILIF-U-0001 to MM-MILIF-DUMMYOMXILIF-U-0006
       
    27 //
       
    28 //------------------------------------------------------------------------------------------//
       
    29 
       
    30 
       
    31 //------------------------------------------------------------------------------------------//
       
    32 // TEST STEP: TSU_MILIF_OMXILIF MM-MILIF-DUMMYOMXILIF-U-0001
       
    33 // RTestStepMILIFPorts: To test access to IL component ports through MILIF.
       
    34 //	1. Create an instance of the KUidOmxILAudioDecGenericIf test ECOM plugin interface.
       
    35 //	2. Use the interface to instanciate a dummy omx component.
       
    36 //	3. Set the role of the interface to "aac decoder".
       
    37 //	4. Get Component Input ports through interface.
       
    38 //	5. Get Component Output ports through interface.
       
    39 //------------------------------------------------------------------------------------------//
       
    40 //! @SYMTestCaseID MM-MILIF-DUMMYOMXILIF-U-0001
       
    41 
       
    42 RUN_TEST_STEP -1 TSU_MILIF_OMXILIF MM-MILIF-DUMMYOMXILIF-U-0001
       
    43 TEST_COMPLETE
       
    44 
       
    45 //------------------------------------------------------------------------------------------//
       
    46 // TEST STEP: TSU_MILIF_OMXILIF MM-MILIF-DUMMYOMXILIF-U-0002
       
    47 // RTestStepMILIFConfig: To test configuration of IL component through MILIF.
       
    48 //	1. Create an instance of the KUidOmxILAudioDecGenericIf test ECOM plugin interface.
       
    49 //	2. Use the interface to instanciate a dummy omx component.
       
    50 //	3. Set the role of the interface to "aac decoder".
       
    51 //	4. Get Component Input ports through interface.
       
    52 //	5a. Set a (partial) config port parameter through the interface.
       
    53 //	5b. Now Get the TPortDefinitionType config parameter through the interface.
       
    54 //	6a. Configure component through the interface.
       
    55 //	6b. Now Get the TOMXILStructParam config parameter through the interface.
       
    56 //------------------------------------------------------------------------------------------//
       
    57 //! @SYMTestCaseID MM-MILIF-DUMMYOMXILIF-U-0002
       
    58 
       
    59 RUN_TEST_STEP -1 TSU_MILIF_OMXILIF MM-MILIF-DUMMYOMXILIF-U-0002
       
    60 TEST_COMPLETE
       
    61 
       
    62 //------------------------------------------------------------------------------------------//
       
    63 // TEST STEP: TSU_MILIF_OMXILIF MM-MILIF-DUMMYOMXILIF-U-0003
       
    64 // RTestStepMILIFStates: To test driving the IL component state machine through MILIF.
       
    65 //	1. Create an instance of the KUidOmxILAudioDecGenericIf test ECOM plugin interface.
       
    66 //	2. Use the interface to instanciate a dummy omx component.
       
    67 //	3. Set the role of the interface to "aac decoder".
       
    68 //	4. Trigger transition from Load to Idle in component by calling Initialize()
       
    69 //	5a. Check the component was left in the correct state after EEventInitComplete event
       
    70 //	5b. Trigger transition from Idle to Execute in component by calling Execute()
       
    71 //	6a. Check the component was left in the correct state after EEventExecuteComplete event
       
    72 //	6b. Trigger transition from Executing to Pause in component by calling Pause()
       
    73 //	7a. Check the component was left in the correct state after EEventPauseComplete event
       
    74 //	7b. Trigger transition from Pause to Idle in component by calling Stop()
       
    75 //	8. Check the component was left in the correct state after EEventStopComplete event
       
    76 //------------------------------------------------------------------------------------------//
       
    77 //! @SYMTestCaseID MM-MILIF-DUMMYOMXILIF-U-0003
       
    78 
       
    79 RUN_TEST_STEP -1 TSU_MILIF_OMXILIF MM-MILIF-DUMMYOMXILIF-U-0003
       
    80 TEST_COMPLETE
       
    81 
       
    82 //------------------------------------------------------------------------------------------//
       
    83 // TEST STEP: TSU_MILIF_OMXILIF MM-MILIF-DUMMYOMXILIF-U-0004
       
    84 // 	RTestStepMILIFCommands: To test sending commands to the IL component through MILIF.
       
    85 //	1. Create an instance of the KUidOmxILAudioDecGenericIf test ECOM plugin interface.
       
    86 //	2. Use the interface to instanciate a dummy omx component.
       
    87 //	3. Set the role of the interface to "aac decoder".
       
    88 //	4. Trigger FlushAllPorts
       
    89 //	5. Trigger SendCommand() with ECommandPortDisable
       
    90 //------------------------------------------------------------------------------------------//
       
    91 //! @SYMTestCaseID MM-MILIF-DUMMYOMXILIF-U-0004
       
    92 
       
    93 RUN_TEST_STEP -1 TSU_MILIF_OMXILIF MM-MILIF-DUMMYOMXILIF-U-0004
       
    94 TEST_COMPLETE
       
    95 
       
    96 //------------------------------------------------------------------------------------------//
       
    97 // TEST STEP: TSU_MILIF_OMXILIF MM-MILIF-DUMMYOMXILIF-U-0005
       
    98 // RTestStepMILIFExtensions: To test configuration of the IL component with extended params through MILIF.
       
    99 //	1. Create an instance of the KUidOmxILAudioDecGenericIf test ECOM plugin interface.
       
   100 //	2. Use the interface to instanciate a dummy omx component.
       
   101 //	3. Set the role of the interface to "aac decoder".
       
   102 //	4. Get Component Input ports through interface.
       
   103 //	5a. Set a (partial) config port parameter through the interface's extension mechanism.
       
   104 //	5b. Get the parameter set in 5a through the interface's extension mechanism.
       
   105 //------------------------------------------------------------------------------------------//
       
   106 //! @SYMTestCaseID MM-MILIF-DUMMYOMXILIF-U-0005
       
   107 
       
   108 RUN_TEST_STEP -1 TSU_MILIF_OMXILIF MM-MILIF-DUMMYOMXILIF-U-0005
       
   109 TEST_COMPLETE
       
   110 
       
   111 //------------------------------------------------------------------------------------------//
       
   112 // TEST STEP: TSU_MILIF_OMXILIF MM-MILIF-DUMMYOMXILIF-U-0006
       
   113 // RTestStepMILIFComponentRole: To test access to the IL component role through MILIF.
       
   114 //	1. Create an instance of the KUidOmxILAudioDecGenericIf test ECOM plugin interface.
       
   115 //	2. Use the interface to instanciate a dummy omx component.
       
   116 //	3. Set the role of the interface to "aac decoder".
       
   117 //	4. Get component role through interface.
       
   118 //	5. Check the component's role returned is the expected role
       
   119 //------------------------------------------------------------------------------------------//
       
   120 //! @SYMTestCaseID MM-MILIF-DUMMYOMXILIF-U-0006
       
   121 
       
   122 RUN_TEST_STEP -1 TSU_MILIF_OMXILIF MM-MILIF-DUMMYOMXILIF-U-0006
       
   123 TEST_COMPLETE
       
   124 
       
   125 
       
   126 // End of Test Script