|
1 // |
|
2 // Copyright (c) 2009-2010 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_omxilgraphicsink |
|
18 |
|
19 START_TESTCASE MMVIDEO-OMX-GS-002-01-HP |
|
20 //! @SYMTestCaseID MMVIDEO-OMX-GS-002-01-HP |
|
21 //! @SYMTestType UT |
|
22 //! @SYMTestCaseDesc HEAP test State Loaded to Idle transition test using AllocateBuffer |
|
23 //! @SYMTestExpectedResults HEAP mark reports no memory leaks |
|
24 //! @SYMTestActions Send command OMX_StateIdle and Allocate required number of buffer |
|
25 //! Wait for callback to return OMX_EventCmdComplete |
|
26 //! Send command OMX_StateLoaded and Free required number of buffer |
|
27 //! Wait for callback to return OMX_EventCmdComplete |
|
28 //! Repeat test once, using __MM_HEAP_MARK and __MM_HEAP_MARK to test HEAP size |
|
29 //! COmxILGraphicSinkProcessingFunction::StateTransitionIndication |
|
30 //! COmxILGraphicSinkProcessingFunction::CreateBufferL |
|
31 //! COmxILGraphicSinkProcessingFunction::DestroyBuffer |
|
32 RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-002-01-HP |
|
33 END_TESTCASE MMVIDEO-OMX-GS-002-01-HP |
|
34 |
|
35 START_TESTCASE MMVIDEO-OMX-GS-002-02-HP |
|
36 //! @SYMTestCaseID MMVIDEO-OMX-GS-002-02-HP |
|
37 //! @SYMTestType UT |
|
38 //! @SYMTestCaseDesc Stress test State Loaded to Idle transition test using AllocateBuffer |
|
39 //! @SYMTestExpectedResults State is changed and callback is invoked |
|
40 //! @SYMTestActions Send command OMX_StateIdle and Allocate required number of buffer |
|
41 //! Wait for callback to return OMX_EventCmdComplete |
|
42 //! Send command OMX_StateLoaded and Free required number of buffer |
|
43 //! Wait for callback to return OMX_EventCmdComplete |
|
44 //! Repeat test multiple times |
|
45 //! COmxILGraphicSinkProcessingFunction::StateTransitionIndication |
|
46 //! COmxILGraphicSinkProcessingFunction::CreateBufferL |
|
47 //! COmxILGraphicSinkProcessingFunction::DestroyBuffer |
|
48 RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-002-02-HP |
|
49 END_TESTCASE MMVIDEO-OMX-GS-002-02-HP |
|
50 |
|
51 START_TESTCASE MMVIDEO-OMX-GS-002-03-HP |
|
52 //! @SYMTestCaseID MMVIDEO-OMX-GS-002-03-HP |
|
53 //! @SYMTestType UT |
|
54 //! @SYMTestCaseDesc State Loaded to Idle transition test using AllocateBuffer |
|
55 //! Changing the required number of buffers nBufferCountActual |
|
56 //! @SYMTestExpectedResults State is changed and callback is invoked |
|
57 //! @SYMTestActions Send command OMX_StateIdle and Allocate required number of buffer |
|
58 //! Wait for callback to return OMX_EventCmdComplete |
|
59 //! Send command OMX_StateLoaded and Free required number of buffer |
|
60 //! Wait for callback to return OMX_EventCmdComplete |
|
61 //! Repeat & incrementally increase the number of required buffers |
|
62 //! COmxILGraphicSinkProcessingFunction::StateTransitionIndication |
|
63 //! COmxILGraphicSinkProcessingFunction::CreateBufferL |
|
64 //! COmxILGraphicSinkProcessingFunction::DestroyBuffer |
|
65 RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-002-03-HP |
|
66 END_TESTCASE MMVIDEO-OMX-GS-002-03-HP |
|
67 |
|
68 START_TESTCASE MMVIDEO-OMX-GS-002-04-HP |
|
69 //! @SYMTestCaseID MMVIDEO-OMX-GS-002-04-HP |
|
70 //! @SYMTestType UT |
|
71 //! @SYMTestCaseDesc Negative allocate buffer test |
|
72 //! @SYMTestExpectedResults Allocate buffer returns OMX_ErrorIncorrectStateOperation |
|
73 //! @SYMTestActions Attempt to Allocate required number of buffer without using the send command |
|
74 //! COmxILGraphicSinkProcessingFunction::CreateBufferL |
|
75 RUN_TEST_STEP 100 tsu_omxilgraphicsink MMVIDEO-OMX-GS-002-04-HP |
|
76 END_TESTCASE MMVIDEO-OMX-GS-002-04-HP |